v1

latestOpenAPI 3.1.02026-07-2675394318.9 KB
auth

Get current token information

Returns information about the current authentication token, including the token UUID, expiration time, and a map of all known permissions with their granted status.

get/whoami

Response

OK

token_uuidstring required

UUID of the authentication token

token_expirationinteger nullable required

Token expiration time as Unix timestamp, or null if not set

permissionsobject required

Map of all known permission names to their granted status. Keys are permission names (e.g., import, spawn, list), values indicate whether the token has the permission.

limitsobject

Map of resource limit names to their values for the current token.

operations_statobject required

Operation statistics (reserved for future use)

Example response

{
  "token_uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "token_expiration": 1735689600,
  "permissions": {
    "import": true,
    "spawn": true,
    "spawn_disposable": false,
    "list": true,
    "cancel": false,
    "set_image_tag": false
  },
  "limits": {
    "instance_max_timeout": 3600,
    "instance_max_concurrency": 10,
    "images_import_max_concurrency": 5,
    "images_import_max_timeout": 3600
  }
}