Getting Started
How to
- GETAuthentication
- GETZapier account list
- Stored Vs. Stateless Actions
- Stored actions
- Stateless actions
- Gathering action information
API Reference
- system
- auth
- apps
- actions
- execution
- ai-actions
- utilities
Libraries
- TypeScript (Node.js, Deno)
- React Components
Development Resources
Manage stored actions
Create stored action
Create a new AI Action that can be executed by the user later.
POST
/
api
/
v2
/
ai-actions
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
}
]
}
Authorizations
Query Parameters
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.
Body
application/json
Response
200 - application/json
OK
The response is of type object
.
Was this page helpful?
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
}
]
}