Skip to content

Account Details

GET api/account

This retrieves the authenticated user’s information.

Example Request

Terminal window
curl -X 'GET' \
'http://localhost:8080/api/account' \
-H 'Authorization: Bearer YOUR_TOKEN'

Responses

200 - OK

The request was successful

Content Type: application/json
Content: Account Resource

{
"id": 0,
"user_first_name": "string",
"user_middle_name": "string",
"user_last_name": "string",
"user_username": "string",
"user_email": "string",
"user_avatar_url": "string",
"user_visible": true,
"user_status": 0,
"user_timezone": "string",
"subscription_plan": {
"subscription_plan_title": "string",
"subscription_plan_pricing": 0,
"subscription_plan_expiration": "2024-12-02T11:58:54.523Z"
},
"user_login_options": [
{
"user_id": 0,
"user_login_option_type": 0,
"user_login_option_unique_identifier": "string",
"user_login_option_name": "string"
}
],
"user_settings": {
"user_setting_mute_notification": true
},
"created_at": "2024-12-02T11:58:54.523Z",
"updated_at": "2024-12-02T11:58:54.523Z"
}

401 - Unauthorized

The request requires valid bearer token, but none were provided, or the bearer token is invalid.

429 - Too Many Requests

The user has exceeded the rate limit of 120 requests per minute.

500 - Internal Server Error

There is an issue with the backend. Sentry will provide a more detailed report on the problem.