Skip to main content

consent.expiring

consent.expiring fires once when a patient's authorization for one of your projects is about to expire. Use it to prompt the patient to renew before access lapses.

When It Fires​

The event is sent when the consent has about 60 days left. It is checked daily, so it arrives between 60 and 58 days before expiry, up to two days after the 60-day mark. It is sent once per expiration, and again only if the patient re-consents and the new consent reaches that point. A consent granted with less than 58 days to run is not announced with this event; consent.expired still fires when it lapses.

Like consent.withdrawn, it applies only to project-scoped data consents (DATA_AUTHORIZATION and PATIENT_DIRECTED_DATA_EXCHANGE). It is never sent for a patient's consent to use HealthEx itself.

Example Payload​

{
"type": "consent.expiring",
"timestamp": "2026-08-19T13:00:03.552Z",
"apiVersion": 1,
"deliveryAttempt": 1,
"organizationId": "56696fdb-2e0d",
"projectId": "694d61c2-3f1b-4dc8",
"data": {
"patientId": "17d4513f-73e8-4b2a-9c1d-5e6f7a8b9c0d",
"externalId": "member-48213",
"consentType": "PATIENT_DIRECTED_DATA_EXCHANGE",
"expiresAt": "2026-10-18T14:30:00.000Z",
"fullRecordWithoutRestrictedData": true,
"consentDataResourceScopes": null,
"consentDataSensitivityScopes": null
}
}

The envelope fields are documented in the Webhooks overview.

Key Fields​

FieldDescription
patientIdThe HealthEx identifier for the patient whose consent is expiring.
externalIdYour own identifier for the patient in this project, as supplied when you identified them. null if none has been set.
consentTypeEither DATA_AUTHORIZATION or PATIENT_DIRECTED_DATA_EXCHANGE.
expiresAtISO 8601 timestamp of when the consent will expire.
fullRecordWithoutRestrictedDatatrue when the consent covers the patient's full record. When true, both scope arrays below are null.
consentDataResourceScopesThe categories of data the consent covers, or null when fullRecordWithoutRestrictedData is true.
consentDataSensitivityScopesThe sensitivity classifications the consent covers, or null when fullRecordWithoutRestrictedData is true.

The scope values are the same as those listed for consent.withdrawn.

Next Steps​