API keys
Create, verify, rotate, and revoke credentials for software that calls Tale.
11 min read
Create an API key when a script or service needs to call Tale's REST API. A key you create for yourself belongs to you, not to the organization whose settings page created it: it acts as you, follows your current permissions, and works in every organization you are a member of, or, after an SSO sign-in, in that one organization. A REST call names the organization it addresses with the X-Organization-Slug header; a key whose holder belongs to one organization may omit it. Owners, Admins, and Developers manage their keys under Settings > API > REST, and so does a member an Admin granted a competence that is used with a key: Call models over the API, Export notifications, or Act for another member. Tale refuses anyone else a new key with 403 API_KEY_CREATE_FORBIDDEN.
Owners and Admins can also create a key for another member, a team, a project, or the organization itself. Such a key works in that one organization only; Create a key for someone else explains what each one acts as and reaches. A member an Admin made a key for finds it under Settings > API > REST as well.
Create a key
- Select Create API key.
- Enter a Key name that identifies the caller, such as
Billing syncorDocument import. - As an Owner or Admin, choose under Belongs to whom the key is for. You is preselected, and reads You — this organization only after an SSO sign-in; the other choices are described below.
- Choose Expiration: 7, 30, or 90 days, one year, a Custom date, or never. The form starts at 30 days and names, under the field, the day the key will expire. With Custom date, pick that day in the Expiration date calendar, among the available dates. An expiring key must last at least 24 hours and at most 365 days; after a clock change, the earliest available date may be later than tomorrow.
- Create the key and copy its secret into the caller's approved secret store before closing the confirmation.
The complete secret is shown once. The table later shows only a masked fragment, whom the key belongs to, the day it expires, the creation date, and when it was last used. It lists your own keys and the keys an Admin made for you in this organization; Owners and Admins also see every key made here for a member, a team, a project, or the organization, the keys members made for themselves after an SSO sign-in included. Under Belongs to, a team's, a project's, or the organization's key shows the role it acts as, and a key made for a member shows who made it.
Owners and Admins can also pick All keys in this organization above the table. The list then adds the keys members made for themselves after a password sign-in, which work here because they are members. Each is marked Personal key and shows its holder's name and email under Belongs to. Such a key also works in its holder's other organizations, and its last use may have been there, so Last used reads Not available. The row offers no way to revoke it: only its holder can. Disabled and expired keys, the keys of disabled or former members, and a member's own key blocked here are not listed, since they cannot act here; a blocked key stays in that member's Personal API keys, where you lift the block. Your own keys stay listed, each one blocked here marked Blocked in this organization.
Your key after an SSO sign-in
A sign-in through your organization's SSO, through its authenticating proxy, or with a passkey you added during such a sign-in covers that one organization. A key you create for yourself in such a session therefore works in that organization only: Belongs to reads You — this organization only, the key acts as you with your current role there, and it needs no X-Organization-Slug. It keeps working while you remain an active member and ends when you leave, and it shares your rate-limit allowance like every key of yours. You revoke it under Settings > API > REST, where the organization's Owners and Admins see it too and can revoke it, except that an Admin can't revoke an Owner's key; its creation and revocation are logged in that organization alone. Such a session never creates a key that works in every organization you belong to, and can't revoke one you created earlier: for that, sign in with your password, if your account has one.
Create a key for someone else
Owners and Admins choose under Belongs to whom a new key is for:
- Another member: the key acts as that member, with their current role and teams, in this organization only, and its usage counts toward their limits. You can choose a member whose role is below yours; whenever the Member picker leaves someone out, it says why. The key works only while you are still an Owner or Admin above that member: it stops if you leave, lose that role, or the member reaches your role. The member gets a notification, sees the key in their list, and can revoke it. Hand the secret to them through a secure channel.
- A team, A project, or The organization: the key belongs to that team, project, or organization rather than to a person, and keeps working after you leave. It acts with the role you choose under Acts as: Member, Editor, or Developer, and Admin for the organization's key only. The role can't be above your own.
| A key of | Reaches |
|---|---|
| A team | What a member of that team with the chosen role reaches: the team's projects, documents, and inbox, and everything the organization shares with all its members |
| A project | That project only: the routes under /api/v1/projects/{projectId}, GET /api/v1/projects, which lists only that project, GET /api/v1/me, and the model endpoints. Every other route answers 403 API_KEY_SCOPE_FORBIDDEN. Through the chat assistant it reads its project's files and tasks, but none of the organization's contacts, products, websites, or inbox |
| The organization | What a member with the chosen role reaches across the organization |
These keys need no X-Organization-Slug; a header naming another organization answers 403 ORG_FORBIDDEN. A key ends when what it belongs to does: when its member leaves the organization or its team or project is deleted, the key is revoked and the audit log records why; when the organization is deleted, its keys are deleted with it.
Verify the caller
Follow the authenticated request in the API quickstart. Confirm the returned identity and organization before starting a write or import. After an authenticated request, check Last used in the key table.
A successful authentication does not guarantee permission for every resource. Project access and the key owner's current role still apply. If a request fails, use the API's error response to distinguish an expired or revoked key from missing resource permissions.
Rotate without an outage
- Create a replacement key before the old one expires; the Expires column shows when that is.
- Update the caller's secret store and restart or reload it as its configuration requires.
- Run an authenticated request with the replacement and check that it works.
- Revoke the old key only after every dependent caller has moved.
Tale does not automatically rotate keys. Key creation and revocation happen in this UI, not through /api/v1. A caller can inspect its key's name and expiry through GET /api/v1/me and alert the responsible person before expiration.
Revoke a key
Open its row menu, select Revoke key, and confirm. Future requests with the key can no longer authenticate, calls to the model endpoints included; an answer that is already streaming finishes. Revocation cannot be undone; create a new key if you revoke the wrong one. Creating and revoking a key each leave a row in the audit log under Settings > Governance > Logs, in every organization you belong to.
An Owner or Admin can revoke any key made here for a member, a team, a project, or the organization, and a member can revoke the keys made for them. A member's own keys, which All keys in this organization lists, are theirs to revoke, except one made after an SSO sign-in, which belongs to this organization like a key made for them; to stop one of the others in this organization alone, block it, and to cut them all off here, disable or remove the member. Such a key is managed in its organization only: its creation and revocation are logged there, naming who made or revoked it.
Do not use an old Last used date as the only reason to revoke a key. A monthly job or a recovery process may legitimately be idle. Check the caller identified by the name first.
Block a member's own key
A member's own key works in every organization they belong to. An Owner or Admin can stop one in this organization alone: under Settings > Members, open the member's row menu and select Personal API keys. The dialog lists the member's own keys that are still valid, each marked Works here or Blocked here. Select Block and confirm with Block key. The key's next request to this organization is refused with 403 API_KEY_BLOCKED, whose answer lists the organizations it still works in; the block does not reach the member's other organizations, and the member keeps it. Lift block ends the block.
An Admin sees an Owner's keys but can neither block them nor lift their block; an Owner can do both on anyone's key. Nobody blocks their own key: revoke it instead. A key made here for a member, a team, a project, or the organization, or one a member made after an SSO sign-in, is revoked, not blocked. Each block and each lift leaves a row in the audit log naming who did it and the key by its masked ends. The member is told in their notifications, and their own list under Settings > API > REST marks the key Blocked in this organization.
A block holds for the key it names: it does not cover a new key the member creates for themselves, which has to be blocked too.
Understand permissions and limits
Role changes take effect for existing keys on subsequent requests. Disabling the owner's membership removes their access; a key does not preserve the role it had when created. Losing the role or competence that let you create keys leaves the ones you hold in place: Settings > API > REST keeps listing them for you to revoke, but offers no new one. If Tale cannot check your access, Settings > API says so and offers Try again instead of turning you away; the pages it could confirm stay open.
Give an integration the narrowest access that works. A notification mirror, for example, does not need an Admin account: an Admin can grant an ordinary member the tale:notifications.export capability, which permits that export and none of the other rights of the Admin role. The grant applies only in that organization, can expire, and ends when the member is removed. Grant it under Competences, where an integration that relays people's answers and review decisions gets tale:rest.act-as the same way; Delegate the export without an Admin role covers the API side.
REST rate limits apply to the authenticated key holder. Several keys owned by the same person do not provide separate rate-limit allowances, while a key an Owner or Admin made for a member, a team, a project, or the organization has an allowance of its own. See Rate limits. A budget rule can additionally cap what requests authenticated with one key may spend: their usage counts toward the key, and a send or a model call over the cap is refused with 429 BUDGET_EXCEEDED. Automation runs started with the key count toward it as well, alongside the personal limits of the member the key acts for. A key made for a member counts toward that member's limits, like their own key. A team's, a project's, or the organization's key spends under its own name: no personal, role, or default limit applies to it, but the organization's limits and any rule for the key do, a team's key also counts toward, and is held to, its team's limit, and a project's key its project's. Usage analytics lists such a key as a row of its own, never as an active user. How usage is counted has the full rule.
A key can also call the organization's models from tools such as opencode or Claude Code, through the model endpoints, once an Admin turns them on under Models. Its holder must be an Owner, Admin, or Developer, or hold Call models over the API, and a team's, a project's, or the organization's key must act as a Developer or an Admin. While you create a key, the dialog says in one line when it will not be able to call them. Those calls count toward the key's budget rules like its chat messages, and they appear as Direct API in usage analytics under the person and the key.
A coding agent that supports it can sign in to the MCP endpoint itself and needs no key; Connected agents covers how a person connects one and ends it. API keys authenticate software calling Tale. Connector credentials serve the other direction: they let Tale call an external service. Use Tale from your editor or a script shows where a key goes in opencode, Claude Code, and a shell script.