Skip to content

List API tokens visible to the caller

GET
/v1/tokens
curl --request GET \
--url 'https://example.com/v1/tokens?limit=100&include_revoked=false' \
--header 'Authorization: Bearer <token>'

Lists the API tokens visible to the caller: every active token for a superadmin, the tokens bound to their tenant for a tenant admin. Revoked tokens are excluded unless include_revoked is set.

limit
integer
default: 100 >= 1 <= 1000

Maximum number of items to return.

cursor
string

Pagination cursor from a previous response.

include_revoked
boolean

Include revoked tokens when true. Revoked tokens are excluded by default.

OK

Media type application/json
object
cursor
string
has_more
required
boolean
items
required
Array<object>
object
bound_tenant_id
string
created_at
required
string format: date-time
expires_at
string format: date-time
id
required
string format: uuid
is_superadmin
boolean
last_used_at
string format: date-time
name
required
string
revoked
required
boolean
role
string
user_id
string format: uuid
Example generated
{
"cursor": "example",
"has_more": true,
"items": [
{
"bound_tenant_id": "example",
"created_at": "2026-04-15T12:00:00Z",
"expires_at": "2026-04-15T12:00:00Z",
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"is_superadmin": true,
"last_used_at": "2026-04-15T12:00:00Z",
"name": "example",
"revoked": true,
"role": "example",
"user_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}
]
}

Bad request

Media type application/json
object
error
required
object
code
required
string
message
required
string
module

With code module_not_enabled: the namespace of the module this node does not run.

string
Example generated
{
"error": {
"code": "example",
"message": "example",
"module": "example"
}
}

Unauthenticated

Media type application/json
object
error
required
object
code
required
string
message
required
string
module

With code module_not_enabled: the namespace of the module this node does not run.

string
Example generated
{
"error": {
"code": "example",
"message": "example",
"module": "example"
}
}

Forbidden

Media type application/json
object
error
required
object
code
required
string
message
required
string
module

With code module_not_enabled: the namespace of the module this node does not run.

string
Example generated
{
"error": {
"code": "example",
"message": "example",
"module": "example"
}
}

Not found

Media type application/json
object
error
required
object
code
required
string
message
required
string
module

With code module_not_enabled: the namespace of the module this node does not run.

string
Example generated
{
"error": {
"code": "example",
"message": "example",
"module": "example"
}
}

Conflict / setup required

Media type application/json
object
error
required
object
code
required
string
message
required
string
module

With code module_not_enabled: the namespace of the module this node does not run.

string
Example generated
{
"error": {
"code": "example",
"message": "example",
"module": "example"
}
}

Rate limited

Media type application/json
object
error
required
object
code
required
string
message
required
string
module

With code module_not_enabled: the namespace of the module this node does not run.

string
Example generated
{
"error": {
"code": "example",
"message": "example",
"module": "example"
}
}