Skip to main content
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
curl https://api.interchange.io/api/v2/accounts/current \
  -H "Authorization: Bearer $SCOPE3_API_KEY"

Parameters

None. The account is resolved from the bearer token.

Response

{
  "id": 100,
  "company": "Acme Inc",
  "name": "Acme",
  "role": "ADMIN",
  "customerDomain": "acme.com"
}
FieldTypeNotes
idintegerCustomer ID of the current account
companystringCompany name
namestringDisplay name
rolestringUser role on this customer (MEMBER, ADMIN, SUPER_ADMIN)
customerDomainstring | nullRegistered organization domain, or null if unset

Errors

  • 401 UNAUTHORIZED — missing or invalid bearer token.
See Errors for the full error contract.

Account tasks

All account operations

Account overview

Context, hierarchy, and membership

List customer accounts

Accounts you can access