API keys

What a workspace API key can do, how to issue one, and when to use MCP or A2A instead.


An API key lets your own server call the AutoTally REST API for one workspace. Issue keys on the API keys page of your workspace.

Who can issue a key

Action Who Also needed
See the page Owner, admin, member
Issue or rotate a key Owner, admin A paid seat on the bridge
Issue a write key with Require approval off Owner, admin, with the right to auto-approve writes A paid seat on the bridge
Revoke a key Owner, admin

Without a paid seat, issuing fails with "API keys need a paid seat for this site. Check capacity in Settings → Billing." See Plans and billing. You need at least one connected bridge first.

What a key carries

Setting Meaning
Name Your label for it.
Bridge The Tally connection the key's writes go to.
Allow writes Off: a read-only key, which gets 403 on writes, document uploads and changes, and anything that spends credits. On: it can dry run and commit writes, and change documents.
Require approval Write keys only, on by default. Committed writes wait on Agent activity for a person.

Reads cover every company in the workspace. Writes go to the key's bridge. If your workspace has two bridges, a company on the second one needs a key issued on the second one for writes.

A key starts with tapi_, is shown once, and is stored only as a hash, so nobody can retrieve it later.

Using a key

Send it as a bearer token to https://relay.autotally.ai:

curl -s https://relay.autotally.ai/v1/companies \
  -H "authorization: Bearer $AUTOTALLY_TOKEN"

Reads take a company name (?company=). Writes take a companyGuid from /v1/companies, an Idempotency-Key header, and ?commit=true to actually queue the write. See the API overview for every convention.

Keep keys on your server. The API does not allow browser calls from other sites, and a key in a web page or mobile app is a key anyone can copy.

What a key cannot do

  • Approve or reject a write. Only a person in the workspace can do that. A key can retract a queued draft that nobody has approved yet. See Write safety.
  • Manage collections, party contacts, company removal, or generate documents. Those belong to people signed in to the workspace.
  • Teach rules or edit playbooks. A key can read them. See Rules and playbooks.

For document uploads and changes, use a key with Allow writes on.

Rotate and revoke

Lost a key, or someone left? Choose Rotate. The new key keeps the name, bridge, scopes and approval setting, and the old key stops working on the next request. There is no overlap, so update your server straight after.

Revoke also takes effect on the next request.

The Last used column on the API keys page shows when a key last authenticated.

Plans

A key needs a paid seat to issue. Committing a write also needs a paid seat, otherwise you get 402 plan_required. See Errors.

Building for many customers

There is no OAuth for the REST API and no partner key. Each customer issues a key in their own workspace and pastes it into your product, and you store it encrypted per customer. See Integrate a CRM or SaaS.

MCP

To connect an MCP client (Claude, ChatGPT, Cursor, VS Code), use an MCP connection, not an API key. See MCP.

Keys and A2A connected agents

API keys are for code you write. If the other side is an AI agent that speaks A2A, use Connected agents instead: those keys can be limited to specific companies and skills. See Connecting your agent.