List recent webhook events for an endpoint
List recent delivery records for one endpoint with cursor pagination and an optional delivered filter for the delivery audit.
Authorization
BearerAuth Medblocks API key for server-side requests.
In: header
Path Parameters
Webhook endpoint id (wh_*).
Query Parameters
Maximum number of items to return.
101 <= value <= 100Pagination cursor from next_cursor.
Filter by delivery state. true = only delivered events; false = only pending/failed.
"true" | "false"Header Parameters
Date-pinned API version. If omitted, Medblocks uses the version pinned on your API key.
Response Body
application/json
application/json
curl -X GET "https://example.com/webhooks/string/events" \ -H "Version: 2026-04-25"{ "resource_type": "list", "data": [ { "id": "evt_01J9YR9N3X4VZ6P2K5RH7M3LMP", "resource_type": "event", "webhook_endpoint_id": "wh_01J9YR9N3X4VZ6P2K5RH7M3LMP", "type": "patient_session.completed", "data": { "object": { "id": "ps_01J9YQ8M2X4VZ6P2K5RH7M3KQT", "resource_type": "patient_session", "status": "complete", "patient_id": "user_42" } }, "api_version": "2026-04-25", "attempts": 1, "next_attempt_at": null, "delivered_at": "2026-04-25T14:35:02.000Z", "last_status_code": 200, "last_response_body": "ok", "last_redelivered_at": null, "created_at": "2026-04-25T14:35:00.000Z" } ], "has_more": false, "next_cursor": null}{ "error": { "type": "authentication_error", "code": "invalid_api_key", "message": "API key invalid", "param": null, "doc_url": "https://docs.medblocks.com/errors/invalid_api_key", "request_id": "9c9b6f7a-8e4f-4a3b-9c1e-6f3a2d8b7c4d" }}error.code and error.request_id for support.Rotate the signing secret for a webhook endpoint POST
Generate a new signing secret for a webhook endpoint, invalidating the old one. The new secret is returned once in this response.
Manually redeliver a webhook event POST
Re-enqueue a webhook event for delivery by its evt_ id. Limited to one redelivery per event each minute.
