Register Phone Number
Register a phone number for an agent.
Two modes of operation:
-
LiveKit Phone Numbers (provider=‘livekit’):
- For numbers already purchased through LiveKit Cloud dashboard
- No SIP trunk configuration needed
- Simplified setup - just provide the phone number
- LiveKit automatically manages the infrastructure
-
External SIP Providers (twilio, vonage, telnyx, etc.):
- You must already own the phone number
- Creates SIP dispatch rule in LiveKit
- Returns SIP URI to configure in provider’s dashboard
- Supports both inbound and outbound calling
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
Request to register a phone number for an agent.
Provide phone number and trunk details - LiveKit handles the SIP infrastructure.
For LiveKit phone numbers (provider='livekit'):
- Purchase your number through LiveKit Cloud dashboard first
- No trunk configuration needed - LiveKit manages the infrastructure
- Just provide the phone number and it will be configured automatically
For external providers (twilio, vonage, etc.):
- You must own the number already
- SIP trunk configuration is required
- You'll receive a SIP URI to configure in provider's dashboard
IMPORTANT FOR VONAGE USERS: Vonage Elastic SIP Trunking requires your trunk domain in the outbound_address. Format: {your-trunk-domain}.sip-{region}.vonage.com Example: mrassistant-developer.sip-us.vonage.com Find this in Vonage Dashboard → SIP Trunks → Your Trunk → Outbound Calling section.
E.164 format phone number (e.g., +15551234567)
SIP provider: livekit, twilio, vonage, telnyx, bandwidth, or custom
Phone numbers on this trunk (defaults to [phone_number])
Allowed IP addresses (empty = allow all)
Allowed caller numbers (empty = allow all)
SIP authentication username (REQUIRED for Vonage outbound)
SIP authentication password (REQUIRED for Vonage outbound)
Enable outbound calling (frontend may also send as 'outbound_enabled')
Provider's SIP termination URI for outbound calls. REQUIRED for outbound calling. Get this from your provider's dashboard. Examples: - Vonage: sip-us.vonage.com - Twilio: pstn.twilio.com - Telnyx: sip.telnyx.com
Phone numbers for outbound caller ID
SIP transport protocol: AUTO, UDP, TCP, or TLS
^(AUTO|UDP|TCP|TLS)$Two-letter country code (e.g., 'US', 'IN'). Required for India compliance.
2Media encryption: DISABLE, ALLOW, or REQUIRE (ALLOW recommended)
^(DISABLE|ALLOW|REQUIRE)$Enable Krisp noise cancellation for better call quality
Maximum time for call to ring (1-300 seconds)
1 <= x <= 300Maximum call duration (60-86400 seconds)
60 <= x <= 86400Hide caller phone number from participant attributes for privacy
Custom SIP X-* headers to include in requests
Map SIP headers to participant attributes
DTMF and IVR configuration
{
"auto_navigate_ivr": true,
"dtmf_sequence": "*123#ww456",
"dtmf_timeout": 30,
"ivr_detection": true
}Call transfer configuration
{
"allowed_destinations": ["tel:+15105550100"],
"cold_transfer_enabled": true,
"requires_confirmation": true,
"supervisor_phone": "tel:+15105550100",
"warm_transfer_enabled": false
}Agent-specific telephony features
{
"call_screening": false,
"recording_enabled": true,
"sentiment_analysis": true,
"transcription_enabled": true
}Additional metadata
Provider-specific configuration (stored in database as JSON)
Response
Successful Response
Response for phone number registration.
LiveKit outbound trunk ID if outbound is enabled
SIP address used for outbound calls (e.g., sip.telnyx.com)
LiveKit room naming pattern for this agent's calls
LiveKit SIP domain for this deployment
LiveKit inbound SIP server addresses
List of supported SIP providers with default addresses