Skip to main content

Refresh user token

Endpoint: GET /abha/api/v3/profile/account/request/token

GET/abha/api/v3/profile/account/request/token

Flow: Access Tokens & Encryption - independent API; call the one that fits your identifier / modality.

---

This API endpoint is used to request a token for accessing a user’s ABHA (Ayushman Bharat Health Account) profile. This token is essential for authenticating and authorizing the user to perform various actions within their profile.

Authorizations

Authorizationbearer tokenRequired

The access token from POST /api/hiecm/gateway/v3/sessions, sent with a Bearer prefix.

Headers

R-tokenstringRequired

Refresh token (Bearer <refreshToken>) received at login.

TIMESTAMPstringRequired

Current UTC timestamp in ISO-8601 format.

REQUEST-IDstringRequired

Unique UUID for every request.

Responses

200

The token was successfully generated and sent to the user’s registered contact method.

tokenstring
expiresIninteger
refreshTokenstring
refreshExpiresIninteger
400

The 400 response code indicates a bad request

Error codes for this module

messagestring
timestampstring
401

The 401 response code indicates an unauthorized request. In this context, it refers to the lack of proper authentication during the operation of the Invalid Credentials

Everything returns 401

valueobject
value.codestring
value.messagestring
value.descriptionstring
404

A 404 Not Found error occurs when a server cannot find the requested resource. This error indicates that the server is reachable, but the specific page or resource is not available

Error codes for this module

errorobject
error.codestring
error.messagestring
500

Internal Server Error

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