Read what a key can reach
Find in the API reference the scope each endpoint needs, watch a Read-only key read and be refused a write, then revoke the key and find both events in the audit log.
Goal
You can say, for any endpoint, which scope a key needs to call it, and you have seen a key refused, revoked and recorded in the audit log.
Before you start
Read the API reference. On Settings → API, open the API tab. At the top: BASE URL, your Studio's address followed by
/api/v1, and OpenAPI spec ↗, the same reference as a file a tool can read. MCP is the address for AI clients, Streamable HTTP, same token. Tools follow the token's scopes. AUTH shows the one header every call carries,Authorization: Bearer tlk_…: Sent as a Bearer header over HTTPS. Session cookies are never accepted. Below, the endpoints in groups, Identity, Workspaces, Detections, Coverage, Adversaries and on, each with its method, its path, what it does, and on the right the scope it needs.

Find a read and a write. Under Detections,
GET /detectionsneedsdetections:read, which the key has.POST /detections, Propose a detection (stages a draft change request), needsdetections:propose, which it does not: that scope comes only with the roles that may draft detection changes. Even a key that has it only proposes. The change waits in a change request like anyone else's.Make a call the key may make. In your terminal:
curl -s https://studio.example.com/api/v1/workspaces -H "Authorization: Bearer $TALON_KEY"The answer lists Corporate SOC, with its SIEM,
"siemTarget":"splunk", and its detection count. The key is locked to that one workspace, so that is all it sees.
Make one it may not. Ask it to propose a detection:
curl -s -X POST https://studio.example.com/api/v1/detections -H "Authorization: Bearer $TALON_KEY" -H 'Content-Type: application/json' -d '{"title":"Test","query":"index=main"}'Studio answers 403,
{"message":"Token lacks the \"detections:propose\" scope"}. TryGET /api/v1/usersand it is the same, namingusers:read, a scope only the Admin role grants. Leave the header off and the answer is 401,Missing bearer token. A 401 means Studio does not know who is calling; a 403 means it does, and the key may not do this.
Revoke the key. On the Auth tab, press Revoke at the end of the Coverage report row. Studio asks nothing more: a toast reads Token revoked., and the row's Status turns Revoked. The row stays, with the date it was last used, so the table still says what the key was. Its name stays taken too: a new key needs a name of its own.

Call again. Run the
/mecall from the last lesson. Studio answers 401,{"message":"Invalid or revoked token"}. Revoking takes effect on the next call; there is nothing to wait for.
Find both events in the audit log. Open Settings → Audit: Account, security, and platform activity across every user in this organisation. Admin only. At the top, Revoked an API token,
api_token.revoked, and under it Created API token "Coverage report",api_token.created, each with who did it, success, when and from which address. Studio files both under the category Other. The Operating Studio course reads this page in full.

You should now see
Coverage report marked Revoked on Settings → API → Auth, and the creation and the revoking at the top of Settings → Audit. When a script's key may have leaked, this is the drill: revoke it at once, make a new one with a new name, and give the script the new secret.
Quick check
Go deeper
- API Tokens, for the endpoints, the scopes and the errors.
- Audit, for every event Studio records.