Developer

Mint an API key

Name it, choose its scopes, decide whether it may drive assistants or manage webhook subscriptions — and copy it once.

Navigate to: Settings → API keys & webhooks → New key (Super Administrator)

The New API key dialog. Scopes are offered as the public catalogue intersected with what you personally hold.
1
Name it

The name appears only in your own key list. Name it after the system that will hold the key — Warehouse sync, Zapier, Reporting assistant — so revoking the right one later is obvious.

2
Tick the scopes

Each row is a feature the API covers, with the verbs it supports. Ticking create, update or delete ticks read for you as well: a key that can write but cannot read what it wrote is a trap, not a policy.

3
Decide on the two capability options

They are grants, not data scopes — they widen where the key works, never what it may touch.

OptionWhat it adds
Allow AI assistants (MCP)The key answers at `https://api.trabalance.com/mcp`, so an assistant can use the read and proposal tools — within the scopes above. See [AI assistants](/developer/mcp).
Allow webhook subscriptionsThe key may call `/api/v1/webhooks/*` to create and remove its own endpoints. This is what Zapier and Make use. See [Subscribe an endpoint](/developer/subscribing).
4
Choose an expiry

Never, 30 days, 90 days or a year. After that the key answers 401 invalid_token — nothing is deleted, it simply stops.

5
Copy it

The full key — tk_live_ and 64 hex characters — is shown once, with a ready-made curl. Trabalance stores only its SHA-256 fingerprint, so there is no "show it again". Lose it and you mint a new one.

Why a scope might not be offered

The dialog only offers what you can grant. When nothing is offered, the screen says which wall you have hit rather than leaving you guessing.

ReasonWhat it meansWhat fixes it
PlanThe module is not on this business's subscription at all.Add it to the plan and it appears here.
RoleThe business has the module; this user's role does not.A Super Administrator grants it under Settings → Roles.
LapsedThe business had the module and the subscription is no longer live.Renew. Existing keys stop working while a subscription is not live.
⚠️A key can only narrow

Scopes are bounded to your own rights at the moment you mint — and re-checked against your rights on every request afterwards. If you are demoted, every key you minted loses the same rights that day. That is the design, not a fault.