Authorizations

X-Api-Key
string
required
Your Agni API key. Find it in your support@ravan.ai under Settings → API Keys.

Path Parameters

id
string
required
The unique ID of the imported phone number to update.

Body

name
string
Updated friendly name for the number.
termination_uri
string
Updated SIP termination URI.
sip_username
string
Updated SIP authentication username.
sip_password
string
Updated SIP authentication password.

Response

success
boolean
Whether the request succeeded.
message
string
Human-readable status message.
data
object
The updated imported phone number record.
curl -X PUT https://api.ravan.ai/api/v1/phone-numbers/import/019d2a1b-4c5e-7f8a-9b0c-1d2e3f4a5b6c \
  -H "X-Api-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Office Main Line - Updated",
    "termination_uri": "sip:new-trunk@provider.com",
    "sip_username": "newuser",
    "sip_password": "newsecret"
  }'
{
  "success": true,
  "message": "Imported number updated successfully",
  "data": {
    "id": "019d2a1b-4c5e-7f8a-9b0c-1d2e3f4a5b6c",
    "phone": "+14155550100",
    "type": "sip",
    "name": "Office Main Line - Updated",
    "termination_uri": "sip:new-trunk@provider.com",
    "sip_username": "newuser",
    "sip_password": "newsecret",
    "status": "active",
    "created_at": "2026-03-20T14:30:00Z"
  }
}