Skip to content

API keys

API keys let your own systems and integrations call the amabledata REST API on behalf of a workspace, with a Bearer header.

  • Where: sidebar group Settings › API keys, URL path /t/<workspace>/settings/api-keys.
  • Who: members with api_keys:manage (owners and admins).

The page has an API reference button and a New API key button in the toolbar, a short explanation, and the Keys table.

  • Format. A key looks like amb_live_ followed by 43 random characters. Only a hash of the key and its first characters (the prefix, e.g. amb_live_a1b2c3…) are stored.
  • Shown once. The full key is shown only right after creation. If you lose it, revoke it and create a new one.
  • Scopes. A key has a list of scopes chosen among the workspace permissions. You can only grant permissions your own role has.
  • Bound to its creator. At every request, the key works with the scopes it was given and only as far as the current role of the member who created it allows. If that member is demoted, the key loses the permissions the new role lacks; if the member is removed from the workspace or their account is disabled, the key stops working.
  • No expiry. Keys do not expire; they work until revoked.
  • Last used. The Last used column is updated when the key is used (at most once a minute).
  • Revocation is immediate and permanent. Revoked keys stay in the list with a Revoked pill.
  • Audit. Creating and revoking write tenant.api_key_created (with the number of scopes) and tenant.api_key_revoked to the audit log. Calls made with a key are logged with the actor type api_key.
  1. Click New API key.

  2. Type a Name (required, up to 80 characters), for example “Website sync”.

  3. Choose the Scopes preset:

    • Read only: every read permission your role has (permissions ending in :read or _read);
    • Everything my role allows: all your permissions;
    • Custom: tick individual permissions, grouped by area (contacts, orders, …).

    The list of selected scopes is shown under the presets (“You can only grant permissions you have yourself.”).

  4. Click Create key and confirm with your second factor.

  5. Copy the key from the Key “…” created box (“Copy it now: it will not be shown again.”) with Copy. A ready-made curl example is shown below it.

  6. Click Done to hide the key.

Test the key with the example shown on the page:

Terminal window
curl -H "Authorization: Bearer amb_live_..." \
https://app.example.com/api/v2/t/<workspace>/contacts?limit=5
  1. In the Keys table, click Revoke on the key.
  2. Confirm “Revoke “…”? Integrations using it stop working immediately.”
  3. Confirm with your second factor. A toast says “API key revoked” and the row shows Revoked.

There is no rotate button: create a new key with the same scopes, update your integration, then revoke the old key.

Field Required Limits Default
Name Yes 1–80 characters —
Scopes Yes At least 1; only permissions of your role Read only
Column Content
Name The name you gave.
Key Visible prefix followed by ….
Scopes “N permissions”; hover to see the list.
Created Date and time.
Last used Date and time, or Never.
(actions) Revoke, or the Revoked pill.
Action Permission Second factor
See and manage the page api_keys:manage (Owner, Admin) —
Create a key api_keys:manage Yes
Revoke a key api_keys:manage Yes
  • Keys can only be created and revoked from a signed-in browser session, never with another key.
  • Each key is rate limited to 600 requests per minute. Above it, requests answer 429 rate_limited with a Retry-After header (seconds); the key itself keeps working.
  • Keys cannot manage members or other API keys: those actions need a session with a second factor.
  • The same keys connect AI assistants through the MCP server: the assistant sees only the tools the key’s scopes allow. Create one key per assistant, with the fewest scopes it needs.
Symptom Cause Fix
Create key is disabled Name is empty or no scope is selected. Fill both.
scope_exceeds_role A requested scope is not granted by your role (API only; the dialog never offers them). Remove the scope or ask an owner.
“Confirmation with the second factor is required” / nothing happens You closed the Confirm it is you dialog. Retry and enter the code.
401 invalid_api_key from the API The key was revoked, is mistyped, or its creator left the workspace or was disabled. Create a new key.
403 on an endpoint The key lacks the scope, or its creator’s role no longer grants it. Create a key with the right scope, or restore the creator’s role.
429 rate_limited More than 600 requests in a minute with this key. Wait the number of seconds given in the Retry-After header, then retry more slowly.
Lost the key The full key is shown only once. Revoke it and create a new one.