Skip to Content
Uptimeify Docs
Api tokens

List Organization Tokens

Returns all API tokens for the organization. Tokens are masked: only the first 8 characters are shown. Requires admin role.

GET /api/organization/tokens

Query Parameters

ParameterTypeDefaultDescription
envelopestringnoneitems: answer as { items, total, page, perPage }. Becomes the default on 2027-01-18.

Example (cURL)

curl -X GET "$BASE_URL/api/organization/tokens?envelope=items" \
  -H "Cookie: $SESSION_COOKIE" \
  -H "Accept: application/json"

Response

{
  "items": [
    {
      "id": 1,
      "organizationId": 1,
      "name": "Production API",
      "customerId": null,
      "customerName": null,
      "lastUsedAt": "2026-04-01T12:00:00.000Z",
      "expiresAt": null,
      "createdAt": "2026-01-15T10:00:00.000Z",
      "tokenHint": "wsm_a1b2c..."
    }
  ],
  "total": 1,
  "page": 1,
  "perPage": 1
}

List form: with envelope=items the list arrives as { items, total, page, perPage }. Without it the endpoint still answers the current form (a bare array of the same items), which is deprecated; { items, ... } becomes the default on 2027-01-18.

Common errors

  • 401 Unauthorized when not authenticated
  • 403 Forbidden when not an admin

On this page