Skip to main content
PUT
/
api
/
v1
/
phone-numbers
/
import
/
{id}
Update Imported Number
curl --request PUT \
  --url https://api.ravan.ai/api/v1/phone-numbers/import/{id} \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "name": "<string>",
  "termination_uri": "<string>",
  "sip_username": "<string>",
  "sip_password": "<string>"
}
'
{
  "success": true,
  "message": "<string>",
  "data": {
    "id": "<string>",
    "phone": "<string>",
    "name": "<string>",
    "type": "<string>",
    "termination_uri": "<string>",
    "sip_username": "<string>",
    "status": "<string>",
    "created_at": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.ravan.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-Api-Key
string
required
Your Agni API key. Find it in your RavanAi.

Path Parameters

id
string
required
Imported number ID

Body

name
string
Friendly name
termination_uri
string
SIP termination URI
sip_username
string
SIP username
sip_password
string
SIP password

Response

success
boolean
Whether the request succeeded.
message
string
Human-readable status message.
data
object
Updated imported number object.

Authorizations

X-Api-Key
string
header
required

Path Parameters

id
string
required

Imported number ID

Body

application/json
name
string

Friendly name

termination_uri
string

SIP termination URI

sip_username
string

SIP username

sip_password
string

SIP password

Response

200 - application/json

Successful response

success
boolean
message
string
data
object