The Subaccount Object
Attributes
Auth ID of the subaccount.
Auth Token of the subaccount.
Name of the subaccount.
Whether the subaccount is enabled.
URI to the parent account.
Date the subaccount was created.
Date the subaccount was last modified.
URI to the subaccount resource.
Example Object
Create a Subaccount
Creates a new subaccount.Arguments
A human-readable name for the subaccount.
Whether the subaccount should be enabled. Default:
false.Example
Response
Unique identifier for the API request.
Auth ID of the subaccount.
Auth Token of the subaccount.
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
URI to the parent account.
Unique identifier for the API request.
Auth ID of the subaccount.
Auth Token of the subaccount.
Date the subaccount was created.
Whether the subaccount is enabled.
Date the subaccount was last modified.
Name of the subaccount.
URI to the subaccount resource.
List All Subaccounts
Returns all subaccounts sorted by creation date, newest first.Arguments
Results per page. Maximum 20.
Pagination offset.
Example
Response
Unique identifier for the API request.
Pagination metadata:
limit (results per page), offset (items skipped), total_count (total matching subaccounts).Array of subaccount objects — see The Subaccount Object.
Update a Subaccount
Updates a subaccount. Parameters not provided remain unchanged.Arguments
Name of the subaccount.
Whether the subaccount should be enabled.
Example
Response
Status of the request. Returns
changed on a successful update.Unique identifier for the API request.
Delete a Subaccount
Permanently deletes a subaccount.Arguments
If
true, deletes associated Applications, Endpoints, and Numbers. If false, maps them to the main account. Default: false.