Accounts
Retrieve account details
Return detailed information for a specific account.
The Retrieve Account Details endpoint returns information about the authenticated account (the account associated with the provided access token). This is often used for profile screens, account dashboards, or verifying ownership.
Endpoint
Headers
Key | Value | Required |
---|---|---|
Authorization | Bearer <access_token> | Yes |
Response
Successful Response (200 OK)
Field | Type | Description |
---|---|---|
id | string | Unique identifier of the account. |
string | The primary email address linked to the account. | |
name | string | Account name (business or individual). |
type | string | individual or business. |
status | string | Current account status (active, suspended, pending). |
created_at | string | ISO 8601 timestamp when the account was created. |
updated_at | string | ISO 8601 timestamp when the account was last updated. |
settings | object | Account preferences (currency, timezone, language). |
Error Response (401 / 403)
Error Code | Meaning |
---|---|
unauthorized | Access token missing, expired, or invalid. |
forbidden | The token does not have access to account details. |
Example Usage
cURL
JavaScript (Fetch)
This endpoint always returns details of the currently authenticated account. To retrieve another account, you must use admin or elevated privileges with the relevant account ID (if supported).