IM
EN
Docs Home
Menu
Features

Accounts and Members

Account hierarchy, membership roles, and active-account switching in Inbox Manager.

inbox-manager accounts memberships

Accounts and Members

The accounts and members feature defines how accounts are organized and how roles are assigned for protected Inbox Manager operations. It gives you direct control over who can use each account and which account is active for each request.

Why This Matters

This feature sets the account boundary for credentials, tasks, jobs, emails, and logs. It keeps account switching explicit and role assignment in memberships, which reduces mistakes when teams work across parent and child accounts.

Core Flow

A client first lists accessible accounts, selects the active account, and saves that choice through account-view switching. From there it loads account and membership data, then performs account or member changes under that account.

Operations

OperationEndpointPurpose
List accountsGET /api/accountsFetch accessible account list
Search accountsPOST /api/accounts/searchQuery account set by filter
Get accountGET /api/accounts/:account_idRetrieve account details
Switch active accountPOST /api/account-views/switchSave active account selection
Create accountPOST /api/accountsCreate root or child account
Update accountPATCH /api/accounts/:account_idModify account fields
Delete accountDELETE /api/accounts/:account_idRemove account
List membersGET /api/accounts/:account_id/membersFetch account memberships
Add memberPOST /api/accounts/:account_id/membersCreate membership
Update memberPATCH /api/accounts/:account_id/members/:member_idChange role or membership metadata
Remove memberDELETE /api/accounts/:account_id/members/:member_idRevoke account access

Key Data and State

{
  account_id: "acc_...",
  parent_account_id: "acc_parent_...", // optional for hierarchy
  membership: {
    user_id: "uid_...",
    role: "owner" | "member" | "viewer"
  }
}

Failure Modes and Controls

Requests for accounts outside the caller membership set are rejected, and member changes require the right role. Account switching must target an account the caller can access, and account lifecycle changes only happen through explicit account endpoints.

Account, Membership, Inbox Manager Client Flows.