List API tokens of a user
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
401
Session is missing or invalid.
application/json
403
Requires admin privileges and an active enterprise license.
application/json
404
User not found.
application/json
500
Unable to list API tokens.
application/json
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?