Consent & Opt-Outs
msend records whether each person has agreed to be messaged, scoped per channel kind (so an opt-out on one WhatsApp number applies across all WhatsApp numbers in your organization).
Every consent change is stored with its source (api, inbound_keyword, import, or form), timestamp, and an append-only audit history. Collecting consent is your application’s responsibility; msend records and enforces it.
Managing Consent via API
# Record an opt-in or opt-out
curl -X PUT https://app.msend.dev/api/v1/consents \
-H "Authorization: Bearer msk_xxx" \
-H "Content-Type: application/json" \
-d '{
"kind": "whatsapp",
"external_id": "+14155550100",
"status": "opted_in",
"source": "form",
"note": "Checked SMS/WhatsApp box at checkout"
}'
# Query consent status
curl "https://app.msend.dev/api/v1/consents?kind=whatsapp&external_id=%2B14155550100" \
-H "Authorization: Bearer msk_xxx"Automatic Keyword Handling (WhatsApp)
- Sending
STOP,STOPALL,UNSUBSCRIBE,CANCEL,END, orQUITas a standalone message on WhatsApp automatically recordsopted_out(source: "inbound_keyword"). - Sending
START,UNSTOP, orYESonly reverses an opt-out that originated from aninbound_keyword—never an opt-out recorded via the API.
Organization Consent Policy
Owners and admins configure the enforcement policy in organization settings:
| Policy | Behavior |
|---|---|
record_only (default) | Records consent and opt-outs, never blocks outbound sends. |
block_opted_out | Refuses outbound sends to anyone whose status is opted_out (error_code: "consent_blocked"). |
require_opt_in | Refuses outbound sends unless the recipient has an explicit opted_in record. |
Meta’s own WhatsApp rules (such as the 24-hour window) apply regardless of your organization’s consent policy.
Last updated on