ResoneraDocs
Do not call

Add do-not-call numbers

POST
/do-not-call

Adds up to 5,000 numbers. Numbers already on the list are unchanged. Pending contacts with these numbers are skipped.

Requires the calls:write scope.

Authorization

apiKey
headerX-API-Key<token>

Your API key, from Settings → API access in the dashboard.

Request Body

application/json
  1. body
phone_numbers*array<string>

Any common format: +919876543210, +91 98765 43210, 919876543210 or 9876543210. A number without a country code is taken as Indian (+91).

Items1 <= items <= 5000
reason?string
Lengthlength <= 500

Response Body

Added.

application/json
  1. response
added?integer
already_listed?integer
invalid?array<string>

Entries that are not valid phone numbers. These entries were not added.

curl -X POST "https://example.com/do-not-call" \  -H "Content-Type: application/json" \  -d '{    "phone_numbers": [      "+919876543210",      "98765 43211"    ],    "reason": "Asked by email"  }'
{  "added": 2,  "already_listed": 0,  "invalid": []}