Skip to content

API: API keys

List the caller's API keys

Newest first, revoked keys included. Secrets are never listed.

GET/api/v1/tokens

Authentication#

Send your API key as Authorization: Bearer <key>. The X-API-Key header works too, and Authorization wins when both are present. Any valid key works: no ability is needed.

Responses#

200 OK#

Content type application/json. Schema: TokenList.

NameTypeRequiredDescription
dataarray of Token-The caller's keys, newest first, revoked ones included

401 Unauthorized#

Content type application/problem+json. Error (RFC 9457 problem details). Schema: Problem.

The error follows RFC 9457. See Errors.

Any other status#

Content type application/problem+json. Error (RFC 9457 problem details). Schema: Problem.

The error follows RFC 9457. See Errors.

curl -X GET "http://localhost:3000/api/v1/tokens" \
  -H "Authorization: Bearer $VUKEM_TOOLS_API_KEY"

Response examples

{
  "data": [
    {
      "abilities": [
        "image:convert",
        "pdf:compress"
      ],
      "expires_at": "2026-02-04T10:00:00Z",
      "id": "k_7f3c1b9e",
      "last_used_at": "2026-01-06T14:22:03Z",
      "name": "cli",
      "revoked_at": null,
      "user_id": ""
    }
  ]
}

The examples are built from the schemas, so every value is a placeholder of its type. The tables above hold the fields that carry the real values.