Skip to Content
Opt-outs

Record an opt-out

POST
/partner/opt-outs

Stops sends to phone from every sub-customer (no customer given) or from one (customer_id or external_id). Recording one that exists returns it unchanged (200); a new one is 201 and fires recipient.opted_out.

Scope: partner.manage. Rate limit: 300 requests per minute per API key.

Authorization

apiKey partner.manage
headerAuthorizationBearer <msk_live_…>

An API key created under API keys in the panel: Authorization: Bearer msk_live_…. The key's scopes decide which operations it may call.

Scope: partner.manage

Header Parameters

Idempotency-Key?string

Retry-safe POST: a repeated request with the same key replays the first successful response for 24 hours. Rejected requests (4xx/5xx) are not remembered, so a corrected request may reuse the key.

Length8 <= length <= 200

Request Body

application/json
  1. body
customer_id?string

Omit both customer fields for a global opt-out.

Formatuuid
external_id?string
Length1 <= length <= 128
phone*string
Length7 <= length <= 32
reason?string
Lengthlength <= 500

Response Body

Already recorded

application/json
  1. response
data*
meta*
Example Request
curl -X POST 'https://app.messora.tech/api/v1/partner/opt-outs' \  -H 'Content-Type: application/json' \  -d '{  "external_id": "acc-1042",  "phone": "+905551112233",  "reason": "Asked by phone"}'
Example Response
{  "data": {    "created_at": "2026-12-02T09:00:00Z",    "customer": null,    "id": "019a8c2e-4f1b-7a00-9c3d-5e7a10000601",    "phone": "+905551112233",    "reason": "Keyword: İPTAL",    "source": "keyword"  },  "meta": {    "request_id": "019a8c2e-4f1b-7fff-9c3d-5e7a1000ffff"  }}