API operation · auth group
GET
/tokens
First published 3 Oct 2026
0.1.0Unchanged since publicationList the caller's sessions and API tokens
Who may call it
AdministratorResellerCustomer
Token scope, any of
readallAnswers200 OK
The response lists the caller's active sessions and manually created API tokens in ascending ID order. Login challenges are excluded. Expired sessions disappear from the list at expiry and are deleted during nightly cleanup. Manually created API tokens remain listed after expiry until revoked.
Example
See the API overview for how to set $API and $TOKEN.Request
curl -sS -X GET "$API/tokens" \ -H "Authorization: Bearer $TOKEN"
Response ·
200 OK{
"server_time": "text",
"timezone": "text",
"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
1 error, each a status and a sentence401Authentication 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-tokens/