Skip to main content
Subaccounts let you manage multiple customer accounts under your main account. Each subaccount has its own Auth ID and Token, while charges deduct from the main account. API Endpoint

The Subaccount Object

Attributes

string
Auth ID of the subaccount.
string
Auth Token of the subaccount.
string
Name of the subaccount.
boolean
Whether the subaccount is enabled.
string
URI to the parent account.
string
Date the subaccount was created.
string
Date the subaccount was last modified.
string
URI to the subaccount resource.

Example Object


Create a Subaccount

Creates a new subaccount.

Arguments

string
required
A human-readable name for the subaccount.
boolean
Whether the subaccount should be enabled. Default: false.

Example

Response

string
Unique identifier for the API request.
string
Auth ID of the subaccount.
string
Auth Token of the subaccount.
string
Status of the request. Returns created on a successful creation.

Retrieve a Subaccount

Get details of a specific subaccount.

Arguments

No arguments required.

Example

Response

string
URI to the parent account.
string
Unique identifier for the API request.
string
Auth ID of the subaccount.
string
Auth Token of the subaccount.
string
Date the subaccount was created.
boolean
Whether the subaccount is enabled.
string
Date the subaccount was last modified.
string
Name of the subaccount.
string
URI to the subaccount resource.

List All Subaccounts

Returns all subaccounts sorted by creation date, newest first.

Arguments

integer
Results per page. Maximum 20.
integer
Pagination offset.

Example

Response

string
Unique identifier for the API request.
object
Pagination metadata: limit (results per page), offset (items skipped), total_count (total matching subaccounts).
array
Array of subaccount objects — see The Subaccount Object.

Update a Subaccount

Updates a subaccount. Parameters not provided remain unchanged.

Arguments

string
required
Name of the subaccount.
boolean
Whether the subaccount should be enabled.

Example

Response

string
Status of the request. Returns changed on a successful update.
string
Unique identifier for the API request.

Delete a Subaccount

Permanently deletes a subaccount.

Arguments

boolean
If true, deletes associated Applications, Endpoints, and Numbers. If false, maps them to the main account. Default: false.

Example

Response