List your legacy API tokens
GET
/api/legacy-api-tokens
Returns the legacy hub API tokens imported for the authenticated user. The provider scopes the collection to the current user, so it never includes other users' tokens. Each entry exposes only a masked token preview - the full selector and the hashed verifier are never returned.
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
1itemsPerPage
The number of items per page
Type
integer
Default
30Minimum
0Maximum
100Responses
legacy-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": 42, "legacyOrgId": 1234, "expiredAt": "2024-12-31T23:59:59+00:00", "comment": "CI deploy token", "createdAt": "2024-01-15T09:30:00+00:00", "tokenPreview": "a1b2c3d4…" } ]
{
}
