Skip to content

REST API

Every amabledata installation exposes a JSON REST API that covers the whole product: CRM, deals, tasks and calendar, automations, e-commerce, the shared inbox, email marketing and broadcasts, web analytics and funnels, forms, bookings, landing pages, electronic signatures, reports and dashboards, outgoing webhooks and domains. The web app itself uses the same API, so anything you can do in the dashboard you can usually do from code.

Who uses it:

  • Integrators who sync contacts, orders or deals with another system.
  • Developers who build internal tools, scripts or back-office jobs on top of a workspace.
  • App developers (the marketplace platform) whose apps call the same endpoints with an app access token. See Build an app.
  • AI assistants (Cursor, Claude, VS Code and other MCP clients) through the built-in MCP server, which exposes every endpoint as tools with the same API keys.

The API is tenant-scoped: every data endpoint lives under one workspace, identified by its slug (the <workspace> part of the dashboard URL /t/<workspace>/…).

Where to find things in the app:

  • Settings › API keys (/t/<workspace>/settings/api-keys) creates and revokes the keys used to call the API. See API keys.
  • Settings › API reference (/t/<workspace>/settings/api-docs) is the interactive reference of every endpoint, generated from the live OpenAPI document. See API reference.
  • Settings › Webhooks (/t/<workspace>/settings/webhooks) pushes events to your servers instead of polling. See Webhooks for developers.

The API runs on the same origin as your dashboard. There is no shared global API host: each installation (self-hosted or cloud) answers on its own hostname.

https://<your dashboard host>/api/v2/t/<workspace>/

For example, if you open the dashboard at https://crm.example.com/t/acme/contacts, the contacts endpoint is https://crm.example.com/api/v2/t/acme/contacts.

The workspace slug is 1 to 64 characters: lowercase letters, digits and dashes, not starting or ending with a dash. A slug that does not match this format, a workspace that does not exist, and a workspace your credential does not belong to all answer the same 404 tenant_not_found, so workspaces cannot be discovered by guessing.

A few endpoints live outside the workspace prefix:

Path What it is
GET /api/health { "ok": true, "schemaVersion": <number> }. No authentication.
GET /api/v2/openapi/all.json The merged OpenAPI 3.1 document of the whole public API. No authentication.
GET /api/v2/openapi Index of the per-module OpenAPI documents. No authentication.
/api/v2/analytics/… The analytics API of a single site, authenticated with a site key instead of a workspace API key. See Site keys.
/api/apps/v1/… The OAuth server used by marketplace apps. See Build an app.
/api/mcp/t/<workspace> The MCP server for AI assistants, authenticated with a workspace API key. See MCP server.

The workspace REST API accepts three kinds of credentials. Integrations normally use an API key.

Credential Format Who creates it Where it works
Workspace API key amb_live_ followed by 43 random characters A member with the api_keys:manage permission, in Settings › API keys /api/v2/t/<workspace>/… of the workspace it was created in
App access token amb_app_…, valid 1 hour, refreshed with an amb_apr_… refresh token Issued to a marketplace app when a workspace installs it /api/v2/t/<workspace>/… of the installing workspace, within the scopes the admin accepted
Browser session __Host-sid cookie Signing in to the dashboard Every route; state-changing requests also need the x-amable-csrf header and an allowed Origin

There are no personal access tokens tied to a user account: for scripts and integrations, create a workspace API key.

Send the API key in the Authorization header with the Bearer scheme:

Terminal window
curl https://crm.example.com/api/v2/t/acme/contacts?limit=5 \
-H "Authorization: Bearer amb_live_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"

How an API key is checked on every request:

  1. The key is looked up by its SHA-256 hash. Only the hash and a short visible prefix (amb_live_ plus 6 characters) are stored; the full key is shown once, at creation.
  2. A revoked key is rejected immediately.
  3. The member who created the key must still exist, must not be disabled and must still be a member of the workspace. If the creator leaves the workspace, every key they created stops working with 401 invalid_api_key.
  4. The key’s effective permissions are computed on every request: the scopes chosen at creation intersected with the current role of the creator. If the creator is demoted from admin to sales, a key created with admin scopes loses everything a sales member cannot do, without being edited.
  5. The key’s “Last used” time is updated.

Each operation requires exactly one permission. The OpenAPI document publishes it as x-amable-permission on every operation, and the API reference shows it next to the path with a lock icon. When the key lacks it, the answer is 403 forbidden with "missing": ["<permission>"].

