API ReferenceTokens
List API Tokens
List all API tokens for the authenticated user.
GET /api/tokens
Returns all API tokens belonging to the authenticated user. For security, only the token prefix is returned -- the full token value is only shown once at creation time.
Authentication
| Header | Type | Required | Description |
|---|---|---|---|
Authorization | string | Yes | Bearer token. Format: Bearer <token> |
Response
[
{
"id": "tok-a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Production Bot",
"tokenPrefix": "wh_live_abc1...xyz9",
"active": true,
"lastUsedAt": "2026-03-14T09:30:00.000Z",
"createdAt": "2026-03-01T10:00:00.000Z"
},
{
"id": "tok-b2c3d4e5-f6a7-8901-bcde-f12345678901",
"name": "Development",
"tokenPrefix": "wh_live_def4...uvw7",
"active": true,
"lastUsedAt": null,
"createdAt": "2026-03-10T14:00:00.000Z"
}
]{
"statusCode": 401,
"message": "Unauthorized"
}