#45 [Admin Panel] Token Management API - List Tokens

closed high Created 2025-11-27 07:12 · Updated 2025-11-27 08:51

Description

Edit
Implement 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 All
Loading audit history...