curl --request POST \
--url https://actions.zapier.com/api/v2/ai-actions/ \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"app": "<string>",
"action": "<string>",
"action_type": "read",
"params": {},
"meta": {
"params": {},
"app_label": "<string>",
"action_label": "<string>",
"authentication_label": "<string>",
"app_needs_auth": true
}
}'
{
"id": "<string>",
"description": "<string>",
"account_id": 123,
"authentication_id": 123,
"app": "<string>",
"action": "<string>",
"action_type": "read",
"params": {},
"meta": {
"params": {},
"app_label": "<string>",
"action_label": "<string>",
"authentication_label": "<string>",
"app_needs_auth": true
},
"needs": [
{
"key": "<string>",
"type": "int",
"label": "<string>",
"required": true,
"prefill": "<string>",
"searchfill": "<string>",
"capabilities": [
"<string>"
],
"custom_field": true,
"depends_on": [
"<string>"
],
"input_format": [
"<any>"
],
"language": "<string>",
"parent_key": "<string>",
"regex": "<string>",
"alters_custom_fields": true,
"choices": [
{
"key": "<string>",
"label": "<string>",
"sample": "<string>"
}
],
"default": "<string>",
"help_text": "<string>",
"placeholder": "<string>",
"format": "<string>",
"list": true
}
]
}
Create a new AI Action that can be executed by the user later.
curl --request POST \
--url https://actions.zapier.com/api/v2/ai-actions/ \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"app": "<string>",
"action": "<string>",
"action_type": "read",
"params": {},
"meta": {
"params": {},
"app_label": "<string>",
"action_label": "<string>",
"authentication_label": "<string>",
"app_needs_auth": true
}
}'
{
"id": "<string>",
"description": "<string>",
"account_id": 123,
"authentication_id": 123,
"app": "<string>",
"action": "<string>",
"action_type": "read",
"params": {},
"meta": {
"params": {},
"app_label": "<string>",
"action_label": "<string>",
"authentication_label": "<string>",
"app_needs_auth": true
},
"needs": [
{
"key": "<string>",
"type": "int",
"label": "<string>",
"required": true,
"prefill": "<string>",
"searchfill": "<string>",
"capabilities": [
"<string>"
],
"custom_field": true,
"depends_on": [
"<string>"
],
"input_format": [
"<any>"
],
"language": "<string>",
"parent_key": "<string>",
"regex": "<string>",
"alters_custom_fields": true,
"choices": [
{
"key": "<string>",
"label": "<string>",
"sample": "<string>"
}
],
"default": "<string>",
"help_text": "<string>",
"placeholder": "<string>",
"format": "<string>",
"list": true
}
]
}
The Zapier account ID to use.
Account IDs available to the user can be listed using the Get Account List endpoint
ID of the authentication to use for the app.
Authentications available to the user can be listed using the List Authentications For App endpoint.
OK
The response is of type object
.
Was this page helpful?