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

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

trunk_group_idstring uuid required

The UUID of the trunk to assign this number to.

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.