https://api.zapier.com. Select an API in the sidebar to browse its endpoints,
schemas, authentication, and an interactive playground, all generated from the
API’s OpenAPI spec.
Before you begin
Every request acts on behalf of a Zapier user. You need:- A Zapier account. The access token you use belongs to that account, so a request can only read or change what that account can access in Zapier.
- OAuth client credentials, which you exchange for an access token. The next sections cover both.
Authentication
All Zapier public APIs are served fromhttps://api.zapier.com and use OAuth 2.0.
Pass your access token in the Authorization header on every request:
Get an access token
To call the APIs as yourself (from a script, a server, or an AI agent), create OAuth client credentials and exchange them for an access token. Client credentials are a client ID and client secret that act on behalf of the Zapier user who created them. They are not the Embed app credentials from the Zapier Developer Platform that the Workflow API uses for an app access token. The client secret and the access tokens it creates give access to all public APIs as you. Protect them like your Zapier password.Create client credentials
Create credentials in your Zapier account, or with the Zapier SDK CLI. Both methods create the same kind of credentials, and you exchange them for a token the same way. In your Zapier account: use this method when you cannot install the Zapier SDK.- Go to SDK credentials in your Zapier account.
- Create a new credential.
- Copy the client secret immediately and store it in a secret manager. Zapier shows it only once.
- Return to the list of credentials.
- Select the row for your new credential to get its client ID.
--headless to login. login stores its
own credential in your operating system’s keychain for the SDK and CLI.
create-client-credentials creates a separate credential, asks you to confirm, and
then prints the client_id and client_secret as plain text. Copy the secret into a
secret manager now: Zapier returns it only once. Do not run the command where the output
is recorded, such as CI logs, a shared screen, or a terminal recording. For every option,
go to create-client-credentials in the
CLI reference.
The Zapier SDK is off by default on Enterprise accounts. To request access,
contact your account team or Zapier Support.
Keep your credentials safe
- Keep the client secret and access tokens in a secret manager, or in a
.envfile that git ignores. Never commit them. - Do not type or paste the secret into a command. For example,
export ZAPIER_CREDENTIALS_CLIENT_SECRET=<value>writes the value to your shell history. - Never paste a client secret or access token into an AI chat.
- Use a separate credential for each environment, such as local development, staging, and production.
- Delete credentials that you no longer use.
- If a secret is exposed, delete the credential and create a new one.
Exchange the credentials and call an API
1
Load your credentials into environment variables
Set
ZAPIER_CREDENTIALS_CLIENT_ID and ZAPIER_CREDENTIALS_CLIENT_SECRET, the same variables the Zapier SDK reads. Load them from your secret manager or a .env file that git ignores. To enter the secret by hand, use read -s, which keeps it off the screen and out of your shell history:2
Exchange the credentials for an access token
This request matches the one the Zapier SDK sends. The response includes an
printf passes the secret to curl on standard input, so the secret does not appear in the process list. The example uses jq to save the token in a variable:access_token and its lifetime in seconds in expires_in (currently 36000, or 10 hours). Zapier does not return a refresh token. Reuse the token until it expires, then request a new one the same way. Do not exchange the secret for every API call.3
Call an API
Pass the token in the
Authorization header. This request lists the Zapier tables your account can access: