Account

Manage sub-accounts

List, retrieve, update, suspend and close sub-accounts, and see what each one spends.

Use your main-account credentials for every request. {tenant_id} is your Auth ID or tenant UUID, and {subaccount_id} is the UUID returned when you created the sub-account.

List sub-accounts

curl "https://api.tryvox.io/v1/tenants/$TRYVOX_AUTH_ID/sub-accounts?page=1&per_page=20" \
  -u "$TRYVOX_AUTH_ID:$TRYVOX_AUTH_TOKEN"

Returns active and suspended sub-accounts in data, with meta.page, meta.per_page and meta.total. Closed ones aren't listed.

Query parameterDefaultDescription
page1Page number, starting at 1
per_page20Results per page, up to 100

Retrieve a sub-account

curl "https://api.tryvox.io/v1/tenants/$TRYVOX_AUTH_ID/sub-accounts/$SUBACCOUNT_ID" \
  -u "$TRYVOX_AUTH_ID:$TRYVOX_AUTH_TOKEN"

Returns 200 OK with the sub-account object in data. Its status is active, suspended or closed.

Update a sub-account

curl -X PUT "https://api.tryvox.io/v1/tenants/$TRYVOX_AUTH_ID/sub-accounts/$SUBACCOUNT_ID" \
  -u "$TRYVOX_AUTH_ID:$TRYVOX_AUTH_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name":"Acme Sales","description":"Sales calling project"}'

Send any of name, email, phone and description. Omitted fields keep their values. Returns 200 OK with the updated object in data.

Updating email changes the contact email, not an existing sign-in email. To set the customer's password, use POST .../password.

Suspend and reactivate

POST /v1/tenants/{tenant_id}/sub-accounts/{subaccount_id}/suspend
POST /v1/tenants/{tenant_id}/sub-accounts/{subaccount_id}/reactivate

Neither takes a body. Each returns 200 OK with the new status.

Suspending stops the customer at once: its API keys and dashboard login stop working, and you can't create new keys for it. Calls to and from its numbers are refused, but the numbers aren't released. Reactivating restores access, including existing keys.

See what a sub-account spends

Every charge for a sub-account comes from your wallet. Get the charges for one sub-account:

curl "https://api.tryvox.io/v1/account/$TRYVOX_AUTH_ID/billing/sub-account-usage/$SUBACCOUNT_ID?currency=INR&from=2026-11-01&to=2026-11-30&page=1&per_page=20" \
  -u "$TRYVOX_AUTH_ID:$TRYVOX_AUTH_TOKEN"
Query parameterDefaultDescription
currencyINRWallet currency
from, toLast 7 daysDate range, YYYY-MM-DD (UTC)
page, per_page1, 20Pagination
{
  "data": {
    "master_account_id": "TJ28f85b23",
    "sub_account_id": "1395d05f-7867-4abe-b056-8341d911f271",
    "currency": "INR",
    "net_charges": 100,
    "transactions": [
      {
        "id": "c13dc62b-a1d7-42f5-a0cb-58b4fc8a204b",
        "type": "debit",
        "amount": 100,
        "currency": "INR",
        "description": "Managed DID purchase: +919000255884",
        "reference_type": "did_purchase",
        "status": "completed",
        "created_at": "2026-11-12T08:48:22Z"
      }
    ]
  },
  "meta": { "page": 1, "per_page": 20, "total": 1 }
}

net_charges is debits minus credits for the range. Use it to bill your customer on your own platform. Your own transactions also carry sub_account_id on each charge made for a sub-account.

Close a sub-account

curl -X DELETE "https://api.tryvox.io/v1/tenants/$TRYVOX_AUTH_ID/sub-accounts/$SUBACCOUNT_ID" \
  -u "$TRYVOX_AUTH_ID:$TRYVOX_AUTH_TOKEN"

Returns 204 No Content. The sub-account's status becomes closed, its keys and login stop working, and it leaves your list. Its history is kept.

Closing doesn't release phone numbers or stop their rental. Release its numbers first, using the customer's key. Creating a sub-account again with the same email reopens it.

On this page