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_idoremail. An unknown contact fails that row withnot_found; create contacts first with Bulk upsert. GRANTEDneedsproof_text(how and when the opt-in was collected, at least 10 characters). It never overrides an opt-out unlessgranted_atdates the opt-in after it (consent_revoked). In a workspace that requires double opt-in, a marketing grant fails withdouble_opt_in_required— start those confirmations one by one withenforced_doion the single route.REVOKEDwrites a revocation. SMS and RCS are one consent: revoking either revokes both, and aGRANTEDon either counts for both when sending.status: unchangedin 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
Where the consent comes from, free text up to 255 characters (e.g.
crm, shop_checkout).Response
"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).