Powered By Zapier
Integration Marketplace
- Low-code
- Code-native
Built-in Workflows
- Low-code
- Code-native
AI Workflows
Managing Authentications
Billing
API Specification
- API Authentication
- Accounts
- Actions
- Apps
- Authentications
- Categories
- Zap Templates
- Zaps
- Experimental
- Schemas
- Rate Limiting
Zaps
Create a Zap
This URL creates a Zap based on the given steps and title.
OAuth
This endpoint requires the zap:write
OAuth scope.
POST
/
v2
/
zaps
Copy
Ask AI
curl --request POST \
--url https://api.zapier.com/v2/zaps \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"data": {
"steps": [
{
"action": "example_core:5m2y9p7J",
"inputs": {
"code": "output = [{id: Math.round(Date.now()/1000), n: Math.random()}];"
},
"authentication": null
},
{
"action": "example_core:VBz2NGB5",
"inputs": {
"code": "output = [{ id: inputData.id, n: inputData.n * 2}];",
"inputs": {
"n": "{{n}}",
"id": "{{id}}"
}
},
"authentication": null
}
],
"title": "My Critically Important Program"
}
}'
Copy
Ask AI
{
"type": "zap",
"id": "104826178",
"is_enabled": true,
"last_successful_run_date": null,
"updated_at": "2024-03-14T22:02:36+00:00",
"title": "My Critically Important Program",
"links": {
"html_editor": "https://zapier.com/editor/104826178?utm_source=partner&utm_medium=embed&utm_campaign=partner_api&referer=None",
"steps": [
{
"action": "example_core:Vn7xbE60",
"authentication": "Krjvl500",
"inputs": {},
"title": null
},
{
"action": "example_core:V7GpzX40",
"authentication": null,
"inputs": null,
"title": null
}
]
}
}
This API is rate limited.
Authorizations
See our OAuth2 authentication documentation
Query Parameters
A comma separated list of Zap fields that should be expanded from ids to full objects in the response. Fields that may not be expanded will remain as ids.
Body
Response
201
application/json
A Zap is an automated workflow that connects your apps and services together.
Was this page helpful?
Copy
Ask AI
curl --request POST \
--url https://api.zapier.com/v2/zaps \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"data": {
"steps": [
{
"action": "example_core:5m2y9p7J",
"inputs": {
"code": "output = [{id: Math.round(Date.now()/1000), n: Math.random()}];"
},
"authentication": null
},
{
"action": "example_core:VBz2NGB5",
"inputs": {
"code": "output = [{ id: inputData.id, n: inputData.n * 2}];",
"inputs": {
"n": "{{n}}",
"id": "{{id}}"
}
},
"authentication": null
}
],
"title": "My Critically Important Program"
}
}'
Copy
Ask AI
{
"type": "zap",
"id": "104826178",
"is_enabled": true,
"last_successful_run_date": null,
"updated_at": "2024-03-14T22:02:36+00:00",
"title": "My Critically Important Program",
"links": {
"html_editor": "https://zapier.com/editor/104826178?utm_source=partner&utm_medium=embed&utm_campaign=partner_api&referer=None",
"steps": [
{
"action": "example_core:Vn7xbE60",
"authentication": "Krjvl500",
"inputs": {},
"title": null
},
{
"action": "example_core:V7GpzX40",
"authentication": null,
"inputs": null,
"title": null
}
]
}
}
Assistant
Responses are generated using AI and may contain mistakes.