v1
latestOpenAPI 3.0.02026-07-14327580.4 KBuser auth
notification API in case of DIRECT mode of authentication by the CM
This API is called by CM to confirm authentication of users. The transactionId returned is same as that passed in /auth/on-init. The "auth.status" conveys whether the request was GRANTED or DENIED.
- auth.accessToken - is specific to the purpose mentioned in the /auth/init. This token needs to be used for initiating the intended action. For example for HIP initiated linking of care-contexts
- NOTE, only one of X-HIP-ID or X-HIU-ID will be sent as part of header, not both.
- The payload is conditional to the purpose of auth. If purpose specified in /auth/init is KYC or KYC_AND_LINK, then patient details are passed. auth.accessToken is passed only if the purpose is LINK or KYC_AND_LINK.
post/v0.5/users/auth/notify
Headers
Authorizationstring required
Access token which was issued after successful login with gateway auth server, which will be sent by gateway to authenticate itself with API bridge.
X-HIP-IDstring required
Identifier of the health information provider to which the request was intended.
X-HIU-IDstring required
Identifier of the health information user to which the request was intended.
Request body
Example request
{
"auth": {
"patient": {
"id": "<patient-id>@<consent-manager-id>",
"identifiers": [
{
"value": "+919800083232"
}
],
"name": "Hina Patel",
"yearOfBirth": 2000
}
},
"requestId": "5f7a535d-a3fd-416b-b069-c97d021fbacd"
}Response
Request accepted