GET /api/v2/accounts
Returns every customer account you can switch into. Use it to discover child accounts under your org or to find the customer ID for a subsequent domain or membership operation.
Request
curl
Parameters
None. Accounts are scoped to the authenticated user’s memberships.Response
| Field | Type | Notes |
|---|---|---|
accounts[] | array | One entry per account you have access to |
accounts[].id | integer | Customer ID |
accounts[].company | string | Company name |
accounts[].name | string | Display name |
accounts[].role | string | Your role on this customer (MEMBER, ADMIN, SUPER_ADMIN). May be omitted |
Errors
401 UNAUTHORIZED— missing or invalid API key.
Related
Account tasks
All account operations
Get current account
The account you are operating as
Create child account
Provision a new child