{
"phone_number": "+15551234567",
"provider": "twilio",
"supports_inbound": true,
"supports_outbound": true,
"integration_id": "intg_a1b2c3d4e5f6"
}
{
"success": true,
"message": "Phone number imported successfully with twilio",
"data": {
"phone_number_id": "phon_a1b2c3d4e5f6",
"phone_number": "+15551234567",
"provider": "twilio",
"status": "free",
"supports_inbound": true,
"supports_outbound": true,
"integration_id": "intg_a1b2c3d4e5f6",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z"
}
}
Phone Numbers
Import Phone Number
POST
/
api
/
phone-numbers
{
"phone_number": "+15551234567",
"provider": "twilio",
"supports_inbound": true,
"supports_outbound": true,
"integration_id": "intg_a1b2c3d4e5f6"
}
{
"success": true,
"message": "Phone number imported successfully with twilio",
"data": {
"phone_number_id": "phon_a1b2c3d4e5f6",
"phone_number": "+15551234567",
"provider": "twilio",
"status": "free",
"supports_inbound": true,
"supports_outbound": true,
"integration_id": "intg_a1b2c3d4e5f6",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z"
}
}
Import a phone number from a provider (Twilio or LiveKit SIP).
For Twilio numbers, you must first create a Twilio integration and provide its ID.
For SIP numbers, LiveKit trunks are automatically created.
Headers
Permissions
phone_numbers:create(admin, agent_manager)
Request Body
Twilio-Specific Parameters
SIP-Specific Parameters (LiveKit)
Response
{
"phone_number": "+15551234567",
"provider": "twilio",
"supports_inbound": true,
"supports_outbound": true,
"integration_id": "intg_a1b2c3d4e5f6"
}
{
"phone_number": "+15559876543",
"provider": "sip",
"supports_inbound": true,
"supports_outbound": true,
"sip_trunk_name": "my-trunk",
"sip_server_address": "sip.example.com",
"sip_username": "user",
"sip_password": "pass",
"media_encryption": "require"
}
{
"success": true,
"message": "Phone number imported successfully with twilio",
"data": {
"phone_number_id": "phon_a1b2c3d4e5f6",
"phone_number": "+15551234567",
"provider": "twilio",
"status": "free",
"supports_inbound": true,
"supports_outbound": true,
"integration_id": "intg_a1b2c3d4e5f6",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z"
}
}