Skip to content

Accounts

AccountsService provides operations for managing accounts.

Base path: /accounts

ListAccounts retrieves all accounts with pagination.

Request (ListAccountsRequest)

FieldTypeDescription
page_sizeint32?page_size: Maximum number of accounts per page (1–1000, default 50).
page_tokenstring?page_token: Token from previous response to fetch the next page.

Response (ListAccountsResponse)

FieldTypeDescription
accountsAccount[]
next_page_tokenstringnext_page_token: Pass to the next request to get the following page. Empty means no more pages.

GetAccount retrieves a specific account by ID.

Request (GetAccountRequest)

FieldTypeDescription
account_idstring

Response (GetAccountResponse)

FieldTypeDescription
accountAccount

CreateAccount creates a new account for a user.

Request (CreateAccountRequest)

FieldTypeDescription
user_idstringuser_id: The user who will own this account.
namestringname: Display name for the account.
local_partstringThe primary alias for this account will be constructed as: <local_part>@<domain.domain> where domain_id refers to a configured domain in DynamoDB.
domain_idstringdomain_id: Domain for the primary alias (must be a configured sending domain).

Response (CreateAccountResponse)

FieldTypeDescription
accountAccount

UpdateAccount updates account properties.

Request (UpdateAccountRequest)

FieldTypeDescription
account_idstring
namestring?name: New display name for the account.

Response (UpdateAccountResponse)

FieldTypeDescription
accountAccount

DeleteAccount deletes an account and all associated data (aliases, mailboxes, emails).

Request (DeleteAccountRequest)

FieldTypeDescription
account_idstring

Response (DeleteAccountResponse)

No fields.

ListAccountMembers lists all ACL members of an account.

Request (ListAccountMembersRequest)

FieldTypeDescription
account_idstring

Response (ListAccountMembersResponse)

FieldTypeDescription
membersAccountMember[]

PutAccountMember creates or updates a user’s role on an account.

Request (PutAccountMemberRequest)

FieldTypeDescription
account_idstring
user_idstring
roleAccountRole

Response (PutAccountMemberResponse)

FieldTypeDescription
memberAccountMember

DeleteAccountMember removes a user from an account ACL.

Request (DeleteAccountMemberRequest)

FieldTypeDescription
account_idstring
user_idstring

Response (DeleteAccountMemberResponse)

No fields.