curl --request GET \
--url https://api.goyappr.com/do-not-call \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.goyappr.com/do-not-call"
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/do-not-call', 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/do-not-call",
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/do-not-call"
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/do-not-call")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.goyappr.com/do-not-call")
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",
"company_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"phone_number": "+972501234567",
"reason": "<string>",
"source": "manual",
"expires_at": "2023-11-07T05:31:56Z",
"active": true,
"agents": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"execution_version": "legacy",
"published_workflow_revision_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"live": true,
"inbound": {
"phone_numbers": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"number": "+972501234567",
"friendly_name": "<string>"
}
],
"sip_endpoints": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
]
},
"type": "workflow",
"flow_config": {
"nodes": [
{
"id": "<string>",
"type": "start",
"name": "<string>",
"position": {
"x": 123,
"y": 123
},
"agent_speaks_first": true,
"greeting": "<string>",
"is_literal": false,
"next_step_id": "<string>",
"auto_advance": true
}
],
"flow_config_version": "1",
"metadata": {
"custom_metadata_keys": [
"<string>"
]
}
},
"system_prompt": "<string>",
"description": "<string>",
"voice": "Michal",
"model": "gemini-3.1-flash-live",
"resolved_model": "gemini-3.1-flash-live",
"background_sound": "call_center",
"background_sound_volume": 0.3,
"language": "he",
"temperature": 1,
"greeting_message": "<string>",
"agent_speaks_first": true,
"vad_stop_secs": 0.5,
"vad_start_secs": 0.2,
"vad_confidence": 0.7,
"silence_timeout_secs": 60,
"idle_reminder_count": 0,
"idle_reminder_text": "<string>",
"max_continuous_speech_secs": 120,
"max_call_duration_secs": 600,
"lead_memory_enabled": true,
"noise_cancellation_enabled": true,
"is_active": true,
"webhook_url": "<string>",
"webhook_url_path_withheld": true,
"webhook_events": [
"call.started"
],
"configured_webhook_header_names": [
"Authorization",
"X-Source"
],
"tools": [
{}
],
"extraction_parameters": [
{
"name": "customerName",
"description": "The caller's full name as mentioned during the conversation",
"type": "number"
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_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>"
}
]
}List DNC entries
Returns every Do-Not-Call entry for your company, ordered by most-recently
added. Pass ?phone=+972501234567 (any common format works — it’s normalized)
to look up a single entry instead of listing all.
Entries whose expires_at has passed are returned too, in the list and by a
lookup, until they are deleted. active says whether an entry blocks calls now.
curl --request GET \
--url https://api.goyappr.com/do-not-call \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.goyappr.com/do-not-call"
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/do-not-call', 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/do-not-call",
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/do-not-call"
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/do-not-call")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.goyappr.com/do-not-call")
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",
"company_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"phone_number": "+972501234567",
"reason": "<string>",
"source": "manual",
"expires_at": "2023-11-07T05:31:56Z",
"active": true,
"agents": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"execution_version": "legacy",
"published_workflow_revision_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"live": true,
"inbound": {
"phone_numbers": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"number": "+972501234567",
"friendly_name": "<string>"
}
],
"sip_endpoints": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
]
},
"type": "workflow",
"flow_config": {
"nodes": [
{
"id": "<string>",
"type": "start",
"name": "<string>",
"position": {
"x": 123,
"y": 123
},
"agent_speaks_first": true,
"greeting": "<string>",
"is_literal": false,
"next_step_id": "<string>",
"auto_advance": true
}
],
"flow_config_version": "1",
"metadata": {
"custom_metadata_keys": [
"<string>"
]
}
},
"system_prompt": "<string>",
"description": "<string>",
"voice": "Michal",
"model": "gemini-3.1-flash-live",
"resolved_model": "gemini-3.1-flash-live",
"background_sound": "call_center",
"background_sound_volume": 0.3,
"language": "he",
"temperature": 1,
"greeting_message": "<string>",
"agent_speaks_first": true,
"vad_stop_secs": 0.5,
"vad_start_secs": 0.2,
"vad_confidence": 0.7,
"silence_timeout_secs": 60,
"idle_reminder_count": 0,
"idle_reminder_text": "<string>",
"max_continuous_speech_secs": 120,
"max_call_duration_secs": 600,
"lead_memory_enabled": true,
"noise_cancellation_enabled": true,
"is_active": true,
"webhook_url": "<string>",
"webhook_url_path_withheld": true,
"webhook_events": [
"call.started"
],
"configured_webhook_header_names": [
"Authorization",
"X-Source"
],
"tools": [
{}
],
"extraction_parameters": [
{
"name": "customerName",
"description": "The caller's full name as mentioned during the conversation",
"type": "number"
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_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>"
}
]
}?phone=... to look up a single entry instead of listing all. The number is normalized before lookup, so +972501234567, 972501234567, and 0501234567 all resolve to the same row.
Active or lapsed. An entry whose expires_at has passed no longer blocks calls, but it is not removed: it stays in the list, and a ?phone= lookup still returns it, until you delete it or give it a new expires_at. Read active rather than comparing expires_at with your own clock - true means calls to the number are blocked now, false means the block has lapsed.
Required scope: do_not_call:read.
Example request
# List all
curl "https://api.goyappr.com/do-not-call" \
-H "Authorization: Bearer $YAPPR_API_KEY"
# Lookup by phone
curl "https://api.goyappr.com/do-not-call?phone=+972501234567" \
-H "Authorization: Bearer $YAPPR_API_KEY"
Example response
{
"data": [
{
"id": "8c0e0f8a-1c11-4d3a-9a02-2b1e9d2f0001",
"company_id": "00000000-0000-4000-8000-0000000000c1",
"phone_number": "+972501234567",
"reason": "Customer requested removal",
"source": "api",
"expires_at": null,
"active": true,
"agents": [],
"created_at": "2026-05-10T08:14:22.123Z"
}
]
}
?phone=... is supplied the response is the single entry object directly (not wrapped in data). A lapsed block looks like this:
{
"id": "8c0e0f8a-1c11-4d3a-9a02-2b1e9d2f0002",
"company_id": "00000000-0000-4000-8000-0000000000c1",
"phone_number": "+972501234568",
"reason": "Asked for a week off",
"source": "api",
"expires_at": "2026-09-23T20:00:56+00:00",
"active": false,
"agents": [],
"created_at": "2026-09-16T20:00:56.000Z"
}
Errors
| HTTP | Code | When |
|---|---|---|
| 400 | DO_NOT_CALL_REQUEST_INVALID | A query parameter other than phone, or phone sent twice or empty. The list has no paging parameters: it returns every entry. The same code refuses a phone that is not a phone number. |
| 403 | INSUFFICIENT_SCOPE | API key lacks do_not_call:read. |
| 404 | — | ?phone=... was supplied and the number is not on the list. |
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).