Skip to main content

Authentication

Get RSA Public Certificate

Fetch the RSA public key used to encrypt all sensitive fields before transmission. Fields requiring encryption: Aadhaar, Mobile, OTP, Password, ABHA Number, Email, Photo.

GET/profile/public/certificate

Server: https://abhasbx.abdm.gov.in/abha/api

Authorizations

Authorizationbearer tokenRequired

The accessToken from POST /api/hiecm/gateway/v3/sessions. Send it as Authorization: Bearer <ACCESS_TOKEN>.

Headers

REQUEST-IDstringRequired

Unique UUID v4 per request. Used for idempotency and distributed tracing. Generate a fresh UUID for every call.

TIMESTAMPstringRequired

ISO 8601 UTC timestamp of the request.

Responses

200

RSA public key retrieved

400

Bad Request, invalid scope, loginHint, or encrypted field

Error codes for this module

401

Unauthorized, missing, invalid, or expired Bearer token

Everything returns 401

403

Forbidden, the token is valid but not permitted for this operation

Error codes for this module

500

Server error, retry

Error codes for this module