Account
Sub-accounts
Create customers under your account, each with its own KYC, numbers and optional login.
A sub-account is a customer under your TryVox account. It has its own KYC and numbers, spends from your wallet, and can have its own login.
Your TryVox account
├── Sub-account A
└── Sub-account BEach sub-account has a UUID, an Auth ID, and a parent tenant ID. TryVox reviews every KYC submission. By default your approval doesn't carry over to a sub-account, unless you create it with kyc_mode: personal_use.
Integration flow
- Create a sub-account, optionally with a password or an emailed invitation.
- Save the returned
idagainst the customer in your database. - Submit its KYC through the API, or let the customer submit it after logging in. See verification.
- Create an API key for it.
- After TryVox approves its KYC, use that key to buy numbers and make calls. Each charge comes from your wallet.
- If it needs to run more calls at once, increase its capacity. Each sub-account has its own concurrent-call and CPS limits.
The multi-customer platform guide walks through every step with working requests.
Authentication and identifiers
Authenticate using HTTP Basic authentication. Keep API credentials on your server.
| Value | Purpose |
|---|---|
| Parent tenant UUID | Use as {tenant_id} in management requests |
| Parent account Auth ID | Also accepted as {tenant_id}; use the number owner's account Auth ID for number requests |
| API key Auth ID and token | Authenticate the request; the key's Auth ID may differ from the account owner's Auth ID |
Child id | UUID used as {subaccount_id} to retrieve, update or deactivate a child |
Child auth_id | Public identity returned for the child; distinct from its UUID |
The create response contains the child identifiers, not an API key. Create one with sub-account API keys.
Endpoints
| Method | Path | Purpose |
|---|---|---|
POST | /v1/tenants/{tenant_id}/sub-accounts | Create |
GET | /v1/tenants/{tenant_id}/sub-accounts | List |
GET | /v1/tenants/{tenant_id}/sub-accounts/{subaccount_id} | Retrieve |
PUT | /v1/tenants/{tenant_id}/sub-accounts/{subaccount_id} | Update |
POST | /v1/tenants/{tenant_id}/sub-accounts/{subaccount_id}/suspend | Suspend |
POST | /v1/tenants/{tenant_id}/sub-accounts/{subaccount_id}/reactivate | Reactivate |
DELETE | /v1/tenants/{tenant_id}/sub-accounts/{subaccount_id} | Close |
POST | /v1/tenants/{tenant_id}/sub-accounts/{subaccount_id}/api-keys | Create an API key |
POST | /v1/tenants/{tenant_id}/sub-accounts/{subaccount_id}/password | Set a password |
POST | /v1/tenants/{tenant_id}/sub-accounts/{subaccount_id}/login-invite | Send a login invitation |
GET | /v1/tenants/{tenant_id}/sub-accounts/{subaccount_id}/kyc/requirements | KYC requirements |
POST | /v1/tenants/{tenant_id}/sub-accounts/{subaccount_id}/kyc/submit | Submit KYC |
GET | /v1/tenants/{tenant_id}/sub-accounts/{subaccount_id}/kyc/status | KYC status |
GET | /v1/account/{auth_id}/billing/sub-account-usage/{subaccount_id} | Usage and charges |
For colleague access to shared account resources, use team members.