POST
/
v2
/
zaps
Create a Zap
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"
  }
}'
{
  "type": "zap",
  "id": "033cc069f2d3-4d63-8666-10c07ab38dac",
  "is_enabled": true,
  "last_successful_run_date": "2019-08-24T14:15:22Z",
  "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=zapier"
  },
  "steps": [
    {
      "action": "example_core:Vn7xbE60",
      "authentication": "2kyXZ8VJ",
      "inputs": {},
      "title": null
    },
    {
      "action": "example_core:V7GpzX40",
      "authentication": null,
      "inputs": null,
      "title": null
    }
  ]
}
This API is rate limited.

Authorizations

Authorization
string
header
required

See our OAuth2 authentication documentation

Query Parameters

expand
string

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

application/json

Response

A Zap is an automated workflow that connects your apps and services together.