Skip to content

list_tokens

List active API tokens for the current user. Requires Owner role. Plaintext token values are never returned after creation. Returns: tokens (list[{token_id, name, prefix, created_at, last_used_at}]) — one entry per active token; count (int) — number of active tokens.

read-only · idempotent

This tool takes no parameters.

Returns a structured object. Top-level fields:

  • tokens (array<object>)
  • count (integer)

See the response example below for the full payload shape.

{
"name": "list_tokens",
"arguments": {}
}
{
"tokens": [
{
"token_id": "44444444-4444-4444-4444-444444444444",
"name": "ci-runner",
"prefix": "btk_abcd",
"created_at": "2026-04-28T10:00:00+00:00",
"last_used_at": "2026-04-28T10:00:00+00:00"
}
],
"count": 1
}
  • Module: Admin
  • Requires authentication via API token or Auth0 JWT.