List Purchased Numbers
curl --request GET \
--url https://api.ravan.ai/api/v1/phone-numbers/list \
--header 'X-Api-Key: <api-key>'import requests
url = "https://api.ravan.ai/api/v1/phone-numbers/list"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.ravan.ai/api/v1/phone-numbers/list', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ravan.ai/api/v1/phone-numbers/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.ravan.ai/api/v1/phone-numbers/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.ravan.ai/api/v1/phone-numbers/list")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ravan.ai/api/v1/phone-numbers/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Request completed successfully",
"data": [
{
"id": "id_123",
"telephony_id": "telephony_123",
"subscription_id": "subscription_123",
"inbound_trunk_id": "inbound_trunk_123",
"outbound_trunk_id": "outbound_trunk_123",
"number": "+14155550100",
"friendly_name": "Support Bot",
"per_minute_price_inbound": 1,
"per_minute_price_outbound": 1,
"price": 1,
"region": "example",
"iso_country": "US",
"is_active": true,
"created_at": "2026-03-14T12:00:00Z",
"updated_at": "2026-03-14T12:00:00Z"
}
]
}
Phone Number & Telephony API
List Purchased Numbers
List Purchased Numbers.
GET
/
api
/
v1
/
phone-numbers
/
list
List Purchased Numbers
curl --request GET \
--url https://api.ravan.ai/api/v1/phone-numbers/list \
--header 'X-Api-Key: <api-key>'import requests
url = "https://api.ravan.ai/api/v1/phone-numbers/list"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.ravan.ai/api/v1/phone-numbers/list', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ravan.ai/api/v1/phone-numbers/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.ravan.ai/api/v1/phone-numbers/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.ravan.ai/api/v1/phone-numbers/list")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ravan.ai/api/v1/phone-numbers/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Request completed successfully",
"data": [
{
"id": "id_123",
"telephony_id": "telephony_123",
"subscription_id": "subscription_123",
"inbound_trunk_id": "inbound_trunk_123",
"outbound_trunk_id": "outbound_trunk_123",
"number": "+14155550100",
"friendly_name": "Support Bot",
"per_minute_price_inbound": 1,
"per_minute_price_outbound": 1,
"price": 1,
"region": "example",
"iso_country": "US",
"is_active": true,
"created_at": "2026-03-14T12:00:00Z",
"updated_at": "2026-03-14T12:00:00Z"
}
]
}
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.Query Parameters
string
Filters available numbers by region, state, province, or locality when supported.
string
The ISO 3166-1 alpha-2 country code. Example:
US.boolean
Filters results by active status. Use
true for active records or false for inactive records.Response
boolean
Whether the request succeeded.
string
Human-readable status message.
object[]
Returned data.
Show data[]
Show data[]
string
Record ID
string
Associated telephony ID
string
Associated subscription ID
string
Inbound SIP trunk ID
string
Outbound SIP trunk ID
string
Phone number in E.164 format
string
Human-readable label
integer
Per-minute inbound price
integer
Per-minute outbound price
integer
Monthly price
string
Region
string
ISO country code
boolean
Whether the number is active
string
Creation timestamp
string
Last update timestamp
{
"success": true,
"message": "Request completed successfully",
"data": [
{
"id": "id_123",
"telephony_id": "telephony_123",
"subscription_id": "subscription_123",
"inbound_trunk_id": "inbound_trunk_123",
"outbound_trunk_id": "outbound_trunk_123",
"number": "+14155550100",
"friendly_name": "Support Bot",
"per_minute_price_inbound": 1,
"per_minute_price_outbound": 1,
"price": 1,
"region": "example",
"iso_country": "US",
"is_active": true,
"created_at": "2026-03-14T12:00:00Z",
"updated_at": "2026-03-14T12:00:00Z"
}
]
}
⌘I

