Phone Numbers
Get phone number
Retrieve one phone number, with the assistants it answers and dials with.
GET
/
phone-number
/
{id}
Get phone number
curl --request GET \
--url https://api.verbeo.ai/v1/phone-number/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.verbeo.ai/v1/phone-number/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.verbeo.ai/v1/phone-number/{id}', 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.verbeo.ai/v1/phone-number/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.verbeo.ai/v1/phone-number/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.verbeo.ai/v1/phone-number/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.verbeo.ai/v1/phone-number/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyReturns a single phone number.
Path parameters
string
required
UUID of the phone number.
Request
curl "https://api.verbeo.ai/v1/phone-number/7d9f3b52-4c1e-4a8e-9b1a-2f6c0d4e8a11" \
-H "Authorization: Bearer YOUR_API_KEY"
const id = "7d9f3b52-4c1e-4a8e-9b1a-2f6c0d4e8a11";
const res = await fetch(`https://api.verbeo.ai/v1/phone-number/${id}`, {
headers: { Authorization: `Bearer ${process.env.VERBEO_API_KEY}` },
});
const { data: number } = await res.json();
import os, requests
number_id = "7d9f3b52-4c1e-4a8e-9b1a-2f6c0d4e8a11"
res = requests.get(
f"https://api.verbeo.ai/v1/phone-number/{number_id}",
headers={"Authorization": f"Bearer {os.environ['VERBEO_API_KEY']}"},
)
number = res.json()["data"]
Response
200 OK with the phone number object.
{
"success": true,
"data": {
"id": "7d9f3b52-4c1e-4a8e-9b1a-2f6c0d4e8a11",
"workspace_id": "123e4567-e89b-12d3-a456-426614174000",
"phone_number": "+14155550123",
"nickname": "Main line",
"provider": "livekit_sip",
"is_active": true,
"max_cps": 1,
"inbound_agent_id": "550e8400-e29b-41d4-a716-446655440000",
"outbound_agent_id": null,
"inbound_webhook_url": null,
"created_at": "2026-01-15T10:30:00.123456+00:00",
"updated_at": "2026-01-22T14:00:00.654321+00:00",
"inbound_agent_name": "Customer Support",
"outbound_agent_name": null
}
}
Errors
| Code | Status | When |
|---|---|---|
NOT_FOUND | 404 | No such phone number, or it belongs to another workspace. The two are deliberately indistinguishable. |
VALIDATION_FAILED | 422 | id is not a UUID. |
Was this page helpful?
⌘I
Get phone number
curl --request GET \
--url https://api.verbeo.ai/v1/phone-number/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.verbeo.ai/v1/phone-number/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.verbeo.ai/v1/phone-number/{id}', 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.verbeo.ai/v1/phone-number/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.verbeo.ai/v1/phone-number/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.verbeo.ai/v1/phone-number/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.verbeo.ai/v1/phone-number/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body