Skip to main content

Scan & Share

Receive a patient's shared profile

Also known as: [HIP Callback] Receive Patient Profile Share. This endpoint is implemented by the HIP, the ABDM Gateway forwards the patient's profile to the HIP's registered callback URL when the patient scans the HIP's QR code and consents to share their profile.

POST/patient-share/v3/share

The HIP must respond with a 2xx status and subsequently call POST /patient-share/v3/on-share.

Authorizations

Authorizationbearer tokenRequired

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

Headers

REQUEST-IDstringRequired

Unique UUID v4 per request. Used for idempotency and distributed tracing. Generate a fresh UUID for every call.

TIMESTAMPstringRequired

ISO 8601 UTC timestamp of the request.

Body

intentstringRequired

Always PROFILE_SHARE for scan-and-share flows

One of PROFILE_SHARE

metaDataobjectRequired
metaData.hipIdstringRequired

HIP identifier embedded in the QR code

metaData.contextstringRequired

Counter or context value from the QR code

metaData.hprIdstring

Health Professional Registry ID of the scanning clinician

profileobjectRequired
profile.patientobject

Responses

200

Profile received by HIP