API overview

Authentication, roles, pagination, errors, and rate limits of the REST API.

Use the REST API to control one Zerodot project from a program.

Item Value
Base URL <your Zerodot address>/api/v1
OpenAPI 3.1 file /api/v1/openapi.json (no key necessary)
Format JSON
Maximum body 5 MB

The examples use two shell variables:

export ZERODOT_URL="https://zerodot.example.com"
export ZERODOT_KEY="zerodot_..."

Authentication

  1. Make an API key. See API keys.
  2. Send the key in the Authorization header.
curl "$ZERODOT_URL/api/v1/workflows" \
  -H "Authorization: Bearer $ZERODOT_KEY"

A key can use only the project where you made it. A wrong, unknown, or expired key gets 401.

Roles

Each key has one role.

Role Access
member All routes that do not need admin. This includes publish, activate, share links, runs, and table rows. It can also read credential names and types, variables, node types, and insights.
admin All of the above. Also change credentials, variables, and table schemas, and list API keys.

A member key that calls an admin route gets 403.

API keys

An admin key can list the keys of the project:

GET /api/v1/api-keys

An API key cannot make or delete keys. It gets 403. To make a key, use the app. To make a key without a browser, see API keys.

Pagination

The lists of workflows, workflow versions, and runs use pages.

Query parameter Meaning
limit Items in one page. 1 to 100. Default: 50.
cursor The nextCursor value of the page before.
{ "items": [], "nextCursor": null }

When nextCursor is null, there are no more pages.

Table rows are different. The answer is { "rows": [], "nextCursor": null }. The limit is 1 to 1000, and the default is 100.

Other lists have no pages.

Errors

All errors have the same shape. The details field is optional.

{
  "error": {
    "code": "bad_request",
    "message": "The request is not valid",
    "details": [{ "path": "name", "message": "..." }]
  }
}
Status Code Cause
400 bad_request The request is not valid.
401 unauthorized The key is missing, wrong, or expired.
403 forbidden The key cannot do this.
404 not_found The item or the route does not exist.
405 method_not_allowed The route does not accept this method.
409 conflict The request does not agree with the current data.
413 payload_too_large The body is larger than 5 MB.
429 rate_limited You sent too many requests.
500 internal The server had a problem.

Rate limit

Each key can make 600 requests in one minute. Above this limit, the answer is 429 with the header Retry-After: 60. Wait, then send the request again.

To change the limit, set ZERODOT_API_RATE_LIMIT_PER_MINUTE. See Configuration.

Webhooks have a different limit. See Webhooks.

Routes

Page Content
Run workflows Start a run, wait for the result, retry, and read events.
Workflows Make, publish, activate, import, and share workflows.
Runs Start and read runs.
Credentials Manage credentials.
Node types Read node types and search packages.
Variables Manage variables.
Data tables Manage tables and rows.
Insights Read run statistics.

MCP

The MCP server is at /mcp. It uses the same keys, project, and roles. See Build with AI.

Change this page on GitHub