Legacy SIP trunks (deprecated). These
/sip-trunks endpoints manage legacy SIP trunks. Existing legacy trunks keep working, but use the SIP trunks API for every new setup, and see Migrate to SIP trunks to move an existing trunk.Endpoints
Trunks
| Method | Endpoint | Description |
|---|---|---|
POST | /sip-trunks/trunks | Create a new SIP trunk |
GET | /sip-trunks/trunks | List all SIP trunks |
GET | /sip-trunks/trunks/{trunk_id} | Get a single SIP trunk |
PATCH | /sip-trunks/trunks/{trunk_id} | Update a SIP trunk |
DELETE | /sip-trunks/trunks/{trunk_id} | Delete a SIP trunk |
Phone numbers
| Method | Endpoint | Description |
|---|---|---|
POST | /sip-trunks/trunks/{trunk_id}/numbers | Add a phone number to a trunk |
GET | /sip-trunks/trunks/{trunk_id}/numbers | List phone numbers on a trunk |
DELETE | /sip-trunks/trunks/{trunk_id}/numbers/{phone_number_id} | Remove a phone number from a trunk |

