# Zapier API keys: find, store, rotate, and use them safely with AI agents

Source: https://botpassword.com/keys/zapier
Last checked: 2026-11-08

Zapier has two developer credentials: a Zapier MCP connection token, generated in a server's **Settings** tab at `mcp.zapier.com` and sent as `Authorization: Bearer <token>` to `https://mcp.zapier.com/api/v1/connect`, and a deploy key for the Zapier Platform CLI, created at `developer.zapier.com/partner-settings/deploy-keys`. A connection token lets whoever holds it run every tool on that MCP server and read what the tools return. Supported MCP clients such as Claude, ChatGPT and Cursor sign in with OAuth instead and need no token.

## Key types

| Type | Prefix | Secret | Scope | Expiry |
|---|---|---|---|---|
| Zapier MCP connection token | — | Yes | Runs the tools on one Zapier MCP server, using the app connections added to that server, and reads the data they return | Long-lived; tied to one server until rotated |
| Zapier Platform deploy key | — | Yes | Authenticates the Zapier Platform CLI to build and push your integrations | — |

## How to create a Zapier key

1. Go to `mcp.zapier.com` and click **Add MCP server**; under **Choose your AI agent**, select **Other**.
2. Add the apps and actions the server should expose.
3. Open the server's **Settings** tab and click **Generate token** in the **API token** section.
4. Copy the token at once, because Zapier shows it only once, and store it in `ZAPIER_MCP_TOKEN` or a secrets manager.
5. For the Platform CLI, create a deploy key at `developer.zapier.com/partner-settings/deploy-keys` instead.

## Limiting what the key can do

A Zapier MCP connection token is limited only by the server it belongs to: it can run every action that server exposes with that server's app connections. Keep each server small, with only the apps and actions an agent needs, and give each person their own server and token rather than sharing one, as Zapier advises. Send the token in the `Authorization` header rather than in the URL, because Zapier notes a URL is more likely to end up in a log, a shell history or a committed config file. For clients on Zapier's supported list, OAuth is the better choice because the client stores and refreshes the credential itself.

## How to rotate a Zapier key

1. Open the server at `mcp.zapier.com` and go to the **Settings** tab.
2. Click **Rotate token** in the **API token** section and copy the new token.
3. Update every MCP client and script that used the old token, then restart the clients.

## How to revoke a Zapier key

1. Rotate the token on the server's **Settings** tab, which kills the old value at once.
2. To cut off an app instead, use the menu beside the app on the server and update its authentication.

## If the key leaked

1. Click **Rotate token** on the server's **Settings** tab straight away.
2. Check the apps connected to the server for actions you did not run.
3. Remove apps and actions the server does not need before handing out the new token.
4. Store the new token in an environment variable such as `ZAPIER_MCP_TOKEN`, not in chat or a committed file.

## Environment variables

- `ZAPIER_MCP_TOKEN`
- `ZAPIER_DEPLOY_KEY`

## Gotchas

- Rotating a Zapier MCP token breaks every client that shares it at the same moment, so list where the token is used before rotating.
- A server URL that carries the token as a query parameter is itself a secret; prefer the `Authorization` header.
- OAuth clients (Claude, ChatGPT, Cursor) do not use connection tokens, so rotating a token does not fix an OAuth client's error.

## Using this key with AI agents (BotPassword)

- `run_with`: Runs a command with the key injected as an environment variable or a 0600 temporary file, never on the command line, and redacts the key from the output.
- `http_request`: Makes an authenticated API call after checking the destination against the hosts this key may be sent to. The response comes back with credential-shaped values redacted, and one that holds the key itself is refused.

## FAQ

### Where do I find my Zapier API key for MCP?

Zapier calls it a connection token. Open your server at `mcp.zapier.com`, go to **Settings**, and click **Generate token** under **API token**. It is shown once.

### Does Claude or Cursor need a Zapier token?

No. Zapier's supported clients register Zapier as an MCP server and send you through a Zapier sign-in, then store and refresh the credential themselves.

### How do I use a Zapier MCP token in my own code?

Zapier's Python and TypeScript examples read the token from `ZAPIER_MCP_TOKEN` and send it as `Authorization: Bearer` to `https://mcp.zapier.com/api/v1/connect`.

### How do I reset a Zapier MCP token?

Click **Rotate token** in the **API token** section of the server's **Settings** tab. The old token stops working immediately.

### How do I log in to the Zapier Platform CLI without a password?

Create a deploy key at `developer.zapier.com/partner-settings/deploy-keys` and run `zapier-platform login --sso`.

### Can an AI agent use my Zapier key without seeing it?

Yes, if the key never enters the agent's context. Instead of pasting the key into a chat or leaving it in a `.env` file the agent can read, keep it in a credential broker that injects it into the command or request on the agent's behalf. BotPassword does this with `run_with`, `http_request`, so the agent gets the result and never the value.

## Sources

- https://docs.zapier.com/mcp/overview/how-connections-work
- https://docs.zapier.com/mcp/get-started/connect/other
- https://docs.zapier.com/mcp/get-started/connect/python
- https://docs.zapier.com/mcp/troubleshoot/authorization-error
- https://docs.zapier.com/platform/reference/cli-docs
- https://docs.zapier.com/platform/build-cli/overview
