NEWSLETTER, an RCS PROMOTION) without a GRANTED record returns 422 missing_consent, and a campaign skips the person; a transactional MESSAGE needs no opt-in and is blocked only by a revocation. SMS and RCS are one consent. For RCS, the networks also expect a person to have agreed to hear from the brand before any message — keep the proof.
The consent object
Overall consent state.
When
enforced_doi: true, status only transitions to GRANTED after doi_status reaches DOI_ACCEPTED.Where the consent signal came from (e.g.
landing_page, api, checkout, crm_sync). Free-form string for your audit reference.Human-readable description of the consent event — form URL, checkbox label, email subject. Stored for GDPR audit. Max 5,000 characters.
Whether Double Opt-In confirmation is required before this consent becomes
GRANTED.false(default) — single opt-in. Status moves directly toGRANTEDon creation.true— DOI required. Status staysPENDINGuntil the contact confirms, at which point it advances toGRANTEDanddoi_statusis set toDOI_ACCEPTED.
The channel used to deliver the DOI confirmation message:
EMAIL (SMS and RCS answer 503 not_available). null when enforced_doi is false.ISO 8601 timestamp when consent was granted (for DOI flows, this stamps when
DOI_ACCEPTED is reached). null while PENDING.DOI lifecycle
Whenenforced_doi: true, consent follows a two-step confirmation process:
GRANTED consent unlocks message sends. A contact in PENDING state cannot receive NEWSLETTER sends.
Endpoints
GET /v1/contacts//consent
Returns all consent records for a contact across all channels and message types.- 200 OK
- 404 Not found
POST /v1/contacts//consent
Records consent for a specific channel and message type. Every call that changes something writes a new record; the newest record for a channel and message type is the current state, older ones stay as history. SMS and RCS share one consent: a revocation is written for both, and a grant on either counts for both when sending.- If the newest record is already
GRANTED, nothing is written and the existing record is returned with200. status: "GRANTED"is a grant stated by your system, so it needsproof_text, it does not override an opt-out (see409below), and it is refused forNEWSLETTERwhen the workspace requires double opt-in (see422below).status: "PENDING"withenforced_doi: truestarts a double opt-in: the contact gets a confirmation email and grants the consent by clicking the link.
Idempotency-Key header with every call. After a 5xx, a timeout or a network error, send the same request again with the same key: it runs again and finds what the first attempt did. A record that was already written is not written a second time, a confirmation email that already went out is not sent again (the answer is then 200 with that record), and one that did not go out is sent now. A repeat of a call that succeeded returns the stored answer with Idempotent-Replayed: true. See Idempotency.
GRANTED (single opt-in) or PENDING (start a DOI flow). When enforced_doi: true, always pass PENDING — the platform advances to GRANTED after confirmation.How and when the consent was collected — include the form URL and checkbox label text. Required when
status is GRANTED: at least 10 characters, otherwise the request is refused with 422. Optional for a double opt-in request. Max 5,000 characters.ISO 8601 time with offset (for example
2026-03-28T09:00:00Z) at which the opt-in was collected on your side. Only needed to grant consent again after an opt-out: the grant is accepted when granted_at is later than the opt-out and not in the future.Set to
true to require Double Opt-In confirmation before consent becomes GRANTED. When enabled, the platform sends a confirmation email to the contact (doi_channel: EMAIL; SMS and RCS answer 503 not_available) and sets doi_status: DOI_SEND.Required when
enforced_doi: true. Channel used to deliver the DOI confirmation message. Use EMAIL: the contact must have an email address and the workspace an approved email channel (422 otherwise). RCS and SMS are accepted by the schema but answered with 503 not_available — confirmations are sent by email only.- Single opt-in (no DOI)
- Double opt-in (DOI)
Consent is immediately
GRANTED.- 201 Created — single opt-in
- 201 Created — DOI initiated
- 200 OK — nothing new
- 400 Validation error
- 404 Not found
- 409 Opted out
- 422 Unprocessable
DELETE /v1/contacts//consent/
Revokes a specific consent record. The record is not hard-deleted —status becomes REVOKED and revoked_at is stamped. Full audit trail is preserved.
After revocation the contact is immediately suppressed from sends using that channel and message type.
- 200 OK
- 404 Not found
GDPR compliance notes
Arowana stores an
ip_hash of the request IP automatically on every consent write. This provides a cryptographic audit fingerprint without storing raw IP addresses. You do not send this field. On an API call it is the IP address of your server, not of the person — describe where the person opted in with source and proof_text.- Audit trail — while the contact exists, its consent records are kept: a revocation stamps
revoked_atand setsstatus: REVOKED, and the full history stays readable. Deleting the contact deletes the records with it (next point) — export the history first if you need it as proof later. - DOI as best practice — use
enforced_doi: trueforNEWSLETTERconsent in jurisdictions where double opt-in is required (e.g. Germany). For action-based (MESSAGE) consent tied to a transaction, single opt-in withproof_textis typically sufficient. - Send-time enforcement —
NEWSLETTERsends need aGRANTEDrecord (withdoi_status: DOI_ACCEPTEDif DOI was enforced);PENDINGcontacts cannot receiveNEWSLETTERsends.MESSAGEsends need no opt-in — only a newest record that isREVOKEDblocks them. RCS through the API is decided bytraffic_type:PROMOTIONneeds aGRANTEDSMS / RCSNEWSLETTERrecord whatever themessage_type; after an opt-out (STOP, unsubscribe, a revocation) onlyAUTHENTICATIONstill goes out,ACKNOWLEDGEMENTas the one answer to the person’s keyword, andSERVICEREQUESTinside a conversation the person started afterwards; an RCSSTOPfrom a number that isn’t a contact yet creates the contact with statusUNSUBSCRIBEDand its SMS and RCS consent revoked;CONVERSATIONneeds no consent record — it answers someone who wrote to the agent within the last 24 hours (422 no_active_sessionotherwise). - Deleting a contact — deletes all its consent records, for good. Use
status: BLOCKEDon the contact instead if you need to suppress without losing audit history — for RCS recipients especially: Google and the networks can ask the brand to prove an opt-in or opt-out for a number, and there is no workspace-wide export of the consent log. The deleted address keeps a “do not contact” marker: when it is added again, aNEWSLETTERconsent stated by your system is not recorded for it until the person confirms a sign-up themselves — see Delete contact.
Consent sync journey
End-to-end guide for syncing opt-ins from a CRM or form platform.
Contact events
Webhook events fired on consent changes.