Phone Numbers
Assign Number to Trunk
Assign a phone number to a specific SIP trunk. Once assigned, all inbound calls to that phone number will be routed through the designated trunk. The phone number must be URL-encoded; use %2B instead of + (e.g., %2B912271264217).
post/api/v1/Account/{auth_id}/numbers/{phone_number}/assign
Request
- Base URLhttps://api.vobiz.ai
- AuthAPI key in header X-Auth-ID and API key in header X-Auth-Token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
auth_idstring required
Example:MA_XXXXXX
Your account Auth ID
phone_numberstring required
Example:%2B912271264217
The phone number to assign, URL-encoded (use %2B instead of +).
Request body
Example request
{
"trunk_group_id": "e3e55a78-1234-5678-90ab-cdef12345678"
}Response
Number assigned to trunk
Changes
No recorded changes to this operation across all 1 revision of this API.