Change a contact's consent
Either the legacy kind (opt_in / opt_out, which set both categories) or a status for one or both categories. Every change is kept in the consent history and the audit log. Opted-out contacts receive no business-initiated messages of that category from campaigns, the API or automations; docs/CONSENT.md has the rules.
Scope: contacts.update. Rate limit: 300 requests per minute per API key.
apiKey contacts.updateAuthorizationBearer <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: contacts.update
contactId*stringuuidapplication/json- body
Give kind (legacy, both categories) or status.
category?string"all""marketing""service""all"kind?stringLegacy: opt_in / opt_out sets both categories to opted_in / opted_out.
"opt_in""opt_out"note?stringThe reason; kept in the history.
length <= 500status?ConsentStatus"opted_in""unknown""opt_out_requested""opted_out""resubscribed"Contact after the change
application/json- response
data*meta*curl -X POST 'https://app.messora.tech/api/v1/contacts/497f6eca-6276-4993-bfeb-53cbbbba6f08/consent' \ -H 'Content-Type: application/json' \ -d '{ "category": "marketing", "note": "Asked by phone not to receive promotions", "status": "opted_out"}'{ "data": { "attributes": { "city": "İstanbul", "customer_no": "C-10293" }, "consent": { "marketing": { "reason": null, "source": "import", "status": "opted_in", "updated_at": "2026-10-01T10:00:00Z" }, "meta_marketing_stopped_at": null, "service": { "reason": null, "source": null, "status": "unknown", "updated_at": null }, "undeliverable_at": null, "undeliverable_code": null }, "created_at": "2026-09-12T07:30:00Z", "created_by_inbound_at": null, "email": "ayse@example.com", "group_ids": [ "019a8c2e-4f1b-7a0d-9c3d-5e7a1000000d" ], "id": "019a8c2e-4f1b-7a09-9c3d-5e7a10000009", "last_inbound_at": "2026-11-25T08:41:00Z", "name": "Ayşe Yılmaz", "opted_out": false, "opted_out_at": null, "phone": "+905321234567", "profile_name": "Ayşe", "profile_status": null, "source": "api", "tags": [ { "color": "#16a34a", "id": "019a8c2e-4f1b-7a0c-9c3d-5e7a1000000c", "name": "vip" } ], "updated_at": "2026-11-25T08:41:00Z", "var1": "Gold", "var2": null, "var3": null, "var4": null, "var5": null }, "meta": { "request_id": "019a8c2e-4f1b-7fff-9c3d-5e7a1000ffff" }}Allow or disable the AI for a contact PUT
With disabled: true the AI never answers or drafts for the contact; its conversations the AI owns go to the team's pool (a handoff with reason manual) and suggestions stop. Audited. Scope: contacts.update. Rate limit: 300 requests per minute per API key.
The contact's consent history, newest first (at most 100) GET
Every consent change of the contact (opt-in, opt-out, requests detected from keywords, Meta stops) with its source and note, newest first, at most 100. Scope: contacts.read. Rate limit: 300 requests per minute per API key.