---
title: "POST /abdm/v2/profile/share"
method: POST
path: "/abdm/v2/profile/share"
---

# POST /abdm/v2/profile/share

`POST /abdm/v2/profile/share`

Request to generate appointment token at the facility. <Note> Get the hip_id and counter_id by reading the QR code of the Hospital/Clinic.</Note> <Note>Use the device location for the location data</Note>

## Query parameters

- `oid` string — OID is used to Identify the user.

## Headers

- `X-Pt-Id` string
- `X-Partner-Pt-Id` string
- `X-Hip-Id` string

## Request body

- ScanandshareProfileShareRequest
  - `counter_id` string, required — Counter ID from QR Code
  - `hip_id` string, required — HIP ID from QR Code
  - `location` HipLocation
    - `latitude` unknown
    - `longitude` unknown
  - `patient` ScanandsharePatient
    - `abha_address` string, required — ABHA address of the patient
    - `address` ScanandshareAddress
      - `district` string — District of the address
      - `line` string — Address line
      - `pin_code` string, required — Pin code of the address
      - `state` string — State of the address
    - `day_of_birth` string, required — Day of birth of the patient
    - `gender` string, required — Gender of the patient
    - `mobile` string, required — Phone number of the patient
    - `month_of_birth` string, required — Month of birth of the patient
    - `name` string, required — Name of the patient
    - `year_of_birth` string, required — Year of birth of the patient
  - `request_id` string — Request ID to track the status of the profile share
  - `user_x_token` string — user authorization token

## Response `202`

Accepted

- object
  - `request_id` string — Request ID to track the status
  - `status` 'success' | ' processing' | ' failed'

## Other responses

- `4XX`
- `5XX`

---

[API](https://skmtc.net/eka/apis/eka-developer-apis.md) · [All operations](https://skmtc.net/eka/apis/eka-developer-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/eka/eka-developer-apis/versions/9ea23456f722/schema)
