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 here: https://docs.zapier.com/powered-by-zapier/api-reference/authentication

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
data
object
required

See our Building a Zap guide to get started.

Response

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

type
string
required

The type of this object.

id
string
required

A unique identifier of the Zap.

last_successful_run_date
string | null
required

The date/time at which this Zap last ran successfully. A null value indicates that a Zap has never run successfully.

updated_at
string
required

The last time this Zap was updated

title
string
required

The human readable name of the Zap.

Link to open this Zap in the Zapier Editor

steps
array
required

A list of the steps this Zap consists of

is_enabled
boolean
default:true

Whether the Zap is enabled (running) or not.