Voicecall optouts API
4 operations. Back to the API overview. Examples use synthetic data.
Returns how many numbers are on the reminder call opt-out list (never the numbers)
GET /admin/v1/voice-calls/opt-outs
Returns how many numbers are on the reminder call opt-out list (never the numbers).
Needs the permission: config:history.
Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
from_calls | integer | optional | FromCalls were reported opted out by the customer's agent. |
from_console | integer | optional | FromConsole were added by an administrator. |
{
"from_calls": 1,
"from_console": 1
}Other responses
401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request GET \
--header "Authorization: Bearer $ID_TOKEN" \
"https://YOUR-CONSOLE-HOST/admin/v1/voice-calls/opt-outs"Puts one number on the list
POST /admin/v1/voice-calls/opt-outs
Puts one number on the list: the customer's voice agent is never asked to call it again from any destination.
Needs the permission: config:write.
Request body
| Field | Type | Presence | Description |
|---|---|---|---|
phone | string | optional | Phone is a US number (ten digits, with or without +1 and separators). |
{
"phone": "example"
}Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
changed | boolean | optional | Changed is false when the list already said so (nothing written). |
opted_out | boolean | optional | - |
{
"changed": true,
"opted_out": true
}Other responses
400Bad Request401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request POST \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{"phone":"example"}' \
"https://YOUR-CONSOLE-HOST/admin/v1/voice-calls/opt-outs"Takes one number off the list (the patient asked to be called again)
DELETE /admin/v1/voice-calls/opt-outs
Takes one number off the list (the patient asked to be called again). A person in the console only: refused through Ask AI and MCP agents.
Needs the permission: config:write.
Request body
| Field | Type | Presence | Description |
|---|---|---|---|
phone | string | optional | Phone is a US number (ten digits, with or without +1 and separators). |
{
"phone": "example"
}Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
changed | boolean | optional | Changed is false when the list already said so (nothing written). |
opted_out | boolean | optional | - |
{
"changed": true,
"opted_out": true
}Other responses
400Bad Request401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request DELETE \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{"phone":"example"}' \
"https://YOUR-CONSOLE-HOST/admin/v1/voice-calls/opt-outs"Reports whether one number is on the list (audited; the number itself is never logged or audited)
POST /admin/v1/voice-calls/opt-outs/check
Reports whether one number is on the list (audited; the number itself is never logged or audited).
Needs the permission: config:write.
Request body
| Field | Type | Presence | Description |
|---|---|---|---|
phone | string | optional | Phone is a US number (ten digits, with or without +1 and separators). |
{
"phone": "example"
}Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
changed | boolean | optional | Changed is false when the list already said so (nothing written). |
opted_out | boolean | optional | - |
{
"changed": true,
"opted_out": true
}Other responses
400Bad Request401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request POST \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{"phone":"example"}' \
"https://YOUR-CONSOLE-HOST/admin/v1/voice-calls/opt-outs/check"Something unclear or missing? Ask Help in the Velacent Bridge console; answers link to the right screen. How support works.