List sub-accounts
const url = 'https://api.siprtc.io/v1/Accounts/example/Tenants?page=1&limit=30';const options = {method: 'GET', headers: {Authorization: 'Basic <credentials>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.siprtc.io/v1/Accounts/example/Tenants?page=1&limit=30' \ --header 'Authorization: Basic <credentials>'Lists the live sub-accounts directly under the authenticated account, newest first, 30 per page unless limit says otherwise. Some accounts see their parent’s sub-accounts instead: agent, supervisor and contact accounts under a vendor or superuser, member accounts under a vendor or ent of the same company, and ent accounts under a vendor. Which list you get depends only on the authenticated account, whatever {auth_id} says.
name, email and auth_id match substrings, type takes a comma-separated list, and status defaults to every status except deleted. role keeps only rows holding one of the given realm role names; it is applied to the current page after paging, and that reply reports last_page 1 and counts only the kept rows. When type includes agent or supervisor, each row also carries its contact-centre worker and its sipEndpoint, including the SIP registration password.
When nothing matches, the reply is 404, not an empty list. Page with page and limit: the next_url and prev_url links are built from the full request URL with http://, so they are not directly usable.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Your Auth ID (the authenticated account).
Query Parameters
Section titled “ Query Parameters ”Page number, from 1.
Sub-accounts per page.
First or last name contains this; with two or more words, the last word matches the last name and the rest the first name.
Email address contains this.
Auth ID contains this. (Same name as the path parameter; send it as a query parameter.)
Account types, comma-separated, e.g. member,agent.
Exact status: active, inactive, created, partial created or failed. Omit, or send any or all, for all of these.
Exact serial number, e.g. TN-01 (accounts of type tenant).
Realm role names, comma-separated; keeps rows with any of them.
Responses
Section titled “ Responses ”A page of sub-accounts.
object
Request URL the page links are built from.
This page’s number, from 1.
The sub-accounts on this page, newest first.
object
Postal address.
The sub-account’s Auth ID: its Basic-auth user name and the {auth_id} of its own API paths. 20 characters.
The sub-account’s API secret (40 characters). Filled only in the reply to createTenant; empty in every other reply.
Prepaid balance in USD, the same balance the Balance API reports.
Company id (createTenant only).
Email address.
First name.
True when caller ID (CLI) is disabled for the sub-account.
True when the sub-account is disabled and cannot sign in or call the API.
Last name.
JSON-encoded string with company_id, workspace_sid, time_zone and set-up progress. Returned by createTenant and getTenant; lists leave it out.
Auth ID of the account the sub-account belongs to. Not included in lists.
Phone number.
When the sub-account was created (RFC 3339).
Realm roles of the sub-account’s sign-in (getTenant and listTenants).
object
The realm role’s id (UUID).
The realm role’s name.
Sequential number (TN-01, TN-02, …) given to accounts of type tenant under their parent.
SIP endpoint of an agent or supervisor. Filled only in lists filtered by type agent or supervisor, where password is the agent’s SIP registration password.
object
SIP registration password of the agent’s endpoint.
Lifecycle status. createTenant, updateTenant and updateTenantStatus set active or inactive (from is_disabled). The set-up that runs after createTenant then sets created when the sign-in (and, for tenant, agent and supervisor types, the contact-centre resources) exist, or partial created with the missing steps in meta_data.reason.
IANA time zone. Returned by createTenant and listTenants; getTenant carries it inside meta_data.
Account type, e.g. tenant, member, agent, supervisor.
Sign-in user name. createTenant echoes the requested one; getTenant and listTenants read it from the identity provider (empty when it could not be read).
Contact-centre worker of an agent or supervisor. Filled only in lists filtered by type agent or supervisor; otherwise it holds only zero values.
object
Contact-centre workspace of the sub-account, when it has one (createTenant and listTenants).
Number of the last page.
Link to the next page, when there is one.
Page size.
Link to the previous page. See the operation description.
Number of sub-accounts that match the filters (before any role filter).
Example
{ "base_url": "http://api.siprtc.io/v1/Accounts/AC000000000000000001/Tenants", "current_page": 1, "data": [ { "address": "1 Example Street, Springfield", "auth_id": "AC000000000000000002", "auth_secret": "EXAMPLESECRET000000000000000000000000000", "balance_money": 0, "company_id": "3f2b6a1e-0c4d-4e8a-9b7f-2d1c0e5a6b7c", "email": "ada@example.com", "first": "Ada", "is_clidisabled": false, "is_disabled": false, "last": "Lovelace", "meta_data": "{\"company_id\":\"3f2b6a1e-0c4d-4e8a-9b7f-2d1c0e5a6b7c\",\"time_zone\":\"Europe/London\",\"workspace_sid\":\"\"}", "parent_auth_id": "AC000000000000000001", "phone1": "+15555550100", "registration_date": "2026-11-26T09:30:00Z", "role": [ { "id": "0b9c2c1e-7d3f-4c55-9a8e-5f2d4b6a7c81", "name": "member" } ], "serial_number": "TN-01", "sipEndpoint": { "password": "example-sip-password" }, "status": "active", "time_zone": "Europe/London", "type": "member", "username": "ada.lovelace", "workspace_sid": "WS0000000000000000000000000000000" } ], "last_page": 1, "next_url": "http://api.siprtc.io/v1/Accounts/AC000000000000000001/Tenants?page=2", "per_page": 30, "prev_url": "", "total_results": 1}The caller’s account could not be checked.
object
The underlying error text. Only some 400 responses of the tenant list carry it.
What went wrong, in English.
Always “failed”.
Example
{ "error": "sql: connection is already closed", "message": "Account Details not found", "status": "failed"}Authentication failed: wrong or missing credentials, a disabled account, or an {auth_id} that is neither you nor your direct sub-account.
Example generated
exampleNo sub-accounts match.
object
The underlying error text. Only some 400 responses of the tenant list carry it.
What went wrong, in English.
Always “failed”.
Example
{ "error": "sql: connection is already closed", "message": "Account Details not found", "status": "failed"}