API keys

Make API keys and call the REST API and the MCP server.

An API key lets a program use one project through the REST API or the MCP server.

Make a key

Only an owner or an admin can manage API keys.

  1. Open API keys in the project.
  2. Click New API key.
  3. Enter a Name.
  4. Choose a Role.
  5. Choose when the key Expires: Never, 30 days, 90 days, or 1 year.
  6. Click Create key.
  7. Copy the key.

The key shows only one time. Store it in a safe place. If you lose it, delete the key and make a new one.

The API keys page also shows Last used for each key. To revoke a key, delete it. Clients that use it stop working.

Roles

Role Access
member Workflows, runs, and table rows.
admin The same, and variables, credentials, and table schemas.

A key can use only the project where you made it.

Use a key

Send the key in the Authorization header:

Authorization: Bearer <key>
Interface Path
REST API /api/v1
OpenAPI /api/v1/openapi.json
MCP /mcp

The MCP server uses the same keys, project scope, and roles. See Build with AI.

Example: run a workflow

This command runs the published version of a workflow. With wait=true, the answer holds the result.

curl -X POST "$ZERODOT_URL/api/v1/workflows/$ID/run?wait=true" \
  -H "Authorization: Bearer $ZERODOT_KEY" \
  -H "content-type: application/json" \
  -d '{"input":{"name":"Ada"}}'

Without wait=true, the answer is 202 and has the run id. A request that waits too long also returns 202. For all routes and settings, see API overview.

A key cannot make or delete keys

An API key cannot make or delete keys. Use the app, or sign in as a user.

To make a key without a browser:

  1. Sign in with POST /api/auth/sign-in/email. Keep the cookie.
  2. Send POST /api/v1/api-keys with the cookie and the header x-zerodot-project: <project slug>.
{"name":"ci","role":"admin","expiresInDays":null}

The answer has the full key one time.

Use a key that you chose

To make a key before first use, set these variables in .env:

ZERODOT_BOOTSTRAP_API_KEY=zerodot_<at least 32 letters or digits>
ZERODOT_BOOTSTRAP_PROJECT=<project slug>
  1. Sign up in the app first.
  2. Make the first API call with the key.

Zerodot saves the key as an admin key in the project. If you do not set a project, it uses the oldest project. To revoke the key, delete it in the app. If you change the variable, the old key stays until you delete it.

Rate limit

Each key can make 600 requests each minute. To change this, set ZERODOT_API_RATE_LIMIT_PER_MINUTE.

Change this page on GitHub