Skip to Content
Uptimeify Docs

Organisations-Tokens auflisten

Gibt alle API-Tokens der Organisation zurück. Tokens sind maskiert: nur die ersten 8 Zeichen werden angezeigt. Erfordert die Admin-Rolle.

GET /api/organization/tokens

Query-Parameter

ParameterTypStandardBeschreibung
envelopestringkeineritems: Antwort als { items, total, page, perPage }. Ab 18.01.2027 Standard.

Beispiel (cURL)

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

Antwort (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
}

Listenform: Mit envelope=items kommt die Liste als { items, total, page, perPage }. Ohne den Parameter antwortet der Endpunkt noch in der bisherigen Form (ein blankes Array derselben Einträge); sie ist veraltet, ab dem 18.01.2027 ist { items, ... } der Standard.

Häufige Fehler

  • 401 Unauthorized wenn du nicht angemeldet bist
  • 403 Forbidden wenn du kein Admin bist

Auf dieser Seite