Set your credentials
Every request uses these two headers (writes also send
Content-Type: application/json):See the numbers available to you
Create a trunk (your SIP carrier credential)
id (e.g. 21). Copy it. See Create Trunk.Map a number to the trunk
Replace The response includes the origin endpoint - the SBC ingress your carrier sends
inbound calls to, plus the accepted source IPs. See Attach Numbers to Trunk.
21 with your trunk id and 501 with a number id from Step 2.Confirm the lifecycle
connection_state, termination kind, agent link, and sync_state.
See Telephony Overview.What next
Detach numbers
Step 1 - unmap numbers from the trunk, returning them to
NOT_ASSIGNED.Delete trunk
Step 2 - remove the trunk and its credential once numbers are detached.