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

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

Example Object


Create a Subaccount

Creates a new subaccount.

Arguments

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

Example

Response

api_id
string
Unique identifier for the API request.
auth_id
string
Auth ID of the subaccount.
auth_token
string
Auth Token of the subaccount.
message
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

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

List All Subaccounts

Returns all subaccounts sorted by creation date, newest first.

Arguments

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

Example

Response

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

Update a Subaccount

Updates a subaccount. Parameters not provided remain unchanged.

Arguments

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

Example

Response

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

Delete a Subaccount

Permanently deletes a subaccount.

Arguments

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

Example

Response