id and carrying a role (MEMBER, ADMIN, or SUPER_ADMIN) that gates what the caller can do. A user can belong to several accounts; the account API lets you read the current context, list the accounts you can access, and switch your integration between them.
Accounts can form an organization/account hierarchy. An ADMIN can spin up accounts under an organization (creating the organization on the fly if the account was standalone), set each account’s registered customerDomain, and configure membership so that users with a verified matching-domain email auto-join without manual approval. Separately, each user manages their own notification preferences — the set of event types and channels (email, in_app) they opt into.
Key concepts
| Concept | Description |
|---|---|
| Current account | The account context the request authenticates as — id, company, name, role, customerDomain |
| Organization | The top-level entity in the hierarchy; only accounts created under an organization can be deleted |
customerDomain | The account’s registered domain; required before domain auto-join can be enabled |
| Membership | Per-account access settings, notably allowDomainAutoJoin |
| Notification preferences | Per-user opt-ins of notificationType × channel |
| Role | MEMBER, ADMIN, or SUPER_ADMIN; admin-only operations require ADMIN on the target account |
Task reference
Get current account
GET /accounts/current — your current contextList accounts
GET /accounts — accounts you can accessCreate account
POST /accounts/create-child — add an account under your organizationUpdate account domain
PATCH /accounts/:customerId/domain — set the registered domainDelete account
DELETE /accounts/:customerId — remove an account from your organizationGet membership
GET /accounts/:customerId/membership — read access settingsUpdate membership
PATCH /accounts/:customerId/membership — toggle domain auto-joinGet notification preferences
GET /notification-preferences — your opt-insUpdate notification preferences
PUT /notification-preferences — replace your opt-ins