GET /api/v2/accounts/current
Returns the customer account the authenticated user is currently operating as, including the user’s role on that customer and the registered organization domain.
Request
curl
Parameters
None. The account is resolved from the bearer token.Response
| Field | Type | Notes |
|---|---|---|
id | integer | Customer ID of the current account |
company | string | Company name |
name | string | Display name |
role | string | User role on this customer (MEMBER, ADMIN, SUPER_ADMIN) |
customerDomain | string | null | Registered organization domain, or null if unset |
Errors
401 UNAUTHORIZED— missing or invalid bearer token.
Related
Account tasks
All account operations
Account overview
Context, hierarchy, and membership
List customer accounts
Accounts you can access