---
title: "Contact consent changed"
method: POST
path: "contact.consent_changed"
---

# Contact consent changed

`POST contact.consent_changed` (webhook)

## Payload

- object
  - `type` 'contact.consent_changed', required
  - `timestamp` string, required
  - `data` object, required
    - `organizationId` string, required
    - `contactId` string, required
    - `identity` object, required
      - `id` string, required
      - `type` 'email' | 'phone', required
      - `identifier` string, required
    - `channel` 'sms' | 'whatsapp' | 'email', required
    - `status` 'opted_in' | 'opted_out', required
    - `previousStatus` 'opted_in' | 'opted_out', nullable, required
    - `source` string, required
    - `capturedAt` string, required

## Acknowledgement `200`

Any 2xx status acknowledges the event.

---

[API](https://skmtc.dev/samva/apis/samva-api.md) · [All operations](https://skmtc.dev/samva/apis/samva-api/llms.txt) · [OpenAPI document](https://skmtc.dev/samva/apis/samva-api/revisions/a99408542cc3?raw)
