POST
/
abdm
/
v2
/
profile
/
share
cURL
curl --request POST \
  --url https://api.eka.care/abdm/v2/profile/share \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "counter_id": "<string>",
  "hip_id": "<string>",
  "location": {
    "latitude": null,
    "longitude": null
  },
  "patient": {
    "abha_address": "<string>",
    "address": {
      "district": "<string>",
      "line": "<string>",
      "pin_code": "<string>",
      "state": "<string>"
    },
    "day_of_birth": "<string>",
    "gender": "<string>",
    "mobile": "<string>",
    "month_of_birth": "<string>",
    "name": "<string>",
    "year_of_birth": "<string>"
  },
  "request_id": "<string>",
  "user_x_token": "<string>"
}'
{
  "request_id": "<string>",
  "status": "success"
}

Authorizations

Authorization
string
header
required

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

Headers

X-Pt-Id
string

Eka User ID (OID)

X-Partner-Pt-Id
string

Partner User ID

X-Hip-Id
string

Partner HIP ID

Query Parameters

oid
string

OID is used to Identify the user.

Body

application/json
counter_id
string
required

Counter ID from QR Code

hip_id
string
required

HIP ID from QR Code

location
object

Location of the user

patient
object
request_id
string

Request ID to track the status of the profile share

user_x_token
string

user authorization token

Response

Accepted

request_id
string

Request ID to track the status

status
enum<string>
Available options:
success,
processing,
failed