Link on carecontext
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.
This API endpoint serves as a callback for the /api/hiecm/hip/v3/link/carecontext API. It is used to communicate the outcome of the care context linking process. The response will vary based on the success or failure of the linking operation:
If the linking is successful, pass the successful message
If the linking is unsuccessful, pass the error message with the error code and message The access token from POST /api/hiecm/gateway/v3/sessions, sent with a Unique UUID for track the end to end request transaction 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 Identifier of the health information provider to which the request was intended One of The requestId that was passed OK Bad Request The error code and message, if any occurred. ABDM-1006 - Bad Request, invalid request Body. May be returned either bare ( Unauthorized 900902 - Unauthorized. May be returned either bare or with a trailing ": " separator; match on the code itself and tolerate the separator. server cannot find the requested resource The error code and message, if any occurred. ABDM-1001 - No data found. May be returned either bare ( Internal Server Error ABDM-9999 - Unknown exception. May be returned either bare (Authorizations
Authorizationbearer tokenRequiredBearer prefix.Headers
REQUEST-IDstringRequiredTIMESTAMPstringRequiredX-HIP-IDstringRequiredBody
abhaAddressstringRequiredstatusstringRequiredSuccessfully Linked care contextFailed to link care contextinvalid [invalid request]responseobjectRequiredresponse.requestIdstringRequiredResponses
200400errorobjecterror.codestringRequiredABDM-1006) or with a trailing ": " separator (ABDM-1006: ); match on the code itself and tolerate the separator.error.messagestringRequired401codestringmessagestringdescriptionstring404errorobjecterror.codestringRequiredABDM-1001) or with a trailing ": " separator (ABDM-1001: ); match on the code itself and tolerate the separator.error.messagestringRequired500codestringABDM-9999) or with a trailing ": " separator (ABDM-9999: ); match on the code itself and tolerate the separator.messagestring
Where this fits
You produce this callback by calling This API will be used to perform HIP initiated linking..