sip
Create Outbound Trunk
⚠️ DEPRECATED ENDPOINT - This endpoint is no longer supported.
Use Instead: POST /agents/{agent_id}/phone-numbers
Why Deprecated:
- This endpoint used an incorrect SIP architecture
- It doesn’t properly integrate with LiveKit dispatch rules
- Phone numbers should be registered at agent level, not tenant level
Migration Guide:
- Use
POST /agents/{agent_id}/phone-numbersto register phone numbers - See
CORRECT_PHONE_NUMBER_SETUP.mdfor complete setup instructions - See
MULTI_AGENT_ARCHITECTURE_PLAN.mdfor migration details
Correct Endpoint:
POST /agents/{agent_id}/phone-numbers
{
"phone_number": "+15551234567",
"provider": "twilio",
"enable_outbound": true,
"outbound_address": "sip.twilio.com"
}
POST
Create Outbound Trunk
Documentation Index
Fetch the complete documentation index at: https://docs.mrassistant.ai/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
application/json
SIP trunk creation model.
Response
Successful Response
Previous
List Sip Trunks⚠️ **DEPRECATED ENDPOINT** - This endpoint is no longer supported.
**Use Instead:** `GET /agents/{agent_id}/phone-numbers`
**For listing all phone numbers across agents:**
- Use `GET /phone-numbers/all` (admin endpoint)
- Or iterate through agents: `GET /agents/{agent_id}/phone-numbers` for each agent
Next
Create Outbound Trunk