Skip to main content
POST
Add Twilio Number

Authorizations

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.

Body

string
required
The phone number in E.164 format. Example: +14157774444.
string
required
The Twilio phone number SID for the number you are connecting.
string
A human-readable label for the phone number. Use a name that helps your team identify its purpose.
number
The purchase price or configured price for the phone number.

Response

boolean
Whether the request succeeded.
string
Human-readable status message.
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