POST
/
api
/
v2
/
ai-actions
/
{ai_action_id}
/
execute
curl --request POST \
  --url https://actions.zapier.com/api/v2/ai-actions/{ai_action_id}/execute/ \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "instructions": "<string>",
  "params": {}
}'
{
  "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

Path Parameters

ai_action_id
string
required

The ID of the action to execute.

Query Parameters

preview_only
boolean
default:false

Body

application/json

Specifies information about how to run an AI Action

Response

200
application/json

OK

The response is of type object.