API tokens
Programmatic access to a workspace with workspace API tokens.
A workspace API token grants programmatic access to one workspace. It is how a script or an MCP client that does not support OAuth authenticates to Tracemill Cloud.
Getting a token
Self-serve token management is not available in Tracemill Cloud yet: Workspace → Tokens is a placeholder. To have a token issued or revoked, contact support@tracemill.io. In a self-hosted deployment, your operator issues tokens.
To connect an AI agent, you do not need a token at all. An OAuth-capable MCP client signs in as you — see Connect a client.
What a token is
- A token starts with
tmk_. It is shown once, when it is issued, and only a hash of it is stored. If you lose it, have it revoked and a new one issued. - A token belongs to one workspace and carries a role — admin, editor, runner, or viewer — that decides what it may do. The runner role exists only for tokens: it can read and start runs, but cannot change Tests, suites, or content. A token is never an owner.
- A token has no expiry. It works until it is revoked, and revocation is permanent.
- Tokens cannot invite members or revoke invitations.
tmk_ workspace tokens are different from the tmv_ target keys the Splunk add-on uses. A target key only lets a SIEM connection report to its target; see Connect Splunk.
Using a token
Send the token as a bearer token:
Authorization: Bearer tmk_your_token_hereThe token already identifies its workspace, so no workspace is named in the request.
What a token may do on your plan
On the Teams and Trial plans, a token is limited to content authoring: managing drafts and uploaded content, extracting events from datasets, validating content, and checking fidelity. It cannot read targets or detections, start runs, or manage suites. An MCP client connected with OAuth acts with your own role instead and is not limited this way. See MCP availability.