Add to the do-not-call list
add_to_dncAdd phone numbers to this account's do-not-call list (DNC) - calls to them via make_call or create_relay_lease will then be blocked. Send exactly one of e164 (one number; returns added: true and e164) or e164s (1 to 500 numbers in one call, for example an import of unsubscribed contacts; returns addedCount, alreadyOnListCount, rejectedCount and rejected). With e164s an entry that is not a valid phone number is reported in rejected (position, input, reason invalid_number) while the valid entries of the same call are still added. Adding is idempotent: a number already on the list is only counted in alreadyOnListCount. Same data as POST /v1/dnc (response schema in /openapi.json).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "add_to_dnc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| e164 | No | One phone number to add to the do-not-call list, in E.164 format with the country code, for example +420777123456. Send either this or e164s, not both. | |
| e164s | No | Up to 500 phone numbers to add in one call, in E.164 format with the country code, for example ["+420777123456", "+420777654321"]. Send this instead of e164, not together with it. A number that cannot be read is listed in rejected, the others are still added. |