#45 [Admin Panel] Token Management API - List Tokens
Description
EditImplement GET /api/v1/admin/tokens endpoint to list all active tokens.
**API Specification:**
- Endpoint: GET /api/v1/admin/tokens
- Permission Required: manage_users
- Query Parameters:
- user_id (UUID) - filter by user
- is_active (bool) - filter by status
- page, per_page - pagination
- Response: {data: tokens[], pagination: {...}}
**Token List Fields:**
- token_id, user_id, user_email
- description, scopes[]
- created_at, expires_at, last_used_at
- created_by_email, is_revoked
- usage_count
**Requirements:**
- Never expose actual token value in list
- Show tokens for current tenant only
- Sort by created_at desc by default
- Include expired tokens with is_expired flag
**IMPORTANT:** Implement with ultra attention to details and correctness.
**BEFORE CLOSING:** Take screenshot showing token list. Add comment summarizing implementation.
Comments
Loading comments...
Context
Loading context...
Audit History
View AllLoading audit history...