Tone docs
API referenceCompliance

A recipient opted out

Revokes every active consent for the number and suppresses it for the 90-day re-consent lockout, in one transaction.

Requires the write scope. A key with less gets 403 insufficient_scope.

POST
/v1/consent/opt-out
AuthorizationBearer <token>

Authorization: Bearer tone_live_… or tone_test_…. The prefix IS the environment: a test key reaches only the sandbox, and no request field bridges the two.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/consent/opt-out" \  -H "Content-Type: application/json" \  -d '{    "e164": "+919876543210",    "reason": "Said \\"do not call me again\\" during the call."  }'
{  "data": {    "revoked": 0  }}
Was this page helpful?