Skip to main content

Retrieve the user’s ABHA profile

Retrieve the user’s ABHA (Ayushman Bharat Health Account) profile.

GET/abha/api/v3/phr/web/login/profile/abha-profile

Access to this profile is granted after the successful verification of the OTP, ensuring the user’s profile information is secure.

Authorizations

Authorizationbearer tokenRequired

Headers

X-tokenstringRequired
REQUEST-IDstringRequired
TIMESTAMPstringRequired

Responses

200

The 200 response code indicates a successful request. In this context, it signifies that the user was successfully verified with the OTP in the previous API call. A valid JWT token was provided, which authenticated the user and allowed access to their profile. As a result, the user profile was successfully retrieved, including all ABHA profile details.

400

A Bad Request error with the description “invalid X-token” indicates that the server received a request with an invalid or missing authentication token.

Error codes for this module

401

The 401 response code indicates that the request was not authorized due to invalid credentials. Ensure that your API invocation includes the appropriate authorization header.

Everything returns 401

500

<b>Internal Server Error</b><br><br> An Internal Server Error (500) indicates that the server encountered an unexpected condition that prevented it from fulfilling the request.

Error codes for this module