Console API
Current user
1 endpoint.
GET
/api/v1/admin/current_userCurrent authenticated user profile
Returns the JWT's `user_id` and `role_id` augmented with the display name + email fetched from Heimdal `/users/current_user`. Side effect: refreshes the Redis Heimdal-user cache so message list endpoints can render this user's name on outbound bubbles without a cross-service round-trip.
Authentication
Authorization: Bearer <token>.
Responses
200Successful Responseapplication/jsonSuccessResponse_CurrentUserData_| Field | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request_idrequired | string | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
success | true | default true | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
datarequired | CurrentUserData | CurrentUserData fields
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
metadata | ResponseMetadata | null | ResponseMetadata fields
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
meta | ResponseMeta | null | ResponseMeta fields
|
400Bad request401Unauthorized403Forbidden404Not found422Validation error500Internal server error503Service unavailable
Error bodies: ErrorResponse. See Errors.