data.available
data.available fires when new patient data is available for your organization.
When It Fires
The event is emitted once a patient's data retrieval batch has been finalized for your project, before the data is uploaded to your destination. It is always followed by data.delivered for the same retrievalId when delivery to your S3 bucket or SFTP server is enabled and succeeds. It is not sent when:
- The retrieval is not associated with one of your projects.
- The patient has not consented to the project.
If you access patient data through MCP, note that this event can fire before vectorization of the data has completed, so the data may not yet be queryable via MCP.
The event is delivered to every active webhook whose project scope covers the project and whose subscribed events include data.available.
Example Payload
{
"type": "data.available",
"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",
"retrievalId": "b1f0a7c2-5d3e-4f60-8a91-2c4d6e8f0a1b",
"locations": [
{
"locationId": "loc_123",
"locationName": "Example Medical Center",
"isNewLocation": true,
"updatedAt": "2026-08-19T14:39:58.000Z",
"documentCount": 12
}
]
}
}
Key Fields
| Field | Description |
|---|---|
patientId | The HealthEx identifier for the patient whose data is available. |
externalId | Your own identifier for the patient in this project, as supplied when you identified them. null if none has been set. |
retrievalId | Identifier of the retrieval (batch). Matches retrievalId on the later data.delivered event. |
locations | The healthcare locations included in the retrieval. |
locations[].locationId | The ID of the healthcare location. |
locations[].locationName | Human-readable name of the location, or null. |
locations[].isNewLocation | Whether this location is new since the patient's previous retrieval. |
locations[].updatedAt | When the location's data was last updated, or null. |
locations[].documentCount | The number of documents retrieved from this location. |
Next Steps
- Idempotency and Ordering: Handle repeat and out-of-order deliveries