Appearance
API overview
The public API lets your own software, automation platforms such as Zapier, Make or n8n, and apps built by your agency read and change one sub-account's data: contacts with their tasks and notes, conversations, calendars and appointments (free slots and booking), opportunities, invoices, products and offers, courses and memberships (enrolment and progress), assessment results, workflows (adding contacts), forms, campaigns, social posts and custom objects. It also lets you subscribe to events instead of polling for them.
Every credential belongs to exactly one sub-account. The API works out which sub-account from the credential alone, so you never send an account id, and a header such as X-Tenant-Id is ignored.
Base URL
All routes live under /api/v1/rest on your API origin. In these pages the origin is https://api.example.com. Use the API address your agency gives you.
Your first request can be GET /api/v1/rest/me. It needs no particular scope and tells you which sub-account the credential acts in and which scopes it holds:
bash
curl https://api.example.com/api/v1/rest/me \
-H "X-API-Key: $API_KEY"json
{
"success": true,
"data": {
"subaccountId": "sub_123",
"authMethod": "api_key",
"app": null,
"scopes": ["profile:read", "contacts:read"]
},
"meta": { "requestId": "req_abc", "timestamp": "2026-11-13T10:00:00.000Z" }
}To get a key, see API keys and scopes.
Responses and errors
Every answer uses the same envelope:
- Success:
{ "success": true, "data": ..., "meta": { ... } }.metacarries request details such asrequestIdandtimestamp. - Error:
{ "success": false, "error": { "code": "...", "message": "..." } }, sometimes witherror.details.
| Status | When | Example error.code |
|---|---|---|
| 400 | The body or query is invalid. Request bodies are strict: an unknown field is refused. | VALIDATION_ERROR |
| 401 | The credential is missing, invalid, revoked or expired. | UNAUTHORIZED |
| 403 | The credential lacks the route's scope, or the sub-account's plan has the module off. | FORBIDDEN, PLAN_FEATURE_DISABLED |
| 404 | The record does not exist in this sub-account. | NOT_FOUND |
| 429 | You are over a rate limit. | RATE_LIMITED |
A missing scope also sends WWW-Authenticate: Bearer error="insufficient_scope" with the scope you need.
Lists and paging
List routes return data: { items, nextCursor }. To get the next page, pass the cursor back:
bash
curl "https://api.example.com/api/v1/rest/contacts?limit=50&cursor=NEXT_CURSOR" \
-H "X-API-Key: $API_KEY"limitis 1 to 100.- When
nextCursorisnull, there are no more pages. - Lists that are bounded by a time window (appointments with
fromandto, and invoices) always answernextCursor: null.
Rate limits
Two one-minute windows apply to every request, and the tighter one decides:
- Per credential: 120 requests a minute for an API key. An app gets the limit set for it in the developer portal (120 by default), per installation.
- Per sub-account: 600 requests a minute across every key and app.
Each answer carries these headers:
| Header | Meaning |
|---|---|
X-RateLimit-Limit | The limit of the window that applies. |
X-RateLimit-Remaining | Requests left in that window. |
X-RateLimit-Reset | When the window resets, in Unix seconds. |
Over the limit, you get 429 with a Retry-After header, in seconds. Wait that long, then retry.
Plan limits
Each area of the API belongs to a module of the sub-account's plan: contacts, conversations, calendars, pipelines, payments, sites (forms), campaigns, social and custom objects. When your agency's plan for that sub-account has the module switched off, its routes answer 403 with PLAN_FEATURE_DISABLED and the module name in error.details. The account routes (/me, /profile) and the event routes are not tied to a module.
If the agency's own subscription is suspended, write requests to gated routes answer 403 with AGENCY_SUSPENDED. Reads keep working.
Idempotency keys
Send an Idempotency-Key header (1 to 200 printable characters, no spaces) with any POST, PATCH or DELETE to make it safe to retry. The first request runs and its answer is kept for 24 hours; a retry with the same key and the same request gets that answer again, with Idempotent-Replayed: true, and nothing runs twice: no second booking, enrolment or message.
| Situation | Answer |
|---|---|
| Same key, same request | The first answer again, Idempotent-Replayed: true |
| Same key, different request | 422 with IDEMPOTENCY_KEY_REUSED |
| Same key while the first request is still running | 409 with IDEMPOTENCY_IN_PROGRESS: retry shortly |
The first request failed with a 5xx or a 429 | Nothing is kept: retry with the same key |
Keys are per credential: two API keys of one sub-account never share them. Use something unique to the action, such as your order id.
bash
curl -X POST https://api.example.com/api/v1/rest/courses/COURSE_ID/enrollments \
-H "X-API-Key: $API_KEY" -H "Content-Type: application/json" \
-H "Idempotency-Key: order-1042" \
-d '{"email": "ada@example.com", "firstName": "Ada"}'Stability and versions
The version is part of the path (/api/v1). Responses are built from a fixed list of public fields, so internal changes do not add or remove fields in what you receive. Webhook payloads carry their own version field, currently 1.
Good to know
- Writes through the API follow the same rules as the app. A message you send still respects consent, do-not-disturb and quiet hours, and it is counted like any other text or email. API calls themselves are not billed.
- Until the platform connects real providers, texts and emails run on test providers: they are recorded, not delivered.
- The full list of endpoints is in the API reference. The machine-readable OpenAPI 3.1 document is served without a key at
GET /api/v1/rest/openapi.json.