Skip to main content

webhooks

The patient's decision, sent to the requester

On a grant, carries every consent artefact id created against the request, with the request id. On a denial, carries the denial, with reason set if the gateway supplied one.

POST/api/v3/hiu/consent/request/notify

Authorizations

Authorizationbearer tokenRequired

The accessToken from POST /api/hiecm/gateway/v3/sessions. Send it as Authorization: Bearer <ACCESS_TOKEN>.

Body

notificationobjectRequired
notification.consentRequestIdstringRequired
notification.statusstringRequired
notification.reasonstringnullRequired

Set when the request was denied; null otherwise.

notification.consentArtefactsobject[]Required
notification.consentArtefacts.idstringRequired

Responses

200

Your bridge acknowledged the callback with 200 OK. The gateway validates the body you send back, so a 200 carrying the wrong body is still a failure.

Where this fits

Answer this callback by calling Acknowledge a consent notification, as the HIU.