POST
/
abdm
/
na
/
v1
/
registration
/
mobile
/
create-phr
curl --request POST \
  --url https://api.eka.care/abdm/na/v1/registration/mobile/create-phr \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "abha_address": "<string>",
  "profile": {
    "address": "123, ABC Street",
    "day_of_birth": 1,
    "first_name": "Shyam",
    "gender": "M",
    "last_name": "Singh",
    "middle_name": "Kumar",
    "month_of_birth": 1,
    "pincode": "110001",
    "year_of_birth": 1990
  },
  "txn_id": "<string>"
}'
{
  "eka": {
    "min_token": "<string>",
    "oid": null,
    "uuid": null
  },
  "profile": {
    "abha_address": "shyam@abdm",
    "abha_number": "12-3456-7856-8912",
    "address": null,
    "day_of_birth": null,
    "first_name": null,
    "gender": "M",
    "kyc_verified": null,
    "last_name": null,
    "middle_name": null,
    "mobile": null,
    "month_of_birth": null,
    "pincode": null,
    "year_of_birth": null
  },
  "refresh_token": null,
  "skip_state": "abha_end",
  "success": true,
  "token": null
}

Authorizations

Authorization
string
header
required

The API requires a Bearer token (JWT) for authentication.

Body

application/json
abha_address
string
required

The ABHA address to be created for the user.

profile
object
required

Profile details of the user.

txn_id
string
required

Transaction ID received in the previous API response.

Response

200
application/json
OK
eka
object

Eka IDs, will be present if SkipState is abha_end

profile
object
refresh_token
string | null

Refresh token for the user

skip_state
enum<string>
Available options:
abha_end,
confirm_mobile_otp,
abha_select,
abha_create
success
boolean

Indicates whether the API response is successful

token
string | null

Access token for the user, will be present if SkipState is abha_end