curl --request GET \
--url https://api.goyappr.com/sip-endpoints \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.goyappr.com/sip-endpoints"
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/sip-endpoints', 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/sip-endpoints",
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/sip-endpoints"
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/sip-endpoints")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.goyappr.com/sip-endpoints")
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",
"name": "Main office PBX",
"auth_mode": "credentials",
"slug": "after-hours-bz3r3mtypuwuw8tpdw3x392s",
"sip_uri": "sip:after-hours-bz3r3mtypuwuw8tpdw3x392s@yappr-byoc.sip.telnyx.com",
"inbound_agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"is_active": true,
"last_call_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"sip_username": "yp4k7d2m9x1q8w3z",
"max_concurrent_calls": 5,
"sip_connection": {
"server": "sip.telnyx.com",
"alternate_servers": [
"sip.telnyx.eu",
"sip.telnyx.me"
],
"transports": [
{
"protocol": "tls",
"port": 5061,
"recommended": true
},
{
"protocol": "tcp",
"port": 5060
},
{
"protocol": "udp",
"port": 5060
}
],
"registration": "optional"
},
"register": {
"server": "sip1.example.net:5060",
"username": "101",
"auth_username": "<string>",
"transport": "udp",
"region": "middle_east",
"pbx_feature_code": "##",
"pbx_feature_code_hangup_after_secs": 4,
"status": "registered",
"status_detail": "<string>",
"status_checked_at": "2023-11-07T05:31:56Z",
"last_activity_at": "2026-11-10T15:25:00Z",
"last_activity_kind": "inbound_call",
"allow_list": {
"sip_ip": "192.76.120.75",
"sip_ports": [
5060,
5061
],
"rtp_ports": "16384-32768",
"note": "allow these on your phone system"
},
"outbound": {
"enabled": true,
"caller_number": "+97235550100",
"phone_number_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dial_format": "national",
"dial_prefix": "9",
"paused": {
"reason": "phone_system_refused",
"since": "2023-11-07T05:31:56Z",
"last_sip_code": "403"
}
}
},
"allowed_source_ips": [
"203.0.113.0/24"
],
"password_rotated_at": null
}
],
"total": 123,
"limit": 123,
"offset": 123
}{
"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>"
}
]
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}List SIP Endpoints
The workspace’s SIP endpoints, newest first: username-and-password trunks,
SIP address endpoints and extension endpoints. They let your own phone
system send calls to a Yappr agent, with no Yappr phone number. A trunk’s
password is never listed; it is returned only by create and by
rotate-password, and an
extension’s password is never returned at all. An extension endpoint
carries a register object with its settings and register.status;
Yappr re-reads the status from its carrier when it is more than 15 seconds
old, but not for a list of more than 20 extension endpoints, so check
register.status_checked_at. Requires sip_endpoints:read.
A SIP address endpoint’s sip_uri (and the slug inside it) is its only
credential, and a trunk’s sip_username is half of its, so they go only
to a key that also holds sip_endpoints:manage. A key with
sip_endpoints:read alone (the Read-only preset) gets every endpoint with
slug, sip_uri and sip_username set to null.
Paging by offset is not a snapshot: an endpoint created while you page
repeats a row on the next page, and one deleted skips one. There is no
cursor yet; page until you have total, drop repeats by id, and read
once more if total changed.
curl --request GET \
--url https://api.goyappr.com/sip-endpoints \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.goyappr.com/sip-endpoints"
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/sip-endpoints', 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/sip-endpoints",
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/sip-endpoints"
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/sip-endpoints")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.goyappr.com/sip-endpoints")
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",
"name": "Main office PBX",
"auth_mode": "credentials",
"slug": "after-hours-bz3r3mtypuwuw8tpdw3x392s",
"sip_uri": "sip:after-hours-bz3r3mtypuwuw8tpdw3x392s@yappr-byoc.sip.telnyx.com",
"inbound_agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"is_active": true,
"last_call_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"sip_username": "yp4k7d2m9x1q8w3z",
"max_concurrent_calls": 5,
"sip_connection": {
"server": "sip.telnyx.com",
"alternate_servers": [
"sip.telnyx.eu",
"sip.telnyx.me"
],
"transports": [
{
"protocol": "tls",
"port": 5061,
"recommended": true
},
{
"protocol": "tcp",
"port": 5060
},
{
"protocol": "udp",
"port": 5060
}
],
"registration": "optional"
},
"register": {
"server": "sip1.example.net:5060",
"username": "101",
"auth_username": "<string>",
"transport": "udp",
"region": "middle_east",
"pbx_feature_code": "##",
"pbx_feature_code_hangup_after_secs": 4,
"status": "registered",
"status_detail": "<string>",
"status_checked_at": "2023-11-07T05:31:56Z",
"last_activity_at": "2026-11-10T15:25:00Z",
"last_activity_kind": "inbound_call",
"allow_list": {
"sip_ip": "192.76.120.75",
"sip_ports": [
5060,
5061
],
"rtp_ports": "16384-32768",
"note": "allow these on your phone system"
},
"outbound": {
"enabled": true,
"caller_number": "+97235550100",
"phone_number_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dial_format": "national",
"dial_prefix": "9",
"paused": {
"reason": "phone_system_refused",
"since": "2023-11-07T05:31:56Z",
"last_sip_code": "403"
}
}
},
"allowed_source_ips": [
"203.0.113.0/24"
],
"password_rotated_at": null
}
],
"total": 123,
"limit": 123,
"offset": 123
}{
"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>"
}
]
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}total for paging.
auth_mode tells them apart: a username-and-password trunk carries its
sip_username, max_concurrent_calls, sip_connection and password_rotated_at
(when its password last changed, null until the first
rotate), a SIP address
endpoint its sip_uri, and an extension endpoint (register) its register object.
A trunk’s password is never listed: it is returned only when
the trunk is created and by rotate-password.
An extension’s password is never returned at all.
Requires sip_endpoints:read.
The list takes limit (1 to 200, default 50; a larger value is capped at 200) and
offset (default 0), both whole numbers, and name: only the endpoints with exactly
that name (letter case included). Names are not unique, so name can match more than
one. Anything else, such as a filter like status, is refused with 400 SIP_ENDPOINT_QUERY_INVALID rather than answered with
every endpoint. So is a parameter sent twice (?limit=10&limit=20 would have used
one of the two) or with no value (?limit=). issues[] names each parameter at
fault, all of them in one answer, with code query_param_unknown,
query_param_repeated, query_param_blank or query_param_invalid (limit=ten).
Paging by offset is not a snapshot. The list is newest first, so an endpoint
created while you page pushes the rest down a row (the next page repeats one), and
one deleted pulls them up (the next page skips one). There is no cursor yet. To read
every endpoint, page until you have total, drop repeats by id, and read the list
once more if total changed while you paged. To find one endpoint, use name or
get it by id.
A SIP address endpoint’s sip_uri (and the slug inside it) is its only
credential (see
what protects a SIP address),
and a trunk’s sip_username is half of its, so they go only to a key that also
holds sip_endpoints:manage. A key with sip_endpoints:read alone, such as one made
from the Read-only preset, gets every endpoint with slug, sip_uri and
sip_username set to null: it sees which endpoints exist and which agent answers
each, but can’t call them.
An extension endpoint’s register.status (pending, registering, registered,
failed, disabled or unknown) is re-read from Yappr’s carrier when it is more
than 15 seconds old. A list of more than 20 extension endpoints serves the stored
values instead, so check register.status_checked_at, the time Yappr last asked the
carrier; read one endpoint with
GET /sip-endpoints/{id} for a fresh status.
unknown with a register.status_detail means the carrier’s status cannot be read
right now. It is not a failure: do not treat the extension as down, and read again later.
While it is, register.last_activity_at and register.last_activity_kind name the
newest call that went through the extension in the last 24 hours and after its settings
last changed, if there was one (what they mean); they
are null otherwise.
The register object is your own phone system’s data, so a key with
sip_endpoints:read sees it. The carrier’s connection and the endpoint’s internal
address are never returned.
curl "https://api.goyappr.com/sip-endpoints?limit=50&offset=0" \
-H "Authorization: Bearer ypr_live_..."
{
"data": [
{
"id": "8d0c5f4e-2b1a-4c3d-9e8f-7a6b5c4d3e2f",
"name": "Main office PBX",
"auth_mode": "credentials",
"slug": null,
"sip_uri": null,
"sip_username": "yp4k7d2m9x1q8w3z",
"max_concurrent_calls": 5,
"sip_connection": {
"server": "sip.telnyx.com",
"alternate_servers": ["sip.telnyx.eu", "sip.telnyx.me"],
"transports": [
{ "protocol": "tls", "port": 5061, "recommended": true },
{ "protocol": "tcp", "port": 5060 },
{ "protocol": "udp", "port": 5060 }
],
"registration": "optional"
},
"inbound_agent_id": "3f1c2b9e-7a4d-4e21-9c55-1b2d3e4f5a6b",
"is_active": true,
"last_call_at": "2026-10-01T14:05:12Z",
"created_at": "2026-10-01T12:00:00Z",
"updated_at": "2026-10-02T08:00:00Z",
"password_rotated_at": "2026-10-02T08:00:00Z"
},
{
"id": "5e9a7c21-3b4d-4f60-8a1c-2d3e4f5a6b7c",
"name": "Hosted PBX extension",
"auth_mode": "register",
"slug": null,
"sip_uri": null,
"max_concurrent_calls": 2,
"inbound_agent_id": "3f1c2b9e-7a4d-4e21-9c55-1b2d3e4f5a6b",
"is_active": true,
"last_call_at": null,
"created_at": "2026-10-04T12:00:00Z",
"updated_at": "2026-10-04T12:00:00Z",
"register": {
"server": "sip1.example.net",
"username": "101",
"auth_username": null,
"transport": "udp",
"region": "middle_east",
"pbx_feature_code": "##",
"pbx_feature_code_hangup_after_secs": null,
"outbound": null,
"status": "registered",
"status_detail": null,
"status_checked_at": "2026-10-04T12:06:30Z",
"last_activity_at": null,
"last_activity_kind": null,
"allow_list": {
"sip_ip": "192.76.120.75",
"sip_ports": [5060, 5061],
"rtp_ports": "16384-32768",
"note": "allow these on your phone system"
}
}
},
{
"id": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d",
"name": "After-hours",
"auth_mode": "uri",
"slug": "after-hours-bz3r3mtypuwuw8tpdw3x392s",
"inbound_agent_id": "3f1c2b9e-7a4d-4e21-9c55-1b2d3e4f5a6b",
"is_active": true,
"last_call_at": null,
"allowed_source_ips": null,
"created_at": "2026-09-20T09:30:00Z",
"updated_at": "2026-09-20T09:30:00Z",
"sip_uri": "sip:after-hours-bz3r3mtypuwuw8tpdw3x392s@yappr-byoc.sip.telnyx.com"
}
],
"total": 3,
"limit": 50,
"offset": 0
}
Errors
| Status | code | Meaning |
|---|---|---|
| 400 | SIP_ENDPOINT_QUERY_INVALID | A query parameter other than limit, offset and name, one sent twice or with no value, or a limit or offset that is not a whole number (limit at least 1). issues[] names each; error says the first. |
| 403 | INSUFFICIENT_SCOPE | The API key does not hold sip_endpoints:read, and the message names it. |
| 500 | INTERNAL_ERROR | Yappr could not load your SIP endpoints. Try again. |
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).