For the complete documentation index, see llms.txt. This page is also available as Markdown.

List API tokens of a user

Token values are never returned, only their metadata.

get
Authorizations
defguard_sessionstringRequired
Path parameters
usernamestringRequired

Name of the user.

Responses
200

All API tokens of the user.

application/json
created_atstring · date-timeRequired
idinteger · int64Required
namestringRequired
get/api/v1/user/{username}/api_token
GET /api/v1/user/{username}/api_token HTTP/1.1
Accept: */*
[
  {
    "created_at": "2026-01-01T00:00:00.000Z",
    "id": 1,
    "name": "text"
  }
]

Last updated

Was this helpful?