Skip to main content

API Keys

Client API keys let your applications call Autessa's product APIs (SecurePass, the AI Application Firewall, Evaluations, and Synthetic data) and execute the resources you've built — run tools, chat with agents, and read or write AutessaDB tables through the Client API. Every key belongs to the person who created it and can never reach more than that person can. Each key also carries its own resource scope, rate limits, and optional origin allow-list, so a production integration touches exactly what you intended and nothing else.

Company-scoped and resource-scoped APIs​

A client key calls two kinds of API:

KindAPIsWhat the key needs
Company-scopedSecurePass, AI Application Firewall, Evaluations, Synthetic dataAny enabled key from your company. No resourceId.
Resource-scopedTools, agents, AutessaDB tables, DriveThe resource must be in the key's resource access. Calls send its ID as ?resourceId=.

The resource access you set below (tools, agents, tables) applies only to resource-scoped APIs. It doesn't turn product APIs on or off: every enabled key from your company can call them, and their usage is billed to your company. To stop a key from calling them, disable or delete the key.

Just want a key to try the product APIs? Get a free API key creates one in one click, with $100 of free credits for your first month. See Start here.

What it's for​

A client key is the credential you hand to your own backend (or a partner's) so it can use what you've published — as opposed to a poweruser key, which manages your workspace. Because scope, limits, and origins are set per key, the right pattern is one key per integration: a narrowly scoped key for the website chatbot, another for the data pipeline, each revocable on its own.

Click Developer on the rail, then API keys (the section appears when your role has API access). The page lists the keys you own and the keys shared with you, in a table — name, owner, truncated key ID, Enabled/Disabled status, an All resources/Scoped badge, how the key acts, this month's request count, and success rate. Every column is sortable. Expanding a row shows detailed usage stats with View History, Reset Token, and Edit actions; the kebab menu on each row also offers Edit, Share, Reset token, View details, and Delete. Actions you aren't allowed to take on a key are turned off, with the reason shown.

Company Admins can also switch the list to every key in the company.

Key concepts​

  • The key is shown once. After Create API Key, the full key value appears a single time with a Copy button — it cannot be retrieved later. Requests pass the raw key in the Authorization header (no Bearer prefix); WebSocket endpoints take it as an ?authorization= query parameter instead. See Authentication.
  • Keys are private to their owner. The person who creates a key owns it. Nobody else sees it in their list unless the owner shares it (see Sharing a key). Company Admins can see every key's details and can disable or delete any key.
  • Resource access — a key either has access to all resources you can reach or a hand-picked scope across three resource types: Tools, Agents, and AutessaDB Tables. Within each type you can grant everything (e.g. "All Tools") or tick individual resources. The pickers list only resources you have access to.
  • Per-table permissions — every AutessaDB table in a key's scope carries its own READ, WRITE, and DELETE checkboxes (or one set of operations applied to all tables), so a key can read a catalog table while being unable to modify it. You can only give a key an operation you hold yourself: WRITE or DELETE on a table requires WRITE access to that table.
  • How the key acts — choose Acts as you or Its own role. See Acts as you or its own role.
  • Word of the day — a separate permission that lets the key read your company's word of the day through the AI Application Firewall API. Only turn it on for a key that shows the word to your own staff.
  • Rate limits — each key sets Requests per Minute (default 60) and Requests per Day (default 5000). Requests beyond the limit are rejected until the window resets.
  • Allowed origins — an optional allow-list of web origins (e.g. https://app.example.com, http://localhost:3000). Leave it empty to accept requests from anywhere; add entries to restrict. Origins are exact scheme + host + port — wildcards aren't supported. A key with allowed origins must use Its own role.
  • Usage stats, not just logs — the expanded row shows total, successful, and failed requests with per-endpoint, per-agent, and per-tool breakdowns; View History opens the full transaction log.

Origin restrictions are a hardening layer, not a substitute for secrecy — the key itself still belongs on a server, never in client-side code.

Acts as you or its own role​

Every key picks one of two ways to act:

OptionWhat requests can see and do
Acts as you (default)Requests run as you, narrowed to the key's scope. AutessaDB row and column rules apply exactly as they do to you, so the key sees the rows and columns you see in the tables you gave it.
Its own roleRequests run as the key itself. On each table, the key sees only what the AutessaDB roles you assign to it allow. A table with no role for the key returns nothing.

Use Its own role when an integration should see less than you do, for example only the rows of one region, or when the key is used from a website. You can give a key a role only on tables you administer. An All rows role is offered only for tables where you can see every row yourself.

Either way, a key can never reach more than its owner can:

  • When you create or edit a key, every table, tool, agent, and role you pick is checked against your own access. Anything beyond it is refused with a message naming the resource.
  • Every request is checked again against your access at that moment. With Its own role, the key sees only rows and columns that both its role and you can see.
  • If you lose access to a table, tool, or agent, the key stops reaching it right away. If you leave the company, the key stops working.

Sharing a key​

Open Share on a key to give teammates access to it. The levels mean:

LevelWhat it lets a teammate do
ViewerSee the key's settings and usage. Never the secret.
EditorNarrow the key: lower its limits, remove resources or operations, change its description, or disable it. Editors can't widen a key.
AdminRotate the key, share it, widen it, and delete it — but only if they can reach everything the key can.

Sharing a key never shares its secret. A teammate who needs a working secret must be an Admin of the key and rotate it, which invalidates the old one.

Who can rotate a key​

Rotating (Reset token) hands out a new secret, so it's allowed only for:

  • the key's owner, or
  • an Admin of the key who can reach everything the key can — every table at the operations the key holds, with all rows visible, and every tool and agent the key can run.

Anyone else sees Reset token turned off with "You can't rotate this key because it can reach data you can't." Company Admins follow the same rule; they can always disable or delete a key instead.

Keys used on websites​

A key with allowed origins, or one that a website uses to sign visitors in, must use Its own role. Saving such a key as Acts as you is refused with "Keys used on websites (allowed origins) must use their own role, not act as you." Give it a role that shows only the rows and columns visitors should see.

Keys without an owner​

Keys created before keys had owners are marked Legacy — no owner. They keep reading and writing rows as before, and only company Admins can see them. Because no person answers for them, they can't read protected (masked) fields: those come back as ••• masked, and the key can't filter or sort on them. An Admin can:

  • Claim the key, which makes the Admin its owner and turns it into an Acts as you key that follows every rule on this page. Claiming is allowed only if the Admin can reach everything the key can.
  • Disable or Delete it.

Claim or replace every legacy key you still use, so it follows the same limits as your other keys and its protected-field reads are attributed to its owner.

Every access is attributed​

The data access log names who each read or change was for: the person, plus the key (and its owner), tool, agent and app it went through, with a one-line summary such as via hr_data in Homebase, for Ana Diaz, using key HR data (owner Sam Lee). Keys with no owner show as Legacy API key (no owner).

How to create an API key​

  1. On the API Keys page, click Create API Key.
  2. Name the key after the integration it serves and add a description. Leave Enable this API key checked.
  3. Set the per-minute and per-day rate limits, and add allowed origins if the calling app runs in a browser context you control.
  4. Under Acts as, choose Acts as you or Its own role. For Its own role, pick the AutessaDB role the key gets on each table.
  5. Under resource access, uncheck Grant access to all resources you can reach and select the specific tools, agents, and tables the integration needs — including READ/WRITE/DELETE per table.
  6. Click Create API Key, then copy the key value from the success screen. It will not be shown again.

How to rotate a key​

  1. Open the key's row menu and choose Reset token (or Reset Token in the expanded detail panel).
  2. Confirm the warning — the old token is invalidated immediately, so anything still using it will stop working.
  3. Copy the new key value from the success screen and update every application that used the old one. The key keeps its ID, scope, limits, and stats; only the secret changes.

To pause a key without rotating, uncheck Enable this API key in Edit; to remove it permanently, choose Delete (irreversible).

The in-app API docs​

The builder ships a quick-start reference at /keys/docs covering exactly what client keys can call: POST and WebSocket variants of tool execution and agent execution, with request formats, streaming message shapes, audio notes, and copyable cURL and JavaScript samples. For the complete endpoint reference, use the Client API docs.