Skip to content

List your API tokens

GET
/api/api-tokens

Returns every API token belonging to the authenticated user. The secret token value is never included; only the one-time creation response ever exposes it.

Authorizations

ApiToken

Long-lived API token created via POST /api/api-tokens (returned once in plaintext).

Type
API Key (header: X-API-TOKEN)
or
JWT

JWT access token obtained via POST /api/auth/login. Send as: Authorization: Bearer .

Type
HTTP (bearer)

Parameters

Query Parameters

page

The collection page number

Type
integer
Default
1
itemsPerPage

The number of items per page

Type
integer
Default
30
Minimum
0
Maximum
100

Responses

api-token collection

JSON
{
  
"totalItems": 0,
  
"search": {
  
  
"@type": "string",
  
  
"template": "string",
  
  
"variableRepresentation": "string",
  
  
"mapping": [
  
  
  
{
  
  
  
  
"@type": "string",
  
  
  
  
"variable": "string",
  
  
  
  
"property": "string",
  
  
  
  
"required": true
  
  
  
}
  
  
]
  
},
  
"view": {
  
  
"@id": "string",
  
  
"@type": "string",
  
  
"first": "string",
  
  
"last": "string",
  
  
"previous": "string",
  
  
"next": "string"
  
},
  
"member": [
  
  
{
  
  
  
"@context": "string",
  
  
  
"@id": "string",
  
  
  
"@type": "string",
  
  
  
"id": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
  
  
  
"name": "CI deployment token",
  
  
  
"lastUsedAt": "2026-06-30T14:23:00+00:00",
  
  
  
"expiresAt": "2027-06-30T00:00:00+00:00",
  
  
  
"active": true,
  
  
  
"createdAt": "2026-06-30T09:00:00+00:00",
  
  
  
"organizations": [
  
  
  
  
[
  
  
  
  
  
"/api/organizations/12",
  
  
  
  
  
"/api/organizations/34"
  
  
  
  
]
  
  
  
]
  
  
}
  
]
}

Playground

Authorization
Variables
Key
Value

Samples

Powered by VitePress OpenAPI