TestDocsMatchRoutes flagged the example response as missing a key the
handler emits — drift introduced by c645b8e2 (the wake-lock preference),
surfaced while regenerating the API mirrors for the retry endpoint.
927 B
927 B
method, path, auth, area
| method | path | auth | area |
|---|---|---|---|
| GET | /api/auth/profile | jwt | authentication |
Get Current User Profile
Retrieve the current authenticated user's profile.
Endpoint: GET /api/auth/profile
Auth: Required
Request Headers
| Header | Type | Required | Description |
|---|---|---|---|
| Authorization | string | Yes | Bearer token |
Example Request
GET /api/auth/profile
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
Response (200 OK)
{
"id": "uuid",
"email": "user@example.com",
"username": "john",
"first_name": "John",
"last_name": "Doe",
"role": "user",
"keep_screen_awake": true
}
Error Responses
| Code | Description |
|---|---|
| 401 | Invalid or expired token |