API quick start
Authenticate, create a lead, and paginate — in about five minutes.
The full reference is at /api-docs. This is enough to make your first successful call.
Get a token
Ask the atomcrm.ai team to issue a token for your workspace. There is no self-serve token screen in Settings.
Ask only for the abilities you need. A token narrows its membership's permissions and can never exceed them, so a token issued for a read-only integration really is read-only.
The token is shown once. It cannot be recovered — ask for a new one if you lose it.
Authenticate
Bearer token in the header. On a shared domain you also send your workspace slug:
curl https://atomcrm.ai/api/v1/leads \
-H "Authorization: Bearer nxs_xxxx_yyyyyyyy" \
-H "X-Tenant-Slug: your-workspace" \
-H "Accept: application/json"Create a lead
curl -X POST https://atomcrm.ai/api/v1/leads \
-H "Authorization: Bearer nxs_xxxx_yyyyyyyy" \
-H "X-Tenant-Slug: your-workspace" \
-H "Content-Type: application/json" \
-d '{
"first_name": "Aarav",
"last_name": "Patel",
"phone": "9812300045",
"email": "aarav@example.com",
"source": "01H8XGJWBWBAQ4S1PT7C2N3M4K"
}'Distribution rules apply to leads created this way, exactly as they do to leads from a form.
Responses
Every successful response uses the same envelope:
{
"data": { "object": "lead", "public_id": "01H8...", "reference_number": "ENQ-2607-0482" }
}Records are always identified by public_id — a ULID. Sequential internal ids are never exposed, so an id you hold cannot be incremented to reach someone else's record.
Errors
RFC 9457 problem documents:
{
"type": "https://docs.nexuscrm.com/api/problems/validation_failed",
"title": "The request was invalid.",
"status": 422,
"code": "validation_failed",
"request_id": "01KYM97KCJK416C465Y2A8AN3N"
}Branch on code, never on title — the human string may change, the code will not. Quote request_id when contacting support and we can find the exact request.
Pagination
Cursor-based (page[number] can only jump within the first 200 pages):
GET /api/v1/leads?page[size]=50{
"data": [],
"links": { "self": "https://atomcrm.ai/api/v1/leads", "next": "https://atomcrm.ai/api/v1/leads?page%5Bsize%5D=50&page%5Bafter%5D=eyJrIjpb...", "previous": null },
"meta": { "has_more": true }
}Follow links.next until it is null. Page 500 costs the same as page 1, and rows arriving mid-iteration cannot cause you to see a duplicate.
Rate limits
There is no per-token limit, and most endpoints, including listing and creating leads, are not throttled. Endpoints that are throttled (lead AI search is capped at 20 a minute) count per user and add headers like these:
X-RateLimit-Limit: 600
X-RateLimit-Remaining: 594A 429 with code: rate_limited carries retry_after (seconds) in the problem document. Back off and retry — do not spin.
Webhooks
There is no webhook you can point at your own endpoint for general events. Two App Store apps post outbound: PMS Ichelon (booked appointments) and ZinQ AI (new and edited leads, in ZinQ's format). For anything else, poll the list.
Something unclear or missing? Tell us and we will fix the page — send us a note.