Things an API key can never do, whatever its scopes:

  • Create or revoke API keys (POST /api/t/<workspace>/api-keys needs a browser session and a fresh second-factor confirmation).
  • Pass a “step-up” check: endpoints that require a recently re-entered second factor answer 403 session_required to an API key, except the ones that only ask step-up of browser sessions (creating webhook endpoints, rotating webhook or automation signing secrets, connecting domains). Those accept an API key because a key is an explicit, scoped integration.
  • Install, approve or uninstall marketplace apps.

Marketplace apps authenticate exactly like API keys (Authorization: Bearer amb_app_…), but their permissions are the scopes the admin granted at install time. Responses to app requests carry two extra headers: Amable-Api-Version (the app API version of the install) and Amable-Granted-Scopes (space-separated granted scopes).

Request header When Notes
Authorization: Bearer <key> Always (API keys and app tokens) A Bearer header on a route that does not accept keys answers 401 api_key_not_allowed.
Content-Type: application/json Every request with a JSON body Bodies are JSON objects. Raw uploads (workspace logo, media library, CSV import) send the file bytes instead, as documented on those endpoints.
Idempotency-Key: <key> Optional, on POST 1 to 255 visible ASCII characters (! to ~, no spaces). See Idempotency.
Accept: application/json Optional Every endpoint answers JSON, except the CSV export of reports and file downloads.
Response header Meaning
Content-Type: application/json JSON body.
Cache-Control: no-store API answers are never cached (the public OpenAPI document is the exception: public, max-age=300).
Idempotent-Replayed: true This answer is a stored replay of an earlier request with the same Idempotency-Key.
Retry-After, RateLimit-Policy Sent with 429 rate_limited answers to API keys and apps. See Rate limits.
Amable-Api-Version, Amable-Granted-Scopes Only on requests made with an app access token.
X-Content-Type-Options, X-Frame-Options, Referrer-Policy, Content-Security-Policy, Cross-Origin-Resource-Policy, Strict-Transport-Security Security headers added to every API answer (HSTS only over HTTPS).

By default no browser origin may call the API with an API key: cross-origin requests get no CORS headers. A self-hosted operator can allow origins with the API_CORS_ORIGINS variable of the core worker (comma-separated origins, or * for any origin). Then, for paths under /api/v2/ only:

  • preflight requests from an allowed origin get 204 with Access-Control-Allow-Methods: GET, POST, PUT, PATCH, DELETE, Access-Control-Allow-Headers: authorization, content-type, idempotency-key and Access-Control-Max-Age: 600; a preflight from any other origin gets 403;
  • answers carry Access-Control-Allow-Origin and expose the Retry-After header;
  • credentials are never allowed: a browser can send a Bearer key but can never ride a dashboard session cookie.

The version is part of the path: the current surface is /api/v2, published as OpenAPI info.version 2.0.0. Within v2, changes are additive (new endpoints, new optional fields, new enum values, new event types): write clients that ignore fields they do not know. There is no version header for API keys.

Marketplace apps have their own dated API version (2026-10 today), declared in the app manifest. See Build an app.

  • Field names are snake_case in request and response bodies (given_name, next_cursor, total_minor). Payloads inside webhook data objects are the exception: they use camelCase (contactId). See Webhooks for developers.
  • Strict bodies. Request bodies are validated strictly: an unknown key is an error (422 validation_failed), not silently ignored. Check the spelling of every field.
  • Partial updates. PATCH changes only the fields you send. Send null to clear a nullable field. On contacts, lists (emails, phones, addresses) are replaced when present, while custom_fields are merged (a null value clears that field).
  • Deletes. Most DELETE answers are { "id": "<id>", "deleted": true }; some resources answer { "ok": true }. Many records (contacts, companies, tags, landing pages) are soft-deleted and have a matching POST …/restore endpoint.
  • Rich text fields (note bodies, task descriptions) are editor JSON documents of the form { "type": "doc", "content": [ … ] }, bounded to 256 KB.
  • Custom fields travel in a custom_fields object keyed by the field key; values are strings, numbers, booleans, arrays of strings or null. See Custom fields.

Ids are opaque strings of 1 to 64 characters (most are ULIDs, time-ordered and URL-safe; some resources add a short prefix, such as st_ for analytics sites). Never parse them or build them yourself: store them as text and pass them back as you received them.

