API operation · users group
GET
/users/{name}/tokens
First published 3 Oct 2026
0.1.0Unchanged since publicationList a user's sessions and API tokens
Who may call it
AdministratorResellerCustomer
Token scope, any of
usersreadallAnswers200 OK
Administrators can list tokens for any account. Resellers can list tokens for their own account and their customers' accounts. The tokens array contains unexpired sessions and manually created API tokens in ascending id order. Expired API tokens remain in the list. Login challenges are excluded.
Parameters
namepath ·UsernameRequiredExample
See the API overview for how to set $API and $TOKEN.Request
curl -sS -X GET "$API/users/alice/tokens" \ -H "Authorization: Bearer $TOKEN"
Response ·
200 OK{
"tokens": [
{
"address": "info@example.com",
"created_at": "2026-09-09T10:15:00Z",
"expires_at": "2026-09-16T10:15:00Z",
"id": 1,
"kind": "session",
"label": "my laptop",
"opened_by": "text",
"plugin": "text",
"scopes": [
"read"
],
"user": "alice",
"user_agent": "text"
}
]
}Errors
3 errors, each a status and a sentence400Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter400Username '<value>' is reserved401Authentication requiredNo error of this operation matches.
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.1.0 on 3 Oct 2026.
urbestack.com/docs/api/get-users-name-tokens/