POST
/
dr
/
v1
/
appointment
curl --request POST \
  --url https://api.eka.care/dr/v1/appointment \
  --header 'Content-Type: application/json' \
  --header 'auth: <auth>' \
  --data '{
  "partner_appointment_id": "098765434567890",
  "partner_clinic_id": "642783",
  "partner_doctor_id": "8423994",
  "partner_patient_id": "6742984",
  "appointment_details": {
    "start_time": 1730189586,
    "end_time": 1730189586,
    "mode": "INCLINIC",
    "custom_attributes": {
      "label": [
        "vitals_submitted"
      ],
      "tags": [
        "paid",
        "in_consult"
      ]
    },
    "video_connect": {
      "vendor": "other",
      "url": "https://xyz.com"
    }
  },
  "patient_details": {
    "first_name": "Test",
    "mobile": "+919999999999",
    "gender": "M",
    "dob": "1987-01-16"
  },
  "partner_meta": {
    "encounter_id": "123"
  }
}'
{
  "appointment_id": "{{appointment_id}}"
}

Headers

auth
string
required
Example:

"auth"

Body

application/json

The request body should contain either partner-specific fields or non-partner-specific fields for clinic and doctor identification.

Response

201
application/json

OK

The response is of type object.