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
}
This API is used to create a new ABHA address for the user.
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
}
The API requires a Bearer token (JWT) for authentication.
OK
The response is of type object
.
Was this page helpful?