Skip to Content
Platform & ComplianceConsent & Opt-Outs

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.

# 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, or QUIT as a standalone message on WhatsApp automatically records opted_out (source: "inbound_keyword").
  • Sending START, UNSTOP, or YES only reverses an opt-out that originated from an inbound_keyword—never an opt-out recorded via the API.

Owners and admins configure the enforcement policy in organization settings:

PolicyBehavior
record_only (default)Records consent and opt-outs, never blocks outbound sends.
block_opted_outRefuses outbound sends to anyone whose status is opted_out (error_code: "consent_blocked").
require_opt_inRefuses 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