Kind Format Example
Timestamp in a response ISO 8601, always UTC "2026-10-18T09:41:27.000Z"
Timestamp in a request ISO 8601 date-time with Z or an explicit offset "2026-10-18T11:41:27+02:00"
Calendar date (birthday, expected close date) YYYY-MM-DD "1990-04-12"
Analytics range bounds (from, to) YYYY-MM-DD (inclusive local days) or a full date-time from=2026-10-01&to=2026-10-18

Analytics queries take an optional timezone (IANA name, e.g. Europe/Rome); otherwise the site time zone is used. See Money and time zones.

Every amount is an integer number of minor units of an ISO 4217 currency, never a float:

  • Field names end in _minor: price_minor, unit_price_minor, total_minor, paid_minor, balance_minor, amount_minor, value_minor.
  • 1999 with "currency": "EUR" means 19.99 EUR; 1999 with "currency": "JPY" means 1,999 JPY (a currency without decimals).
  • E-commerce amounts are capped at 100,000,000,000 minor units.
  • Tax rates are integers in basis points: 2200 means 22%.
  • Currencies are upper-case three-letter ISO 4217 codes; unknown or withdrawn codes are refused.

The web tracker and the analytics ingest are the only places that take major units (amount: 19.99), because they mirror what a checkout page knows. They are converted to minor units on arrival. See Tracker protocol.

List endpoints use cursor pagination:

Query parameter Type Default Limits
limit integer 50 1 to 200
cursor string none at most 512 characters; the next_cursor of the previous page

The answer is an envelope:

{
"data": [ { "id": "01JA…", "given_name": "Ada" } ],
"next_cursor": "eyJ2IjoxNzI5MjQ0ODg3MDAwLCJpZCI6IjAxSkEuLi4ifQ"
}

next_cursor is null on the last page. The cursor is opaque (it encodes the sort value and the id of the last row, so pages stay stable while new records arrive): do not build or edit it, and keep the same filters while you follow it. A malformed cursor answers 400 bad_request with "message": "invalid cursor".

Some short lists (lead sources, pipelines, webhook endpoints, sites) return { "data": [ … ] } without a cursor. The webhook delivery log pages with before (an ISO date-time) and limit (1 to 100) instead. Each endpoint documents its own sort order (contacts: newest first; orders: newest order date first; invoices: newest number first).

Filters are plain query parameters, specific to each list, and combine with AND. Examples:

