Skip to navigation

Authentication

Exchange a long-lived credential for a short-lived access token, then send the token on every call.

Each v1 API accepts its long-lived credential at one token endpoint only. Every other endpoint takes the access token as Authorization: Bearer <token>. Keep long-lived credentials on a trusted server and never ship them in a browser or mobile app.

Create an API key

In the app, open Settings, then API Access, and create a key. The secret is shown once, so store it immediately. API Access appears only when API access is enabled for your account.

When you create a key you choose:

  • Role. Admin keys can change data. ReadOnly keys can only read. Each operation in the reference names the role it needs.
  • IP allowlist. Allow all addresses, or restrict the key to specific IPs or CIDR ranges.

Rotating a key replaces its secret, and deactivating it revokes the key. Both stop new token exchanges at once. Tokens that were already issued behave differently in each API:

  • Platform API: every call re-checks the key and its IP allowlist. Deactivating the key or changing its allowlist stops its tokens immediately. Rotating it does not: issued tokens keep working until they expire.
  • Company API: a call checks only the token’s signature and expiry. An issued token keeps working until its expiresAt, 30 minutes by default, even after you deactivate or rotate the key or change its role or IP allowlist.

Platform API

The Platform API takes your platform API key as a bearer credential.

curl "https://$API_HOST/api/v1/platform/token" \
-H "Authorization: Bearer $API_KEY"
{ "token": "e8b9f2a0-0f26-4a3c-9c66-1d7e6f6f1a2b" }

Send Authorization: Bearer <token> on every other Platform call. The token lasts one hour. When a call returns 401, request a new token and retry.

Company API

The Company API takes your company API key as a bearer credential.

curl -X POST "https://$API_HOST/api/v1/access-token" \
-H "Authorization: Bearer $API_KEY"
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"tokenType": "Bearer",
"expiresIn": 1800,
"expiresAt": 1717852800000
}

expiresIn is in seconds and expiresAt is in Unix epoch milliseconds. Send Authorization: Bearer <token> on every other Company call. To refresh, exchange the API key again before expiresAt. A token cannot create another token.

Customer Portal API

See Customer Portal ingestion.