Create sub-account
create_sub_accountCreate a new sub-account under a main Vobiz account by providing a name. Use it to provision separate accounts for teams or customers, with optional KYC, permissions, and rate limits.
Instructions
Create a new Vobiz sub-account under this main account (only name is required); to change an existing one use update_sub_account. kyc_mode customer_use needs email, and such a sub-account places calls only after its own KYC (start it with create_sub_account_kyc_session). Returns the new sub_auth_id and the redacted record; the credentials are never returned here, the user copies them from the Vobiz console. Gated by VOBIZ_ENABLE_PROVISIONING and confirm: true; needs main-account (MA_) credentials.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Human-readable name for the sub-account. | |
| No | Contact email. Required for kyc_mode customer_use. | ||
| phone | No | Contact phone number for the sub-account's owner: digits with an optional leading + and spaces, dashes or brackets, 6 to 20 characters. Not a caller ID. | |
| confirm | Yes | Must be true, set only after the user explicitly approved: creating this sub-account. | |
| enabled | No | Whether the sub-account can be used (default true). | |
| kyc_mode | No | personal_use (default) uses the parent's KYC; customer_use means the sub-account completes its own KYC before placing calls (needs email). | |
| rate_limit | No | API rate limit for the sub-account (Vobiz default 1000). | |
| description | No | Free-text note about the sub-account (what or whom it is for), up to 1000 characters. | |
| permissions | No | Access flags. Omitted on create: the sub-account inherits the parent's default access. | |
| business_type | No | Legal constitution of the customer (individual, proprietorship, private_limited, llp, partnership, public_limited, trust, society, huf or government); decides which KYC documents are collected. Matters for kyc_mode customer_use. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | true on success; false (with error and message) when the tool failed. | |
| created | No | true once Vobiz created the sub-account. | |
| http_status | No | HTTP status Vobiz answered with. | |
| sub_account | No | ||
| sub_auth_id | No | Auth ID of the new sub-account (SA_...), for the other sub-account tools. | |
| backend_message | No | Message from Vobiz about the operation, or null. | |
| credentials_note | No | Reminder that credentials are never returned here and where the user finds them. | |
| kyc_calls_blocked | No | true when the sub-account cannot place calls until its own KYC is verified. |