List the organization's API tokens
Every token of the organization, newest first, revoked and expired ones included. Only owners and admins see the list.
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
limit?integerPage size. Defaults to 50, at most 200.
1 <= value <= 20050cursor?stringOpaque cursor from a previous page's nextCursor.
A page of tokens.
application/json- response
items*array<>nextCursor?stringcurl -X GET 'https://wardn.example.com/api/v1/api-tokens'{ "items": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "description": "string", "owner": { "userId": "string", "name": "string", "since": "2019-08-24T14:15:22Z" }, "status": "active", "prefix": "string", "generation": 1, "previousSecretUntil": "2019-08-24T14:15:22Z", "access": [ { "permissions": [ "string" ], "places": [ { "kind": "org", "id": "string", "name": "string", "missing": true } ] } ], "rateLimitPerMinute": 0, "expiresAt": "2019-08-24T14:15:22Z", "lastUsedAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z", "revokedAt": "2019-08-24T14:15:22Z", "revokedBy": { "userId": "string", "name": "string", "since": "2019-08-24T14:15:22Z" } } ], "nextCursor": "string"}Leave the support view DELETE
Clears the support session's cookie, so the browser is back to its own sign-in. It changes nothing in the organization.
Create an API token POST
The caller owns the token, and the owner never changes. Each access row gives permission keys on places; a row can only give what the caller holds on each of its places. A token cannot be edited later: only rotated or revoked. The secret is not in this response. The web app makes it as a Better Auth