account-tokens
List API tokens
List all tokens for the currently authorized account. The tokens are returned in a paged format, with the default page size being 20. The maximum page size is 100.
get/1.3/account/tokens
Request
- Base URL: https://api.upcloud.com
- URL: https://api.upcloud.com/1.3/account/tokens
- Auth: HTTP bearer
Query parameters
limitinteger
How many tokens to return at per page
offsetinteger
Offset to start listing the tokens from
guiboolean
Example:true
Filter tokens based on GUI flag (true or false). Default is no value, i.e. no filtering and all tokens are returned.
sortstring
Example:+name,-created_at
Comma-separated list of fields to sort by. Prefix with '+' for ascending or '-' for descending order. Supported fields: created_at, expires_at, last_used_at, name. Example: sort=+name,-created_at. If no prefix is given, descending is assumed. Follows OpenAPI collectionFormat 'csv'.
Response
A paged array of tokens
Example response
[
{
"id": "0c848138-2559-4562-9520-b1f22c4ae751",
"name": "token",
"created_at": "2025-03-25T13:46:19.502878Z",
"expires_at": "2025-03-25T14:16:19.502644Z",
"can_create_tokens": true,
"allowed_ip_ranges": [
"1.2.3.4"
],
"gui": false
},
{
"id": "0cc50c9d-6a81-494b-af8c-f7271cfd4d22",
"name": "token",
"created_at": "2025-03-25T14:12:06.534789Z",
"expires_at": "2025-03-25T14:42:06.534342Z",
"last_used_at": "2025-03-25T14:12:33.000692Z",
"can_create_tokens": true,
"allowed_ip_ranges": [
"1.2.3.4"
],
"gui": false
}
]Changes
No recorded changes to this operation across all 1 revision of this API.