Skip to main content

Notify HIU when consent is APPROVED, DENIED or REVOKED

Hosted by the HIP/HIU, not by ABDM. ABDM calls this endpoint at the callback URL registered for your bridge, so the path below is relative to that URL.

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

Health information user will get notified about the consent request granted or denied, consent revoked, consent expired. For consent request grant, status=GRANTED, consentRequestId=<consent-REQUEST-ID>, and consentArtefacts is an array of generated consent artefact Ids. For consent request expiry, status=EXPIRED, consentRequestId=<consent-REQUEST-ID> For consent request denied, status=DENIED, consentRequestId=<consent-REQUEST-ID> For consent revocation, status=REVOKED, consentArtefacts is an array of revoked consent artefact ids.

Authorizations

Authorizationbearer tokenRequired

Headers

REQUEST-IDstringRequired

Unique UUID for track the end to end request transaction

TIMESTAMPstringRequired

Actual time of the request was initiated, ISO 8601 represents date and time by starting with the year, followed by the month, the day, the hour, the minutes, seconds and milliseconds.

X-HIU-IDstringRequired

Identifier of the health information user to which the request was intended

Body

notificationobjectRequired
notification.consentRequestIdstringRequired

The consent request id from a consent. Allows alpha numeric character and special characters like "^[a-zA-Z0-9_\-@,. ":/]{0,255}$"

notification.statusstringRequired

One of GRANTEDEXPIREDDENIEDREQUESTEDREVOKED

notification.reasonstringRequired
notification.consentArtefactsobject[]Required

List of consent artefact ids that were created.

notification.consentArtefacts.idstringRequired

Responses

200

OK

400

Bad Request. The request could not be processed because it was malformed or failed validation - a missing mandatory field, a value in the wrong format, or a header that did not match the body.

Error codes for this module

401

Unauthorized

Everything returns 401

500

Internal Server Error

Error codes for this module

503

Service Unavailable

Error codes for this module

Where this fits

hiecm-m3.yaml declares this callback at module level and names no call against it. Which call produces it is not documented, so this page does not say.