cURL
curl --request GET \ --url https://api.example.com/api/auth/me
{ "success": true, "data": { "id": "<string>", "email": "<string>", "display_name": {}, "role": "<string>", "created_at": "<string>", "updated_at": "<string>", "github_username": {}, "gitlab_username": {} } }
Retrieve the currently authenticated user information
Authorization: Bearer <token>
heimdall_session
curl https://heimdall.example.com/api/auth/me \ -H "Authorization: Bearer <your_session_token>"
true
Show properties
{ "success": true, "data": { "id": "01932e4a-7b2c-7890-abcd-1234567890ab", "email": "[email protected]", "display_name": "Alice", "role": "user", "created_at": "2026-03-10T10:30:00Z", "updated_at": "2026-03-12T15:45:00Z", "github_username": "alice", "gitlab_username": null } }
401 Unauthorized - No token
{ "success": false, "error": { "code": 401, "message": "Authentication required" } }
401 Unauthorized - Invalid token
{ "success": false, "error": { "code": 401, "message": "Invalid or expired session" } }
500 Internal Server Error
{ "success": false, "error": { "code": 500, "message": "Internal server error" } }