POST
/
v2
/
zaps
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": "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

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

Response

201
application/json

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