REST API
Overview
Section titled “Overview”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.
How it works
Section titled “How it works”Base URL
Section titled “Base URL”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. |
Authentication
Section titled “Authentication”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:
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:
- 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. - A revoked key is rejected immediately.
- 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. - 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.
- 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-keysneeds 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_requiredto 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).
Headers
Section titled “Headers”| 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). |
CORS (calling the API from a browser)
Section titled “CORS (calling the API from a browser)”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
204withAccess-Control-Allow-Methods: GET, POST, PUT, PATCH, DELETE,Access-Control-Allow-Headers: authorization, content-type, idempotency-keyandAccess-Control-Max-Age: 600; a preflight from any other origin gets403; - answers carry
Access-Control-Allow-Originand expose theRetry-Afterheader; - credentials are never allowed: a browser can send a
Bearerkey but can never ride a dashboard session cookie.
Versioning
Section titled “Versioning”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.
JSON conventions
Section titled “JSON conventions”- Field names are
snake_casein request and response bodies (given_name,next_cursor,total_minor). Payloads inside webhookdataobjects are the exception: they usecamelCase(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.
PATCHchanges only the fields you send. Sendnullto clear a nullable field. On contacts, lists (emails,phones,addresses) are replaced when present, whilecustom_fieldsare merged (anullvalue clears that field). - Deletes. Most
DELETEanswers are{ "id": "<id>", "deleted": true }; some resources answer{ "ok": true }. Many records (contacts, companies, tags, landing pages) are soft-deleted and have a matchingPOST …/restoreendpoint. - 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_fieldsobject keyed by the field key; values are strings, numbers, booleans, arrays of strings ornull. 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.
Dates and times
Section titled “Dates and times”| 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.
Money in minor units
Section titled “Money in minor units”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. 1999with"currency": "EUR"means 19.99 EUR;1999with"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:
2200means 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.
Pagination
Section titled “Pagination”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).
Filtering
Section titled “Filtering”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.
Idempotency
Section titled “Idempotency”Every POST under /api/v2/t/<workspace>/ accepts an Idempotency-Key header, so a network retry never creates a second contact, order or payment:
- 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.
- 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. - The same key with a different body or path answers
422 idempotency_conflict. - 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.
Rate limits
Section titled “Rate limits”| 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.
Error format
Section titled “Error format”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.
Background effects of API calls
Section titled “Background effects of API calls”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).
Step by step
Section titled “Step by step”Create an API key and make your first call
Section titled “Create an API key and make your first call”-
Open Settings › API keys and click New API key.
-
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. -
Click Create key. Confirm your second factor if asked. Copy the key from the box titled Key “…” created: it is shown once.
-
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" -
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.
Read all pages of a list
Section titled “Read all pages of a list”-
Request the first page with the
limityou want (up to 200). -
If
next_cursoris notnull, request the same URL withcursor=<next_cursor>added. -
Repeat until
next_cursorisnull.Terminal window cursor=""while : ; dopage=$(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" ] && breakdone
Sync changes incrementally
Section titled “Sync changes incrementally”-
Remember the time of your last successful sync.
-
List contacts with
updated_since=<that time>(ISO date-time) and follow the cursor. -
For near-real-time sync, subscribe a webhook endpoint to
contact.created,contact.updated,contact.deletedandcontact.mergedinstead of polling, and re-read the contact by id when an event arrives.
Retry safely
Section titled “Retry safely”-
Generate a UUID for the operation (for example, one per order you push).
-
Send the
POSTwithIdempotency-Key: <uuid>. -
On a timeout, a network error or a
5xx, retry with the same key and the same body. On409 idempotency_in_progress, wait a second and retry. -
Never reuse the key for a different operation.
Reference
Section titled “Reference”Example requests
Section titled “Example requests”Create a contact (idempotent):
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:
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:
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"] }'List open deals of a pipeline:
curl "https://crm.example.com/api/v2/t/acme/opportunities?pipeline_id=01JAPIPE0000000000000000AA&status=open&limit=100" \ -H "Authorization: Bearer $AMABLE_KEY"Create a deal worth 4,500.00 EUR:
curl -X POST "https://crm.example.com/api/v2/t/acme/opportunities" \ -H "Authorization: Bearer $AMABLE_KEY" \ -H "Content-Type: application/json" \ -d '{ "title": "Annual plan - Acme", "pipeline_id": "01JAPIPE0000000000000000AA", "contact_id": "01JAB3K9Q8W7E6R5T4Y3U2I1O0", "value_minor": 450000, "currency": "EUR", "expected_close_date": "2026-11-30" }'Create a call task due tomorrow:
curl -X POST "https://crm.example.com/api/v2/t/acme/tasks" \ -H "Authorization: Bearer $AMABLE_KEY" \ -H "Content-Type: application/json" \ -d '{ "title": "Call Ada about the renewal", "type": "call", "priority": "high", "contact_id": "01JAB3K9Q8W7E6R5T4Y3U2I1O0", "due_at": "2026-10-19T09:00:00+02:00" }'Create an unpaid order with one line at 49.00 EUR and 22% tax:
curl -X POST "https://crm.example.com/api/v2/t/acme/orders" \ -H "Authorization: Bearer $AMABLE_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: order-WEB-10045" \ -d '{ "contact_id": "01JAB3K9Q8W7E6R5T4Y3U2I1O0", "status": "unpaid", "currency": "EUR", "items": [ { "name": "Starter kit", "sku": "KIT-01", "quantity": 1, "unit_price_minor": 4900, "tax_rate_bps": 2200 } ] }'Record the payment (a repeated transaction_id is not recorded twice):
curl -X POST "https://crm.example.com/api/v2/t/acme/orders/01JAORD0000000000000000AA/payments" \ -H "Authorization: Bearer $AMABLE_KEY" \ -H "Content-Type: application/json" \ -d '{ "amount_minor": 5978, "method": "card", "transaction_id": "ch_3PqXyZ" }'A successful payment emits payment.recorded, and order.paid once the order is fully paid.
Fire every published API goal named trial_started for a contact (needs automations:trigger):
curl -X POST "https://crm.example.com/api/v2/t/acme/automationGoals/trial_started/trigger" \ -H "Authorization: Bearer $AMABLE_KEY" \ -H "Content-Type: application/json" \ -d '{ "contact_id": "01JAB3K9Q8W7E6R5T4Y3U2I1O0", "event_id": "signup-8841" }'event_id (up to 128 characters) deduplicates repeated calls for the same real-world event.
Send an active signature template, one signer per party (needs esign:write):
curl -X POST "https://crm.example.com/api/v2/t/acme/esignRequests" \ -H "Authorization: Bearer $AMABLE_KEY" \ -H "Content-Type: application/json" \ -d '{ "template_id": "01JATPL0000000000000000AA", "signers": [ { "party_id": "client", "contact_id": "01JAB3K9Q8W7E6R5T4Y3U2I1O0" }, { "party_id": "agency", "email": "anna@agency.example", "name": "Anna Rossi" } ], "expire_days": 14 }'Each signer is a contact_id (signing with its primary email, or with email if it is one of the contact’s addresses) or an email (matched to a contact, or a new contact is created). signers has 1–10 items and must cover every party of the template; message (up to 5,000 characters), expire_days (1–365, null = never) and locale (en, it) override the template settings. The answer is 201 with the request (origin api); invitations are emailed shortly after. A template that is not active answers 409.
Download the sealed PDF once every party has signed (404 until it is sealed; kind=original returns the document as sent):
curl -o signed.pdf "https://crm.example.com/api/v2/t/acme/esignRequests/01JAREQ0000000000000000AA/document?download=true" \ -H "Authorization: Bearer $AMABLE_KEY"Visitors, sessions and revenue per day for October:
curl "https://crm.example.com/api/v2/t/acme/analytics/timeseries?site_id=st_abcdefghijklmnopqrst&from=2026-10-01&to=2026-10-31&interval=day" \ -H "Authorization: Bearer $AMABLE_KEY"Top pages for visitors from Italy:
curl "https://crm.example.com/api/v2/t/acme/analytics/breakdown/page?site_id=st_abcdefghijklmnopqrst&from=2026-10-01&to=2026-10-31&filter_country=IT&limit=20" \ -H "Authorization: Bearer $AMABLE_KEY"API modules
Section titled “API modules”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) |
Endpoints outside the OpenAPI document
Section titled “Endpoints outside the OpenAPI document”| 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. |
Site keys: analytics API of one site
Section titled “Site keys: analytics API of one site”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.
Error codes
Section titled “Error codes”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).
Limits and permissions
Section titled “Limits and permissions”- 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:
limit1 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 /calendarcovers at most 92 days.
Troubleshooting
Section titled “Troubleshooting”| 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. |

