Skip to main content
POST
/
api
/
v1
/
phone-numbers
/
add-twilio
Add Twilio Number
curl --request POST \
  --url https://api.ravan.ai/api/v1/phone-numbers/add-twilio \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "phone_number": "<string>",
  "number_sid": "<string>",
  "friendly_name": "<string>",
  "price": 123
}
'
{
  "success": true,
  "message": "<string>",
  "data": {
    "id": "<string>",
    "telephony_id": "<string>",
    "subscription_id": "<string>",
    "inbound_trunk_id": "<string>",
    "outbound_trunk_id": "<string>",
    "number": "<string>",
    "friendly_name": "<string>",
    "per_minute_price_inbound": 123,
    "per_minute_price_outbound": 123,
    "price": 123,
    "region": "<string>",
    "iso_country": "<string>",
    "is_active": true,
    "created_at": "<string>",
    "updated_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.

Body

phone_number
string
required
Phone number in E.164 format
number_sid
string
required
Twilio number SID
friendly_name
string
Friendly name for the number
price
number
Monthly price

Response

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

Authorizations

X-Api-Key
string
header
required

Body

application/json
phone_number
string
required

Phone number in E.164 format

number_sid
string
required

Twilio number SID

friendly_name
string

Friendly name

price
number

Monthly price

Response

200 - application/json

Successful response

success
boolean
message
string
data
object