curl --request GET \
--url https://api.goyappr.com/phone-numbers \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.goyappr.com/phone-numbers"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.goyappr.com/phone-numbers', 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.goyappr.com/phone-numbers",
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.goyappr.com/phone-numbers"
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.goyappr.com/phone-numbers")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.goyappr.com/phone-numbers")
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{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"number": "+972551234567",
"friendly_name": "<string>",
"provider": "telnyx",
"status": "active",
"is_active": true,
"inbound_agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"outbound_agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"inbound_split": {
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"percent": 50
},
"outbound_split": {
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"percent": 50
},
"sip_inbound_configured": true,
"sip_outbound_configured": true,
"country_code": "<string>",
"monthly_cost": 123,
"rent": {
"included": true,
"reason": "own_carrier",
"monthly_price_cents": 123,
"last_charged_at": "2023-11-07T05:31:56Z"
},
"next_renewal_at": "2023-11-07T05:31:56Z",
"scheduled_release_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"phone_system": {
"sip_endpoint_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sip_endpoint_name": "<string>"
},
"carrier_account": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"provider": "telnyx",
"status": "untested"
},
"carrier_state": {
"state": "ready",
"telnyx_status": "<string>",
"current_connection_name": "<string>",
"previous_connection_name": "<string>",
"blockers": [
"forwarding_always"
],
"notes": [
"number_recording"
],
"removed_at": "2023-11-07T05:31:56Z"
},
"ownership_verified_at": "2023-11-07T05:31:56Z"
}
]
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}List Owned Numbers
curl --request GET \
--url https://api.goyappr.com/phone-numbers \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.goyappr.com/phone-numbers"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.goyappr.com/phone-numbers', 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.goyappr.com/phone-numbers",
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.goyappr.com/phone-numbers"
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.goyappr.com/phone-numbers")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.goyappr.com/phone-numbers")
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{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"number": "+972551234567",
"friendly_name": "<string>",
"provider": "telnyx",
"status": "active",
"is_active": true,
"inbound_agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"outbound_agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"inbound_split": {
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"percent": 50
},
"outbound_split": {
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"percent": 50
},
"sip_inbound_configured": true,
"sip_outbound_configured": true,
"country_code": "<string>",
"monthly_cost": 123,
"rent": {
"included": true,
"reason": "own_carrier",
"monthly_price_cents": 123,
"last_charged_at": "2023-11-07T05:31:56Z"
},
"next_renewal_at": "2023-11-07T05:31:56Z",
"scheduled_release_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"phone_system": {
"sip_endpoint_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sip_endpoint_name": "<string>"
},
"carrier_account": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"provider": "telnyx",
"status": "untested"
},
"carrier_state": {
"state": "ready",
"telnyx_status": "<string>",
"current_connection_name": "<string>",
"previous_connection_name": "<string>",
"blockers": [
"forwarding_always"
],
"notes": [
"number_recording"
],
"removed_at": "2023-11-07T05:31:56Z"
},
"ownership_verified_at": "2023-11-07T05:31:56Z"
}
]
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}phone_numbers:search. Numbers you
added from your own Telnyx account are listed
here too, with provider: "external" and the account they call through.
The number journey is four calls:
search →
purchase → this list, to watch the
number become usable →
configure (or
update) to bind an agent to it. When you
no longer need a bought number, release
it: it keeps working until the end of the period already paid for, and
keep undoes that until then.
curl "$YAPPR_API_URL/phone-numbers" \
--header "Authorization: Bearer $YAPPR_API_KEY"
Response
{
"data": [
{
"id": "c0ffee00-0000-4000-8000-000000000001",
"number": "+972501234567",
"friendly_name": null,
"provider": "telnyx",
"status": "active",
"is_active": true,
"inbound_agent_id": "9b29b0c9-0000-4000-8000-000000000001",
"outbound_agent_id": "9b29b0c9-0000-4000-8000-000000000001",
"sip_inbound_configured": true,
"sip_outbound_configured": true,
"country_code": "IL",
"monthly_cost": 1000,
"created_at": "2026-03-18T04:16:32+00:00",
"ownership_verified_at": null,
"scheduled_release_at": null,
"phone_system": null,
"carrier_account": null,
"carrier_state": null,
"inbound_split": null,
"outbound_split": null,
"rent": { "included": false, "reason": null, "monthly_price_cents": 1000, "last_charged_at": "2026-09-18T04:17:05+00:00" },
"next_renewal_at": "2026-10-18T04:16:32.000Z"
},
{
"id": "c0ffee00-0000-4000-8000-000000000002",
"number": "+12025550143",
"friendly_name": "US line",
"provider": "external",
"status": "active",
"is_active": true,
"inbound_agent_id": null,
"outbound_agent_id": "9b29b0c9-0000-4000-8000-000000000001",
"sip_inbound_configured": false,
"sip_outbound_configured": true,
"country_code": null,
"monthly_cost": null,
"created_at": "2026-09-24T11:33:19+00:00",
"ownership_verified_at": "2026-09-24T11:33:19+00:00",
"scheduled_release_at": null,
"phone_system": null,
"carrier_account": {
"id": "7c1e4a2b-0000-4000-8000-000000000001",
"name": "Main Telnyx account",
"provider": "telnyx",
"status": "active"
},
"carrier_state": {
"state": "not_configured",
"telnyx_status": "active",
"current_connection_name": "Office PBX",
"previous_connection_name": null,
"blockers": [],
"notes": ["number_recording"],
"removed_at": null
},
"inbound_split": null,
"outbound_split": null,
"rent": { "included": true, "reason": "own_carrier", "monthly_price_cents": null, "last_charged_at": null },
"next_renewal_at": null
},
{
"id": "c0ffee00-0000-4000-8000-000000000003",
"number": "+97235550100",
"friendly_name": null,
"provider": "phone_system",
"status": "active",
"is_active": true,
"inbound_agent_id": null,
"outbound_agent_id": "9b29b0c9-0000-4000-8000-000000000001",
"sip_inbound_configured": false,
"sip_outbound_configured": false,
"country_code": "IL",
"monthly_cost": 0,
"created_at": "2026-10-27T09:00:00+00:00",
"ownership_verified_at": null,
"scheduled_release_at": null,
"phone_system": { "sip_endpoint_id": "5e9a7c21-3b4d-4f60-8a1c-2d3e4f5a6b7c", "sip_endpoint_name": "Front office PBX" },
"carrier_account": null,
"carrier_state": null,
"inbound_split": null,
"outbound_split": null,
"rent": { "included": true, "reason": "phone_system", "monthly_price_cents": null, "last_charged_at": null },
"next_renewal_at": null
}
]
}
| Field | What it tells you |
|---|---|
status | pending_requirements while an Israeli number is in regulatory review, active once it can carry calls, suspended if it has been stopped. A pending number cannot be bound to an agent yet. |
is_active | Whether you have the number switched on. Separate from status: a number can be active at the carrier and switched off here. |
inbound_agent_id / outbound_agent_id | The agent that answers, and the agent that places calls when POST /calls is sent without an agent_id. null means nothing is bound — an incoming call is not answered, and an outbound call with no agent_id is refused with 422 AGENT_NOT_RESOLVED. Agents have no direction of their own: these two fields are what make one answer or call. An external number takes an inbound agent too; it answers once the number is configured (carrier_state.state is ready). |
inbound_split / outbound_split | The A/B test on that direction, or null. percent is the share the second agent takes. |
provider | telnyx for a number bought from Yappr, external for a number in your own Telnyx account, phone_system for the business number of an extension that calls out through your own phone system (outbound calls through the extension): switched on and off on its SIP endpoint, never released here, no rent, and no calls in (they reach the endpoint’s own agent: PATCH with inbound_agent_id or inbound_split is 422 FIELD_NOT_ALLOWED). |
phone_system | For a phone_system number, the SIP endpoint it calls out through: sip_endpoint_id and sip_endpoint_name. null on every other number. |
carrier_account | For an external number, the carrier account it calls through: id, name, provider and status (untested, active or paused; disconnected on a number a disconnect kept for its history, whose account GET /carrier-accounts/{id} no longer finds, and whose id is what removes the number). null on a number bought from Yappr, and also for a key without carrier_accounts:read — provider: "external" still says the number is your own. |
carrier_state | For an external number, where it stands in your Telnyx account: state is ready (calls to it are answered here), not_configured (calls out work; calls in still ring at current_connection_name in Telnyx until you configure it with POST /carrier-accounts/{id}/numbers/{phone_number_id}/configure), blocked (not configured, and a Telnyx setting in blockers stops Yappr answering: forwarding_always, translated_number or tech_prefix), paused (its carrier account is paused), not_ready (Telnyx lists it with telnyx_status other than active), telnyx_gone (Telnyx no longer lists it: a sync found it gone, since removed_at) or removed (Removed from this workspace: a disconnect kept it for its call history, since removed_at, while it may still be in your Telnyx account; carrier_account.status is disconnected). The first that applies is the one shown. previous_connection_name is the connection the number goes back to if you stop answering it here. notes lists the Telnyx voice settings on it that configuring leaves on: number_recording, forwarding_on_failure or call_screening; when the number is switched off (is_active is false), it also says why: off_by_owner (an owner or admin switched it off), off_until_active (Telnyx did not list it as active; the sync switches it on once Telnyx does) or off_while_paused (its carrier account paused; turning the account back on switches it on). null on a number bought from Yappr, and for a key without carrier_accounts:read. |
ownership_verified_at | When your Telnyx key last proved an external number is in your account. null on such a number means that is not proven now (Telnyx no longer lists it as active, or its account was disconnected), and it cannot call until a test or a sync finds it again. Always null on a number bought from Yappr. |
monthly_cost | The number’s monthly price in cents, before VAT, as listed for it. Whether Yappr actually charges it is rent. null on an external number: Telnyx bills its rent to your own account. |
rent | Whether Yappr charges the number’s monthly rent, read from what was actually charged. included: false when a rent was charged in the last 40 days: monthly_price_cents is the monthly rent before VAT and last_charged_at its newest charge. Each renewal is a phone_number row on GET /billing/transactions, paid by card. included: true means no rent is being charged, and reason says why: own_carrier (a number in your own Telnyx account; Telnyx bills its rent), not_charged (a monthly subscription is on record, but it has charged nothing in the last 40 days), no_subscription (a Yappr number with no subscription — one Yappr set up for you) or phone_system (a number that calls out through your own phone system; Yappr rents nothing). |
next_renewal_at | When the rent next renews: monthly, on the day and time the subscription started (the last day of a shorter month). null when rent.included, and when the number’s release is scheduled (scheduled_release_at): it does not renew. GET /billing lists the same dates under upcoming_charges. |
scheduled_release_at | When a number you released goes: the end of the period already paid for. Until then it keeps working as before, and keep undoes the release. null when no release is scheduled. |
country_code | IL for an Israeli number. null on an external number outside Israel. |
sip_inbound_configured / sip_outbound_configured | Whether carrier-side routing is in place. Set once, at activation — not something you configure per agent change. On an external number, sip_inbound_configured says whether the number is on Yappr’s Call Control App in your Telnyx account, so calls to it reach Yappr. |
Errors
| HTTP | Body | When |
|---|---|---|
400 | {"error":"Remove foo. Listing phone numbers takes no query parameters.","code":"PHONE_NUMBERS_QUERY_INVALID"} | A query parameter this route does not read. It reads none; anything sent is refused by name rather than ignored. |
403 | {"error":"This key does not hold …","code":"INSUFFICIENT_SCOPE"} | The key does not hold phone_numbers:search. |
403 | {"error":"This API key is limited to 1 agent, and /phone-numbers belongs to the whole workspace, …","code":"API_KEY_AGENT_SCOPED"} | The key is limited to some agents. Numbers belong to the whole workspace, so such a key cannot list them, whatever its scopes. Use a key without an agent limit. |
500 | {"error":"Failed to list phone numbers"} | The read failed — the numbers, or whether their rent is charged. Retry; nothing was changed. |
Authorizations
Your Yappr API key (e.g. ypr_live_...). Generate one in the dashboard under Settings → API Keys. No key is 401 MISSING_KEY; a key that is not one of ours, or is revoked, is 401 INVALID_KEY; an expired one is 401 EXPIRED_KEY. A valid key without the scope an operation needs is 403 INSUFFICIENT_SCOPE on every operation, and the message names the scope. Every response, a 401 included, carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset: the budget is 60 requests a minute per API key. Every 429, whatever its code, carries Retry-After (whole seconds, never zero): the per-key budget's RATE_LIMIT asks for what is left of the minute, a route's daily cap (RATE_LIMITED) for the time until that cap resets. All four headers are listed in Access-Control-Expose-Headers, so a browser can read them. A path the API does not serve (an unknown sub-path, an id left empty) is 404 ROUTE_NOT_FOUND, and a method a served path does not take is 405 METHOD_NOT_ALLOWED with an Allow header; both are answered before any scope check, and nothing is read or changed. A trailing slash is ignored where it cannot be an id left empty (POST /calls/ is POST /calls) and refused where it can (GET /calls/). A doubled slash inside a path is merged into one before the request reaches the API (GET //calls is GET /calls).