hip linking
Generate Link Token
Generates a short-lived link token for a specific patient identified by their ABHA number/address. The link token is passed as X-Link-Token header when calling the care context linking API. Must be called immediately before the linking call, tokens expire quickly.
Certification cases HIP_INTI_LINK_501, HIP_INTI_LINK_502, HIP_INTI_LINK_503, HIP_INTI_LINK_504, HIP_INTI_LINK_505, HIP_INTI_LINK_506
This call is accepted with Bearer token obtained from POST /hiecm/gateway/v3/sessions A fresh UUID that you generate for this request. The callback that answers it carries the same value, so this is how you match an asynchronous reply to the call that caused it. Store it before you send the request, not after. The current time in ISO 8601, UTC, with milliseconds and a Which consent manager you are talking to. Identifier of the Health Information Provider the request or callback belongs to. This is per facility, and it is what a callback arriving at your one bridge URL is routed on. The bridge URL and your credentials belong to the integration, not to the facility. 14-digit ABHA number (optional if abhaAddress provided) ABHA address (PHR address) e.g. user@sbx One of Accepted. No body. The token arrives on the m2_on_generate_token_result callback.202 and carries no token. The token itself arrives on the m2_on_generate_token_result callback, at the callback URL registered for your bridge.Authorizations
Authorizationbearer tokenRequiredHeaders
REQUEST-IDstringRequiredTIMESTAMPstringRequiredZ suffix, from a synchronised clock. The sandbox rejects IST and accepts UTC.X-CM-IDstringRequiredsbx on the sandbox and abdm in production. A dedicated error code exists for an invalid value here, which tells you how often it is wrong.X-HIP-IDstringRequiredBody
abhaNumberintegerabhaAddressstringRequirednamestringRequiredgenderstringRequiredMFOyearOfBirthintegerRequiredResponses
202
Callbacks
- After this call, ABDM posts The link token m2_generate_link_token generated, or why it failed to
/v3/hip/token/on-generate-token. Open the callback.