Skip to main content

consent.expired

consent.expired fires when a patient's authorization for one of your projects expires. After this event, treat the listed scopes as no longer authorized, exactly as you would for consent.withdrawn. A patient can restore access by re-consenting, which produces a consent.collected event.

When It Fires​

The event is sent within 15 minutes of the actual expiration. The payload carries the real expiration time, not the time the event was sent. It is sent once per expiration.

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.expired",
"timestamp": "2026-08-19T14:40:12.113Z",
"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",
"expiredAt": "2026-08-19T14: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 expired.
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.
expiredAtISO 8601 timestamp of the actual expiration. Distinct from the envelope's timestamp, which is when the event was emitted.
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​