Consent records are the legal basis for sending messages to a contact. Every contact can hold multiple consent records — one per channel and message type combination. Arowana enforces consent at send time: a marketing send through the API (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.
Syncing consent from a CRM? Bulk consent records GRANTED or REVOKED for up to 1,000 contacts per call, named by external_id, with the same rules as this page.
string
The channel this consent applies to: EMAIL, RCS, or SMS.
string
The send type this consent covers: MESSAGE (action-based) or NEWSLETTER (subscription).
string
Overall consent state.When enforced_doi: true, status only transitions to GRANTED after doi_status reaches DOI_ACCEPTED.
string
Where the consent signal came from (e.g. landing_page, api, checkout, crm_sync). Free-form string for your audit reference.
string
Human-readable description of the consent event — form URL, checkbox label, email subject. Stored for GDPR audit. Max 5,000 characters.
boolean
Whether Double Opt-In confirmation is required before this consent becomes GRANTED.
  • false (default) — single opt-in. Status moves directly to GRANTED on creation.
  • true — DOI required. Status stays PENDING until the contact confirms, at which point it advances to GRANTED and doi_status is set to DOI_ACCEPTED.
string
Current DOI confirmation state. null when enforced_doi is false.
string
The channel used to deliver the DOI confirmation message: EMAIL (SMS and RCS answer 503 not_available). null when enforced_doi is false.
string
ISO 8601 timestamp when consent was granted (for DOI flows, this stamps when DOI_ACCEPTED is reached). null while PENDING.
string
ISO 8601 timestamp when consent was revoked. null if still active.

DOI lifecycle

When enforced_doi: true, consent follows a two-step confirmation process:
Only 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.
string
required
Bearer <api_key>
string
required
Contact ID.

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 with 200.
  • status: "GRANTED" is a grant stated by your system, so it needs proof_text, it does not override an opt-out (see 409 below), and it is refused for NEWSLETTER when the workspace requires double opt-in (see 422 below).
  • status: "PENDING" with enforced_doi: true starts a double opt-in: the contact gets a confirmation email and grants the consent by clicking the link.
Send an 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.
string
required
Bearer <api_key>
string
required
Contact ID.
string
required
Channel to grant consent for: EMAIL, RCS, or SMS.
string
required
Send type to grant consent for: MESSAGE or NEWSLETTER.
string
required
GRANTED (single opt-in) or PENDING (start a DOI flow). When enforced_doi: true, always pass PENDING — the platform advances to GRANTED after confirmation.
string
required
Where consent was collected (e.g. "landing_page", "checkout", "crm_sync").
string
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.
string
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.
boolean
default:"false"
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.
string
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.
Consent is immediately GRANTED.

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.
string
required
Bearer <api_key>
string
required
Contact ID.
string
required
Consent record ID (e.g. cr_a1b2c3).

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_at and sets status: 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: true for NEWSLETTER consent in jurisdictions where double opt-in is required (e.g. Germany). For action-based (MESSAGE) consent tied to a transaction, single opt-in with proof_text is typically sufficient.
  • Send-time enforcement — NEWSLETTER sends need a GRANTED record (with doi_status: DOI_ACCEPTED if DOI was enforced); PENDING contacts cannot receive NEWSLETTER sends. MESSAGE sends need no opt-in — only a newest record that is REVOKED blocks them. RCS through the API is decided by traffic_type: PROMOTION needs a GRANTED SMS / RCS NEWSLETTER record whatever the message_type; after an opt-out (STOP, unsubscribe, a revocation) only AUTHENTICATION still goes out, ACKNOWLEDGEMENT as the one answer to the person’s keyword, and SERVICEREQUEST inside a conversation the person started afterwards; an RCS STOP from a number that isn’t a contact yet creates the contact with status UNSUBSCRIBED and its SMS and RCS consent revoked; CONVERSATION needs no consent record — it answers someone who wrote to the agent within the last 24 hours (422 no_active_session otherwise).
  • Deleting a contact — deletes all its consent records, for good. Use status: BLOCKED on 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, a NEWSLETTER consent 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.