Authorizations

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

Response

success
boolean
Whether the request succeeded.
message
string
Human-readable status message.
data
array
List of imported phone number records.
curl https://api.ravan.ai/api/v1/phone-numbers/import/ \
  -H "X-Api-Key: YOUR_API_KEY"
{
  "success": true,
  "message": "Imported numbers retrieved",
  "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"
    },
    {
      "id": "019d3b2c-5d6f-8a9b-0c1d-2e3f4a5b6c7d",
      "phone": "+442071234567",
      "type": "sip",
      "name": "UK Support Line",
      "termination_uri": "sip:uk-trunk@provider.com",
      "sip_username": "ukuser",
      "sip_password": "uksecret",
      "status": "active",
      "created_at": "2026-03-21T09:15:00Z"
    }
  ]
}