POST
/
api
/
v2
/
execute
/
curl --request POST \
  --url https://actions.zapier.com/api/v2/execute/ \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "instructions": "<string>",
  "params": {},
  "app": "<string>",
  "action": "<string>",
  "action_type": "read",
  "authentication_id": 123,
  "account_id": 123
}'
{
  "execution_log_id": "<string>",
  "action_used": "<string>",
  "input_params": {},
  "resolved_params": {},
  "results": [
    {}
  ],
  "full_results": [
    {}
  ],
  "result_field_labels": {},
  "status": "success",
  "error": "<string>"
}

Authorizations

x-api-key
string
header
required

Query Parameters

provider_id
string

Provider ID for AI Actions. If you don't know what your provider ID is, please contact support

token_budget
integer
default:1000

DEPRECATED: This field is kept temporarily for compatibility. Maximum number of tokens to use for each field.

When this limit is exceeded in the response from the execution, values will be truncated to fit inside of it.

If this is increased too much, running an action may fail if its results get outside of the context window of the LLM.

preview_only
boolean
default:false

If this is true, then the action will not actually be executed and instead the resolved params will come back.

skip_param_guessing
boolean
default:false

If set to True, AI Actions will make a direct invocation call without attempting to guess params.

When skip_param_guessing is True, all params must be set to either 'locked' or 'ignored' mode. Otherwise, an error will be raised.

Note: skip_param_guessing is mutually exclusive with preview_only. When skip_param_guessing is True, preview_only must be False, and vice versa.

Body

application/json

Response

200
application/json

OK

The response is of type object.