curl -X POST https://api.ravan.ai/api/v1/phone-numbers/import/ \ -H "X-Api-Key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "phone": "+14155550100", "type": "sip", "name": "Office Main Line", "termination_uri": "sip:trunk@provider.com", "sip_username": "myuser", "sip_password": "mysecret" }'
{ "success": true, "message": "Phone number imported successfully", "data": { "id": "019d2a1b-4c5e-7f8a-9b0c-1d2e3f4a5b6c", "phone": "+14155550100", "type": "sip", "name": "Office Main Line", "termination_uri": "sip:trunk@provider.com", "sip_username": "myuser", "sip_password": "mysecret", "status": "active", "created_at": "2026-03-20T14:30:00Z" } }
Import an existing phone number from your own SIP trunk or telephony provider into the Agni platform.
+14155550100
sip
pstn
"Office Main Line"
sip:trunk@provider.com
Show data
active
Phone number to import (E.164 format)
Type of phone number (e.g. sip, pstn)
Friendly name for the number
SIP termination URI
SIP username for authentication
SIP password for authentication
Successful response
Show child attributes