Communication Authorizations
How Hint records marketing consent for an email address, what the three states mean, and how an email partner should keep a suppression list in sync.
This page is for partners building an email or marketing integration, and for practice developers syncing consent into their own tooling.
A communication authorization records a decision someone made about being emailed. It is deliberately narrow: it does not track deliverability, engagement, or whether Hint happens to have an address on file. It records an act.
Email only, marketing onlyCommunication authorizations currently exist for email addresses and for the single
marketingcategory. There are no SMS or phone authorizations, and no per-campaign or per-topic authorizations. Future channels and categories will be additive, so build against the fields below rather than assuming there is only ever one kind of row.
The model
Consent attaches to the practice-scoped email address, not to the person.
That has a consequence worth designing around: a patient and a prospect who share [email protected] in the same practice share one authorization. Opting that address out suppresses both. The same address in a different practice is a separate identity with its own state, because a practice's suppression list is its own.
flowchart LR
P["Patient<br/>[email protected]"] --> E["Email address<br/>practice-scoped"]
R["Prospect<br/>[email protected]"] --> E
E --> A["Communication authorization<br/>category: marketing<br/>state: opted_out"]
classDef node fill:#ffffff,stroke:#dc2626,stroke-width:1px,color:#0f172a,font-size:12px
class P,R,E,A node
A row exists only where someone acted. Hint does not create an authorization when a patient or prospect is created, and does not write an opt-in on anyone's behalf. If no one has opted the address in or out, there is no row, and the address's consent reads null.
Sending marketing email is permitted unless the address is opted_out. null is not a blocker; it means nothing has been recorded.
The three values
email_marketing_authorization appears inline on the patient and prospect payloads, so you usually do not need a second call to read consent:
| Value | Meaning | May you send marketing email? |
|---|---|---|
opted_in | The address explicitly opted in. | Yes |
opted_out | The address explicitly opted out. | No |
null | No authorization has been recorded either way. | Yes, under the opt-out model |
The values are strings, and null is a real value rather than a missing key. Treat an unrecognized string as "do not send" and tell us, rather than coercing it to a boolean.
Endpoints
All three are practice-scoped. They work with a practice API key, and with a partner integration acting on behalf of a practice.
List Communication Authorizations
GET /api/provider/communication_authorizations
Returns the rows the practice holds. Because a row exists only for an explicit act, ?state=opted_out is the exhaustive suppression list - there is no fourth state hiding elsewhere, and no address is suppressed without a row.
| Query parameter | Purpose |
|---|---|
state | opted_in or opted_out |
category | marketing |
email | Scope to a single address. Normalized (lowercased and trimmed) before matching. |
created_at, updated_at | Date filters. See advanced querying. |
limit, offset | Pagination. |
[
{
"id": "cauth-8Kd2mQz1vTse",
"state": "opted_out",
"source": "opt_out_via_email_link",
"email": "[email protected]",
"updated_at": "2026-09-14T18:02:11.000000-07:00"
}
]Poll with updated_at to pick up changes since your last sync. See List Communication Authorizations.
Show Communication Authorization
GET /api/provider/communication_authorizations/{id}
Reads a single row by its cauth- id. See Show Communication Authorization.
Set Communication Authorization
POST /api/provider/communication_authorizations
{
"communication_authorization": {
"email": "[email protected]",
"state": "opted_out"
}
}The address is normalized and resolved to the practice's shared email identity, creating that identity if Hint has never seen the address. You can therefore suppress an address before it belongs to anyone, which is the right way to import an existing suppression list at install time.
Each email has exactly one state per category, so this endpoint overwrites rather than appending. See Set Communication Authorization.
Where a state came from
Each row carries a source describing how the current state was set. Read it; do not write it.
source | What happened |
|---|---|
opt_in_via_api | A partner or practice set opted_in through the API. |
opt_out_via_api | A partner or practice set opted_out through the API. |
opt_out_via_email_link | The recipient unsubscribed from or reported a Hint-sent email. |
defaulted_opt_in | Historical. Written by an earlier version of Hint that seeded a default on record creation. These rows have been removed and nothing writes this value any more. |
opt_out_via_email_link is the one to pay attention to: it means the person acted on a real message, so it can appear without any partner having called the API.
Webhooks
A consent change fans out to every record sharing that email in the practice. One address used by a patient and a prospect produces one patient.updated and one prospect.updated.
The payload is the standard event envelope described in Webhooks; the object is the full patient or prospect, carrying the updated field:
{
"id": "evt-jKi2jlalOJk3",
"created_at": "2026-09-14T18:02:11.419-07:00",
"type": "patient.updated",
"practice_id": "pra-6BIBTelN3rM5",
"object": {
"id": "pat-eN9DgCQ9iQxL",
"first_name": "Jane",
"last_name": "Doe",
"email": "[email protected]",
"email_marketing_authorization": "opted_out"
}
}You do not receive an echo of your own write. A change you make through the API does not fan a webhook back to the integration that made it, so you do not need to de-duplicate against your own calls. Other partners on that practice do receive it.
Recommended pattern for an email partner
- On install, pull the suppression list.
GET /api/provider/communication_authorizations?state=opted_outand seed your do-not-send list from it before your first send. - Push your own opt-outs to Hint. Unsubscribes, spam complaints, and hard-bounce-driven suppressions belong in Hint so every other system honors them. Use Set Communication Authorization with
state: "opted_out". - Do not push
opted_infor contacts who never affirmatively opted in. Writingopted_inasserts that a person made a choice. Importing a list and marking everyone opted in destroys the distinction that makes this data worth anything, and it is the one mistake that is hard to undo. - Treat
nullas sendable. It means nothing was recorded, not that consent was withheld. - Subscribe to
patient.updatedandprospect.updatedto hear about opt-outs that originate anywhere else. - Keep consent per practice. An opt-out in one practice says nothing about another, even for the same address. Do not merge suppression lists across practices.
Opt-outs that arrive without you
Expect state changes you did not make. They come from:
- Hint's own emails. A recipient who unsubscribes or reports a message lands as
opt_out_via_email_link. - Practice staff, acting in the Hint provider portal on a patient's request.
- Another partner on the same practice writing through this API.
Your integration should treat Hint as the source of truth for suppression and reconcile toward it, rather than assuming your own list is complete.
Updated 42 minutes ago

