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>"
  }
}

Authorizations

X-Api-Key
string
required
Your Agni API key used to authenticate the request. Pass it in the X-Api-Key header. Find or rotate it from your Ravan AI account settings.

Path Parameters

id
string
required
The unique ID of the resource in the path. Use the ID returned by the related create or list endpoint.

Body

name
string
The internal name of the resource. Use a clear name that your team can recognize in the dashboard and API responses.
termination_uri
string
The SIP termination URI for routing calls to the imported number.
sip_username
string
The SIP username for the imported number.
sip_password
string
The SIP password for the imported number. Treat this value as sensitive.

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