Skip to content

Authentication

Every API request authenticates with an organization API key. A key belongs to one organization and reaches only that organization's Stores, Runs, Schedules, Imports, PDPs, Explore data and webhooks. A request without a valid key returns 401 Unauthorized.

MCP clients other than Claude and ChatGPT use the same keys; Claude and ChatGPT connect by signing you in instead. See Connect through MCP.

Read-only and read-write keys

Each key has one of two accesses, chosen when it is created:

AccessWhat it can do
Read-onlyRead and export: every list, read, count, Analysis and export. The one to give an agent that only reads.
Read-writeEverything a read-only key can, and add, change and untrack Stores, start, stop and restart Runs, create, change and delete Schedules, create Imports, and set up webhooks.

A read-only key that calls anything else gets 403 with the message This API key is read-only. No key manages billing or other API keys.

Create an API key

Organization admins create and revoke the organization's keys:

  1. In the dashboard, switch to the organization the key is for.
  2. Open Settings > API keys and choose New.
  3. Enter a Name, choose Read-only or Read-write, and optionally when it Expires: in 30 days, 90 days or a year.
  4. Choose Create key, then copy the key: it is shown only once. Extralt keeps only a hash of it.
The API keys page in Settings

The list shows each key's name, the start and end of the key, its access, who created it and when, when it was last used and when it expires.

Each key is tied to the organization it was created in. If you work with several organizations, create a key in each.

Send the key

Pass the key in the Authorization header as a Bearer token:

Authorization: Bearer your-api-key
curl "https://api.extralt.com/v1/stores" \
  -H "Authorization: Bearer your-api-key"

The SDKs send the header for you.

Base URL

Every route is under https://api.extralt.com/v1. The API reference lists every operation, each with its own page, and the rules they share.

Expiry and revocation

A key works until its expiration date, if you set one, or until you revoke it with Revoke in its row's menu. An expired or revoked key returns 401.

A revoked key is refused at once by every operation that creates, changes or starts something. The API reuses a key's verification for up to 60 seconds for reads, so reads and exports with a revoked key, or after the organization's subscription ends, can keep working for up to a minute.

Keep keys secret

  • Store keys in environment variables or a secrets manager. Keys start with extralt_, which helps secret scanners find a leaked one.
  • Create one key per integration, so you can revoke one without affecting the others, and give each the least access it needs: read-only for anything that only reads.
  • Rotate keys periodically: create the new key, deploy it, then revoke the old one.
  • Revoke a key you suspect has leaked right away.

Authentication errors

A missing, invalid, expired or revoked key returns 401 with the WWW-Authenticate header and the standard error envelope:

{
  "error": {
    "code": "unauthorized",
    "message": "A valid Bearer credential is required",
    "request_id": "019..."
  }
}

A read-only key that tries to write returns 403. During the grace period after a subscription ends, a key that tries new work returns 402; once the organization is suspended, every request returns 403. See Error codes for every status.

Next steps