Skip to content

Authentication

Bearer tokens, workspace scoping, ability narrowing and rate limits.

3 min read

Every request is authenticated with a bearer token. API tokens for your workspace are issued by the platform team — there is no token screen inside the app.

The header

http
Authorization: Bearer nxs_xxxx_yyyyyyyyyyyyyyyy
X-Tenant-Slug: your-workspace
Accept: application/json

X-Tenant-Slug is optional: without it, the workspace is taken from the token itself. When you send it, it decides which workspace the request runs in, and a workspace the token's owner is not an active member of answers 403.

A token belongs to a membership, not a user

A token identifies one person in one workspace. A token issued for workspace A is refused by workspace B, unless the same person is also an active member of B — then naming B in X-Tenant-Slug runs the request as their membership there, still limited to the token's abilities.

This is deliberate. Binding to a membership gives the token its default workspace, but it is not a wall between workspaces: the person the token belongs to can point it at any other workspace where they are an active member.

Abilities narrow, never widen

At issue time the platform team names the token's abilities. The token hangs on a super-admin membership in your workspace, and its abilities are intersected with what that membership holds.

The intersection is applied on every request. A token scoped to leads.view authorises exactly that, even when the membership behind it belongs to an owner whose own permission check would otherwise short-circuit to true.

An integration token must name at least one ability — an empty list, which would mean "everything this membership can do", is refused at issue. Name only what the integration needs — it is the difference between a leaked key reading one endpoint and a leaked key doing anything.

Storage

The plaintext token is shown once, at issue. Only a SHA-256 hash is stored, so it genuinely cannot be recovered — issue a new one and revoke the old.

A short token_prefix is retained so you can identify a token in a list without the secret being retrievable.

Restricting by source address

A token can carry an allow-list of addresses or IPv4 ranges, which the platform team sets when it issues the token. A request from anywhere else is rejected even when the token is correct. Worth setting for server-to-server integrations, which have a stable address; not worth it for anything running on a laptop.

Rate limits

There is no overall per-token limit. Some endpoints — such as search, AI, message sends, calling and billing actions — carry their own per-minute limit, counted per user, and only their responses report it:

http
X-RateLimit-Limit: 600
X-RateLimit-Remaining: 594

A rate-limited 429 carries retry_after, in seconds, in its JSON body; no Retry-After header is sent. Respect it — retrying immediately cannot succeed.

Revoking

Revoking is done by the platform team from the platform console. It takes effect on the next request.

Revoked tokens are kept for 90 days rather than deleted at once, because last_used_at and last_used_ip are exactly what an incident review needs; a weekly clean-up then removes them.

Stuck on a response you did not expect? Send us the request_id from the error body and we can trace the exact call — contact support.

Authentication — API reference — atomcrm.ai