Records the consent your system holds for up to 1,000 contacts per call, with a result per row. Needs the contacts:write permission. The rules are those of POST /v1/contacts/{id}/consent — nothing is weaker in bulk:
  • Each row names its contact with exactly one of contact_id, external_id or email. An unknown contact fails that row with not_found; create contacts first with Bulk upsert.
  • GRANTED needs proof_text (how and when the opt-in was collected, at least 10 characters). It never overrides an opt-out unless granted_at dates the opt-in after it (consent_revoked). In a workspace that requires double opt-in, a marketing grant fails with double_opt_in_required — start those confirmations one by one with enforced_doi on the single route.
  • REVOKED writes a revocation. SMS and RCS are one consent: revoking either revokes both, and a GRANTED on either counts for both when sending.
  • status: unchanged in the result means the newest record already said so; nothing new is written and no webhook fires.
  • Rows are applied each on its own, a few at a time; a failed row does not stop the others. Rows for the same contact are applied one after the other, in request order — the last one is the current state. Results come back in request order. More than 1,000 rows: 422 limit_exceeded, nothing applied.
  • The IP address stored with each record (as a hash) is that of the calling server, not of the person.

Request

array
required
1 to 1,000 rows.
string
required
Exactly one of them.
string
required
EMAIL, SMS or RCS.
string
required
NEWSLETTER or MESSAGE.
string
required
GRANTED or REVOKED.
string
required
Where the consent comes from, free text up to 255 characters (e.g. crm, shop_checkout).
string
Required for GRANTED.
string
ISO 8601 time the opt-in was collected. Needed to grant again after an opt-out.

Response

A failed row carries "status": "failed" and error with the envelope the single route would have answered (validation_error, validation_failed, not_found, consent_revoked, double_opt_in_required).