Get ABHA-address profile
Endpoint: GET /abha/api/v3/phr/web/login/profile/abha-profile
Flow: ABHA Address Login - Aadhaar OTP - step 4 of 6
- Previous: *ABHA address login via Aadhaar OTP - verify*
- Next: *Get PHR card*
---
This API endpoint retrieves the user’s ABHA (Ayushman Bharat Health Account) profile. Access to this profile is granted after the successful verification of the OTP, ensuring the user’s profile information is secure. The access token from POST /api/hiecm/gateway/v3/sessions, sent with a User token ( Unique UUID for every request. Current UTC timestamp in ISO-8601 format. 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. A Bad Request error with the description “invalid X-token” indicates that the server received a request with an invalid or missing authentication token. 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. Internal Server Error An Internal Server Error (500) indicates that the server encountered an unexpected condition that prevented it from fulfilling the request.Authorizations
Authorizationbearer tokenRequiredBearer prefix.Headers
X-tokenstringRequiredBearer <token>) received after ABHA creation / login.REQUEST-IDstringRequiredTIMESTAMPstringRequiredResponses
200abhaAddressstringfullNamestringprofilePhotostringfirstNamestringmiddleNamestringlastNamestringdayOfBirthstringmonthOfBirthstringyearOfBirthstringdateOfBirthstringgenderstringemailstringmobilestringabhaNumberstringaddressstringstateNamestringpinCodestringstateCodestringdistrictCodestringauthMethodsstring[]statusstringsubDistrictCodestringsubDistrictNamestringemailVerifiedstringmobileVerifiedstringkycStatusstring400401codestringmessagestringdescriptionstring500