Endpoint Filters
GET /contacts q (full-text, up to 200 characters), email, tag_id, owner_id, company_id, updated_since (date-time), include_deleted=true
GET /opportunities pipeline_id, stage_id, owner_id, contact_id, status (open, won, lost)
GET /bookings status, event type, calendar, contact, start range
GET /webhooks/{id}/deliveries status (pending, retrying, succeeded, failed), before
GET /analytics/* site_id (required), from, to, timezone, and filter_<dimension>=<value>

Analytics filters take a dimension (channel, referrer, source, campaign, utm_source, utm_medium, utm_term, utm_content, country, region, city, device, browser, os, hostname, entry_page, exit_page, page, goal) and a value: filter_country=IT (is), filter_country=!IT (is not), filter_page=~pricing (contains). Values are at most 255 characters; an unknown dimension is a 422.

For complex contact queries, use the query builder: GET /search/fields lists the filterable fields and their operators, POST /search runs a query, and saved searches (/savedSearches) store reusable segments. See Search and saved searches.

Every POST under /api/v2/t/<workspace>/ accepts an Idempotency-Key header, so a network retry never creates a second contact, order or payment:

  1. The first request with a key runs normally. Its answer is stored for 24 hours inside the workspace, together with a hash of the method, path and body.
  2. A retry with the same key and the same body does not run again: it receives the stored answer, with the same status code and the header Idempotent-Replayed: true.
  3. The same key with a different body or path answers 422 idempotency_conflict.
  4. A retry that arrives while the first request is still running answers 409 idempotency_in_progress. Wait and retry.

Keys are scoped to the credential: each API key, each app install and each user has its own key space. Successful answers and deterministic client errors (for example 422) are stored and replayed; 401, 403, 429 and every 5xx are not stored, so you can fix the problem and retry with the same key.

Use a fresh random value (a UUID is perfect) per logical operation, and reuse it only for retries of that operation. A key must be 1 to 255 visible ASCII characters; anything else answers 400 bad_request (invalid Idempotency-Key header).

Some endpoints are also naturally idempotent on a business key: recording a payment or a refund with a transaction_id that already exists on the order does not record it twice.

Credential Limit What happens above it
Workspace API key 600 requests per minute per key 429 rate_limited with Retry-After (seconds, at least 1) and RateLimit-Policy: 600;w=60.
App access token 600 requests per minute per install 429 rate_limited with Retry-After (seconds) and RateLimit-Policy: 600;w=60.

The counters use the Workers Rate Limiting binding when the installation has it configured, and fixed one-minute windows in the database otherwise. Spread bulk jobs over time, run them with bounded concurrency, and back off when you see these answers.

A 429 is never caused by a bad key: an unknown, revoked or orphaned key always answers 401 invalid_api_key, even when it is sent in a burst. On a 429, wait the number of seconds in Retry-After before retrying.

Sign-in and other account endpoints have their own, stricter limits that do not affect API keys.

Every non-2xx answer has a JSON body with at least an error code:

{
"error": "validation_failed",
"message": "emails.0.email: Invalid email address",
"details": [
{ "path": "emails.0.email", "message": "Invalid email address" }
]
}
Field Always present Meaning
error yes Stable, machine-readable code. Branch on this.
message most domain errors Human-readable explanation in English. Do not parse it.
details validation errors One { path, message } per invalid field; path is dotted (items.0.unit_price_minor).
missing 403 forbidden The permissions the credential lacks.
reason 403 csrf_rejected Why the CSRF check failed (browser sessions only).
fields, scopes, info some endpoints Extra context: invalid fields of account and key endpoints, scopes above your role, details of email-module errors.

Unexpected server errors never echo internals: they answer 500 { "error": "internal_error" } and are logged on the server.

Mutations are processed like changes made in the dashboard:

  • Domain events (for example contact.created, order.paid) are written in the same transaction as the change and drained by the automation engine right after the request. They start automations and are fanned out to webhooks.
  • Contacts created through the API by an API key (not by an app) go through the installed contact validation apps, if any, in the background.
  • Writes to contacts, orders and other CRM records are synced to web analytics after the request (visitor identities, revenue).

Create an API key and make your first call

Section titled “Create an API key and make your first call”
  1. Open Settings › API keys and click New API key.

  2. Type a Name (up to 80 characters, for example Website sync) and choose the Scopes: Read only (every read permission you have), Everything my role allows, or Custom (tick individual permissions, grouped by module). You can only grant permissions you have yourself.

  3. Click Create key. Confirm your second factor if asked. Copy the key from the box titled Key “…” created: it is shown once.

  4. Call the API with the key:

    Terminal window
    curl "https://crm.example.com/api/v2/t/acme/contacts?limit=5" \
    -H "Authorization: Bearer $AMABLE_KEY"
  5. Store the key in your secret manager. If it leaks, click Revoke next to it: integrations using it stop working immediately.

For every field and column of that page, see API keys.

  1. Request the first page with the limit you want (up to 200).

  2. If next_cursor is not null, request the same URL with cursor=<next_cursor> added.

  3. Repeat until next_cursor is null.

    Terminal window
    cursor=""
    while : ; do
    page=$(curl -s "https://crm.example.com/api/v2/t/acme/contacts?limit=200${cursor:+&cursor=$cursor}" \
    -H "Authorization: Bearer $AMABLE_KEY")
    echo "$page" | jq -c '.data[]'
    cursor=$(echo "$page" | jq -r '.next_cursor // empty')
    [ -z "$cursor" ] && break
    done
  1. Remember the time of your last successful sync.

  2. List contacts with updated_since=<that time> (ISO date-time) and follow the cursor.

  3. For near-real-time sync, subscribe a webhook endpoint to contact.created, contact.updated, contact.deleted and contact.merged instead of polling, and re-read the contact by id when an event arrives.

  1. Generate a UUID for the operation (for example, one per order you push).

  2. Send the POST with Idempotency-Key: <uuid>.

  3. On a timeout, a network error or a 5xx, retry with the same key and the same body. On 409 idempotency_in_progress, wait a second and retry.

  4. Never reuse the key for a different operation.

Create a contact (idempotent):

Terminal window
curl -X POST "https://crm.example.com/api/v2/t/acme/contacts" \
-H "Authorization: Bearer $AMABLE_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: 7d9f2c1e-0b8a-4e57-9a3c-2f6d1b0e9a41" \
-d '{
"given_name": "Ada",
"family_name": "Lovelace",
"emails": [{ "email": "ada@example.com", "label": "work" }],
"phones": [{ "number": "+39 02 1234567", "type": "work" }],
"source_type": "api",
"utm": { "source": "partner", "campaign": "autumn" },
"custom_fields": { "industry": "Software" }
}'

The answer is 201 with the full contact: id, the name fields, emails (each with email, label, is_primary), phones, addresses, social_accounts, tag_ids, custom_fields, score_value, marketable_status, owner_id, company_id, merged_into_id, created_at, updated_at, deleted_at.

Find a contact by email, then update it:

Terminal window
curl "https://crm.example.com/api/v2/t/acme/contacts?email=ada@example.com" \
-H "Authorization: Bearer $AMABLE_KEY"
curl -X PATCH "https://crm.example.com/api/v2/t/acme/contacts/01JAB3K9Q8W7E6R5T4Y3U2I1O0" \
-H "Authorization: Bearer $AMABLE_KEY" \
-H "Content-Type: application/json" \
-d '{ "job_title": "Analyst", "custom_fields": { "industry": null } }'

Apply tags:

Terminal window
curl -X POST "https://crm.example.com/api/v2/t/acme/contacts/01JAB3K9Q8W7E6R5T4Y3U2I1O0/tags" \
-H "Authorization: Bearer $AMABLE_KEY" \
-H "Content-Type: application/json" \
-d '{ "tag_ids": ["01JAB4TAG000000000000000AA"] }'

The OpenAPI document groups the 459 operations of v2 into seven modules. All paths are relative to /api/v2/t/<workspace>.

Module Main resources (paths)
CRM, automations & commerce /contacts, /companies, /tags, /tagCategories, /notes, /customFields/{entity}, /tasks, /appointments, /calendar, /pipelines, /opportunities, /search, /savedSearches, /imports, /leadSources, /automations, /automationGoals, /automationFolders, /automationSettings, /commerce/settings, /commerce/stripe, /products, /productCategories, /plans, /promoCodes, /orders, /payments, /refunds, /subscriptions, /checkouts, /invoices, /billing/run, /workspace, /settings/general, /conversations
Email marketing /emailTemplates, /emailSnippets, /suppressions, /contacts/{id}/emails, /emailMessages/{id}, /email/settings, /broadcasts, /liquid/schema, /liquid/preview
Web analytics /analytics/sites, /analytics/overview, /analytics/timeseries, /analytics/breakdown/{dimension}, /analytics/visitors, /analytics/funnels, /analytics/funnels-v2, /analytics/traffic-sources, /analytics/ads/connections, /analytics/ads-reports/*, /analytics/outbound, /analytics/tracking-domains, /analytics/alerts, /analytics/shares and more
Forms, bookings & landing pages /forms, /forms/{formId}/submissions, /forms/{formId}/connections, /bookingCalendars, /bookingEventTypes, /bookings, /pages, /pageFolders, /savedSections, /media, /esignTemplates, /esignRequests
Reports & dashboards /reports, /reports/{reportId}/run, /reports/{reportId}/export.csv, /customReports, /dashboards
Outgoing webhooks /webhooks, /webhooks/event-types, /webhooks/{id}/deliveries, /webhooks/deliveries/{deliveryId}
Domains /domains, /domains/sending-status

Use the API reference for the parameters, bodies, answers and permission of each operation.

The electronic signature operations (tags E-signature templates and E-signature requests, see Signatures):

Method and path Permission What it does
GET /esignTemplates esign:read List templates (filters status, q)
POST /esignTemplates esign:write Create a template (then upload its PDF and place the fields)
GET /esignTemplates/{templateId} esign:read Get a template
PATCH /esignTemplates/{templateId} esign:write Update name, parties, signing order, fields, settings or status (active needs the document and a field per party)
DELETE /esignTemplates/{templateId} esign:write Delete a template (requests already sent are kept)
PUT /esignTemplates/{templateId}/document esign:write Upload the PDF as raw body (application/pdf, optional filename query): up to 20 MB and 50 pages, not encrypted. Answers 413 (too large), 415 (not a PDF), 422 (encrypted, empty, unreadable or too many pages). Page images must be uploaded again
GET /esignTemplates/{templateId}/document esign:read The template PDF
PUT /esignTemplates/{templateId}/pages/{page}/image esign:write Upload the rendered image of one page (WebP, PNG or JPEG, up to 4 MB; query source_sha256 of the PDF it was rendered from, 409 if the PDF changed)
GET /esignTemplates/{templateId}/pages/{page}/image esign:read Rendered image of one page
GET /esignRequests esign:read List requests (filters status, template_id, contact_id)
POST /esignRequests esign:write Send an active template for signature
GET /esignRequests/{requestId} esign:read A request with its signers, fields and full audit trail
POST /esignRequests/{requestId}/void esign:write Cancel a request still being signed (optional reason, up to 500 characters); links stop working
POST /esignRequests/{requestId}/remind esign:write Email a reminder now to the signers whose turn it is, or only to signer_id
POST /esignRequests/{requestId}/finalize esign:write Retry sealing the signed PDF after the automatic attempts failed
GET /esignRequests/{requestId}/document esign:read The sealed PDF with its certificate pages (kind=completed, default) or the original (kind=original); download=true downloads it
POST /esignRequests/{requestId}/signers/{signerId}/link esign:write The signing link of one signer, to share it another way (recorded in the audit trail)
Method and path Permission Notes
POST /api/v2/t/<workspace>/contacts/{id}/erase contacts:write and contacts:export Irreversible erasure of a contact everywhere, including the data held by installed apps. Browser sessions need a fresh second factor; apps are refused. Answers { ok, request_id, apps_notified }.
POST /api/v2/t/<workspace>/contacts/{id}/data-request contacts:export Right-of-access export: the contact plus what each installed app holds. Apps are refused.
GET /api/t/<workspace>/api-keys api_keys:manage Lists keys: id, name, prefix, scopes, createdBy, createdAt, lastUsedAt, revokedAt.
POST /api/t/<workspace>/api-keys api_keys:manage, browser session with fresh second factor Body { "name": 1-80 chars, "scopes": [permissions] }. Answers 201 { id, key, prefix, scopes }; key is shown only here. Scopes above your role answer 403 scope_exceeds_role with the offending scopes.
DELETE /api/t/<workspace>/api-keys/{id} api_keys:manage, browser session with fresh second factor Revokes a key. Unknown id: 404 api_key_not_found.

Each analytics site can have its own keys, created in the analytics settings on the Keys tab (or with POST /analytics/sites/{siteId}/keys). A site key looks like amb_ak_<siteId>.<secret>, is shown once, carries the scopes read and/or write, and works only on /api/v2/analytics/… for that one site, without a workspace slug:

Method and path Scope
GET /api/v2/analytics/overview, /timeseries, /breakdown/{dimension}, /goals, /realtime, /insights, /purchases, /visitors, /visitors/{visitorId}, /funnels, /funnels/{id} read
POST /api/v2/analytics/goals, /identify, /payments write

A missing or wrong key answers 401 invalid_site_key; a key without the needed scope answers 403 forbidden with "missing": ["site_key:read"] or ["site_key:write"]. For account-wide analytics access, use a workspace API key with analytics:read on /api/v2/t/<workspace>/analytics/…. The write endpoints are described in Tracker protocol.

Codes returned by the authentication and access layer, on every endpoint:

HTTP error Meaning and fix
401 unauthenticated No credential, or the session is unknown. Send Authorization: Bearer <key>.
401 session_expired Browser session expired. Sign in again (never seen with API keys).
401 invalid_api_key The key is unknown, revoked, or its creator is disabled or no longer a member. Check the key in Settings › API keys.
401 api_key_not_allowed A Bearer header was sent to a route that only accepts browser sessions (account and sign-in routes).
401 invalid_app_token App access token unknown, expired or of an uninstalled app. Refresh it.
401 app_paused The app install is paused by an admin or automatically.
403 forbidden The credential lacks a permission; see missing. Create a key with the right scope, or ask for a role that has it.
403 session_required The endpoint only works from a signed-in browser (for example creating API keys, installing apps).
403 step_up_required Browser session: re-enter your second factor (the dashboard asks automatically), then retry.
403 csrf_rejected Browser session request without the x-amable-csrf header or from an origin that is not allowed. Never seen with Bearer credentials.
404 tenant_not_found The workspace slug is wrong, or the credential does not belong to that workspace.
429 rate_limited API key or app token over 600 requests per minute. Wait Retry-After seconds.
500 internal_error Unexpected server error. Retry later; with Idempotency-Key the retry is safe.
503 auth_not_configured The installation is missing its security secrets. Self-hosters: see Configuration.

Codes returned by the data endpoints:

HTTP error Meaning and fix
400 bad_request Malformed request: invalid cursor, invalid Idempotency-Key, too many items in one call. Read message.
403 forbidden A business rule forbids the operation, for example changing a custom report or dashboard you do not own (only its owner, an owner or an admin can), choosing the default dashboard without the owner or admin role, or running a report on a source your role cannot read. Read message.
404 not_found The record does not exist, was deleted, or is not visible to you. message names the entity and id.
409 conflict The change conflicts with the current state: duplicate value, stale revision (automation drafts, landing page drafts and funnel graphs use optimistic locking), a pipeline or stage still in use, a plan with live subscriptions. Re-read, then retry.
409 idempotency_in_progress Another request with the same Idempotency-Key is still running. Retry shortly.
413 payload_too_large Body or document over its limit: rich text over 256 KB, an email body over 512 KB, a CSV import over 50 MB, a logo over 1 MB, a media file over 10 MB.
422 validation_failed A field is invalid, missing, unknown or out of range; see details.
422 idempotency_conflict The Idempotency-Key was already used with a different request. Use a new key.
422 invalid_json The body of an account or key endpoint is not valid JSON.
500 internal_error Unexpected error.

Codes of specific modules:

HTTP error Where Meaning
403 scope_exceeds_role API keys You asked for scopes your role does not have; see scopes.
404 api_key_not_found API keys No key with that id in this workspace.
422 invalid_url Webhooks The endpoint URL is not a public http(s) URL on a standard port.
409 limit_reached Webhooks The workspace already has 20 endpoints.
409 endpoint_disabled Webhooks Replay refused: enable the endpoint first.
503 analytics_unavailable Analytics The analytics worker is not deployed or not reachable.
401 invalid_site_key Site-key analytics API Missing, malformed or revoked site key.
403 app_token_required App API, /api/apps/v1/installation The endpoint only accepts app access tokens.
403 app_uninstalling App API After an uninstall the app may only delete its data.
422 unknown_trigger, unknown_channel App API The app manifest declares no trigger or channel with that key.

The email module may add an info object to its errors with context for the specific failure (for example the problems that block a broadcast).

  • Permissions. Each operation requires one permission, listed as x-amable-permission. The permissions and the role matrix are described in Roles and permissions. An API key is limited to its scopes intersected with its creator’s current role; an app to its granted scopes.
  • Managing keys needs api_keys:manage (owner and admin roles) and a browser session with a second factor confirmed in the last 5 minutes.
  • Rate limit: 600 requests per minute per API key or app install.
  • Page size: limit 1 to 200 (default 50); cursors up to 512 characters.
  • Idempotency: keys up to 255 characters, replayed for 24 hours.
  • Body limits: rich text 256 KB per document, email bodies 512 KB, CSV imports 50 MB, workspace logo 1 MB, media files 10 MB, merges up to 10 source contacts, tag application up to 100 tags per call.
  • Calendar range: GET /calendar covers at most 92 days.
Symptom Cause Fix
404 tenant_not_found on every call Wrong slug, or the key belongs to another workspace Copy the slug from the dashboard URL /t/<workspace>/…; keys only work in the workspace where they were created.
401 invalid_api_key with a key that worked before Revoked, or its creator was removed or disabled Check the key status in Settings › API keys; create a new key if needed.
429 rate_limited during a bulk job Over 600 requests per minute with the same key Wait Retry-After seconds, then lower the concurrency of your client.
403 forbidden with "missing": ["orders:read"] The key lacks the scope, or the creator’s role lost it Create a key with that scope (your role must have it).
403 session_required when creating an API key from a script Key management is only available to signed-in members Create keys in Settings › API keys.
422 validation_failed with a field you did not expect Bodies are strict: unknown or misspelled keys are rejected Compare with the schema in the API reference.
422 idempotency_conflict The same Idempotency-Key was reused for a different body Generate a new key per operation.
Amounts off by a factor of 100 Money is in minor units Send 1999 for 19.99.
Browser call blocked by CORS The origin is not in API_CORS_ORIGINS Call from your backend, or ask the operator to allow the origin.
400 bad_request “invalid cursor” The cursor was modified, truncated or URL-decoded twice Pass next_cursor back exactly as received, URL-encoded once.