Skip to content
DocumentationAPI ReferenceChangelog
API ReferenceTalon Studio v1.1.22-beta

Authentication

Every request carries a scoped bearer token. Create one in Settings → API, send it in the Authorization header, and it acts with least privilege.

Bearer tokens

Authenticate with a token in the Authorization header. The scheme must be Bearer (case-insensitive); the API accepts nothing else. Talon tokens are prefixed tlk_ so secret scanners can spot a leak, stored only as a SHA-256 hash, and shown in full exactly once, at creation.

Authorization header
Authorization: Bearer tlk_<your-token-secret>
Personal (user) tokens act as you: their scopes are re-intersected with your live org role (or your custom role, when one is assigned) on every request, so demoting or disabling the owner shrinks the token's power immediately.
Service tokens are org-wide credentials (admin-only to create) that survive staff changes — their granted scopes stand on their own.
A token is org-scoped or bound to a single workspace. Passing a workspaceId that doesn't match a workspace-bound token's own workspace returns 403; 404 is reserved for a workspace that can't be found or reached.
A personal token's workspace reach is floored per scope: read scopes require the owner to hold at least viewer on that workspace, write scopes at least engineer — checked live against the owner's actual membership (direct, through a team, or as an org admin), never a token-supplied claim. Service tokens reach every workspace in the org.
The secret is tlk_ followed by 32 random bytes in base64url — 47 characters, about 256 bits of entropy. The app only ever shows its first 12 characters after creation. Lookups are by hash, with a constant-time compare.
Personal tokens die with their owner
Disabling a user immediately turns every personal token they created into a 401 — the owner's status and role are re-checked on each request, and deleting the user has the same effect. For unattended automation that must survive offboarding, have an admin create a service token, whose granted scopes stand on their own.

Creating a token

Create and revoke tokens under Settings → API, on the Auth tab (/settings/api), with Create token. Admins, engineers and analysts can create tokens and revoke any token in the organisation, not only their own; readonly users can't.

Name
Required, up to 120 characters, unique within the org. A name stays taken after its token is revoked — reusing it fails with 409.
Description
Optional, up to 500 characters.
Type
Personal (acts as you) or Service (org-wide). Only admins can create service tokens.
Scope
Organisation (all workspaces) or One workspace. Non-admins can only bind a token to a workspace they can reach themselves; admins can bind to any workspace in the org. Deleting the workspace deletes its bound tokens.
Scopes
At least one. You can only grant a scope your own role could perform — see Scopes below. The form marks write scopes.
IP allowlist
Optional, up to 50 exact IP addresses, separated by commas or spaces. No CIDR ranges — an address must match exactly. Requires TALON_TRUST_PROXY=true on the server: without a declared trusted reverse proxy the client IP can't be trusted, so the server fails closed and rejects an allowlisted token with 403.
Expires
Optional date. An expired token gets 401. Leave it empty for a token that never expires, and rotate it anyway.

Copy the secret when it's shown — it isn't recoverable. Revocation takes effect on the next request. The token list shows each token's name and type, its prefix, its Scope (Organisation or the workspace), its scopes under Permissions, when it was last used, and its status.

Community Edition limits

The Community Edition — an instance on a Community key — gets the whole API, writes and the MCP server included.

Community Edition
Tokens may hold any scope, and the number of tokens is not limited. Releases up to v1.1.3-beta allow at most 2 active tokens across the org; a third is refused when you try to create it.

audit:read and users:read sound like reads, but they need the administer capability, so they count as write scopes and only an admin can grant them. The same goes for users:provision, the scope an identity provider's SCIM connection uses — see SCIM provisioning.

Without a valid key
If the stored key stops verifying, or there is no key, the instance is unlicensed and every call gets 403 licence_required until an admin pastes a key — see Errors.

Scopes

Each endpoint requires one scope. A role can grant a scope when it has the capability behind it: view (every role), propose and operate (admin, engineer, analyst), administer (admin only).

ScopeEndpointsGranted by
me:readGET /meAny role
workspaces:readGET /workspaces, GET /workspaces/{id}Any role
detections:readGET /detections, GET /detections/{id}, GET /detections/{id}/yamlAny role
coverage:readGET /coverage, /coverage/gaps, /coverage/navigator-layer, /adversaries, /adversaries/compare, /mitre/techniques/{techniqueId}Any role
alerts:readGET /alertsAny role
cases:readGET /cases, GET /cases/{id}Any role
change_requests:readGET /change-requests, GET /change-requests/{id}Any role
standards:readGET /standardsAny role
threat_feeds:readGET /threat-feeds, /threat-intel/kev, /threat-intel/indicatorsAny role
threat_models:readGET /threat-models, GET /threat-models/{id}Any role
scenarios:readGET /scenariosAny role
proposals:readGET /proposalsAny role
library:readGET /library, GET /library/{source}/{id}Any role
deployments:readGET /deployment-targets, GET /deploymentsAny role
integrations:readGET /integrationsAny role
kanban:readGET /kanban/cardsAny role
agents:readGET /agent-runs, GET /agent-runs/{id}Any role
notifications:readGET /notifications (org-scoped token)Any role
license:readGET /license (org-scoped token)Any role
sourcetypes:readGET /sourcetypesAny role
blueprints:readGET /blueprints, GET /blueprints/{id}Any role
validate:readGET /validate/summaryAny role
search:readGET /search/sourcesAny role
detections:proposePOST /detections, PATCH /detections/{id} — personal tokens onlyAdmin, engineer, analyst
alerts:writePATCH /alerts/{id}Admin, engineer, analyst
cases:writePOST /cases, PATCH /cases/{id}, POST /cases/{id}/notesAdmin, engineer, analyst
kanban:writePOST /kanban/cardsAdmin, engineer, analyst
search:executePOST /searchAdmin, engineer, analyst
audit:readGET /audit-logs (org-scoped token)Admin
users:readGET /users (org-scoped token)Admin
users:provisionSCIM 2.0 user provisioning at /api/scim/v2 — outside /api/v1 (org-scoped token)Admin

The org-wide endpoints — /audit-logs, /users, /notifications and /license — refuse a workspace-bound token with 403, because their data isn't partitioned by workspace.

Service tokens can't propose detections
POST /detections and PATCH /detections/{id} stage a change request that needs a human author, so they only work with a personal token — a service token holding detections:propose is still refused with a 403. For unattended proposal pipelines, create a personal token from a dedicated engineer account instead.

Example request

Confirm a token's identity and scopes with a call to /me:

curl
curl -H "Authorization: Bearer tlk_…" \
https://<your-instance>/api/v1/me
200 OK
{
"token": { "id": "…", "kind": "user", "scopes": ["detections:read"] },
"orgId": "…",
"workspaceId": null,
"userId": "…"
}
Tip
Start every integration with GET /me — it tells you the token's kind, its effective scopes, and whether it's org- or workspace-scoped, so you can fail fast with a clear message instead of hitting a 403 deep in a workflow. It needs the me:read scope, so include that in every token.