v1

latestOpenAPI 3.0.32026-07-26229361630.0 KB
Doctor and clinic API

Get Doctor profile

Overview

This API endpoint is used to retrieve detailed information about a specific doctor using their unique identifier. The response includes comprehensive information about the doctor, such as personal details, specializations, and associated clinics.

Request Parameters

ParameterTypeDescriptionRequired
doctor_idstringUnique identifier for the doctorYes

Response Parameters

ParameterTypeDescription
idstringUnique identifier for the doctor in Eka
created_atdatetimeTimestamp when the doctor profile was created
profileobjectDoctor's profile details
profile.personalobjectPersonal details of the doctor
profile.personal.salutationstringSalutation (e.g., Dr.)
profile.personal.first_namestringFirst name of the doctor
profile.personal.middle_namestringMiddle name of the doctor
profile.personal.last_namestringLast name of the doctor
profile.personal.emailstringEmail address of the doctor
profile.personal.genderstringGender of the doctor
profile.personal.dobdateDate of birth of the doctor
profile.professionalobjectProfessional details of the doctor
profile.professional.usernamestringUsername of the Doctor
profile.professional.activebooleanFlag indicating if the profile is active
profile.professional.aboutstringAbout section describing the doctor
profile.professional.languagearrayLanguages spoken by the doctor
profile.professional.language[].languagestringLanguage name (e.g., English)
profile.professional.clinicsarrayClinics associated with the doctor
profile.professional.clinics[]objectClinic details
profile.professional.clinics[]..idstringUnique identifier for the clinic
profile.professional.clinics[].city_namestringCity name where the clinic is located
profile.professional.clinics[].namestringName of the clinic
profile.professional.clinics[].emailstringEmail address of the clinic
profile.professional.clinics[].aboutstringAbout section of the clinic
profile.professional.clinics[].specialityarraySpecialities offered at the clinic
profile.professional.clinics[].numberarrayContact numbers for the clinic
profile.professional.clinics[].number[].namestringType of contact number (e.g., Phone, Mobile)
profile.professional.clinics[].number[].nstringContact number
profile.professional.clinics[].addressobjectAddress details of the clinic
profile.professional.clinics[].address.line1stringAddress line 1
profile.professional.clinics[].address.line2stringAddress line 2
profile.professional.clinics[].address.citystringCity of the clinic
profile.professional.clinics[].address.statestringState of the clinic
profile.professional.clinics[].address.countrystringCountry of the clinic
profile.professional.clinics[].address.pincodestringPincode of the clinic
profile.professional.clinics[].locationarrayLocation coordinates of the clinic
profile.professional.default_clinicstringDefault clinic ID
profile.professional.all_registrationsarrayRegistrations of the doctor
profile.professional.all_registrations[].idnumberRegistration ID
profile.professional.all_registrations[].councilstringMedical council name
profile.professional.all_registrations[].medical_idstringMedical ID number
profile.professional.all_registrations[].yearstringYear of registration
profile.professional.all_registrations[].defaultbooleanFlag indicating if it is the default registration
profile.professional.degreearrayDegrees earned by the doctor
profile.professional.degree[].idnumberDegree ID
profile.professional.degree[].namestringName of the degree
profile.professional.degree[].branch_namestringBranch name
profile.professional.degree[].college_namestringCollege name
profile.professional.degree[].display_statusstringDisplay status of the degree
profile.professional.degree[].start_yearstringStart year of the degree
profile.professional.degree[].end_yearstringEnd year of the degree
profile.professional.major_specialityobjectMajor speciality of the doctor
profile.professional.major_speciality.namestringName of the major speciality
profile.professional.specialityarraySpecialities of the doctor
profile.professional.speciality[].namestringName of the speciality
Status Codes

• 200: Success

• 403: Doctor data missing

• 500: Wrong API URL/Token mismatched/Wrong JSON request.

get/dr/v1/doctor/{doctor_id}

Path parameters

doctor_idstring required

Headers

authstring required
Example:auth

Response

OK

idstring required

Example response

{
  "id": "1234567890",
  "profile": {
    "personal": {
      "salutation": "Dr.",
      "first_name": "Rahul",
      "middle_name": "",
      "last_name": "Kumar",
      "dob": "1970-01-01",
      "gender": "M",
      "pic": "https://a.eka.care/doctor-avatar/170062845263102"
    },
    "professional": {
      "active": true,
      "username": "dr-rahul-kumar-cardiologist",
      "about": "Dr. Rahul Kumar is a Cardiologist with 43 years of experience.",
      "language": [
        {
          "code": "en",
          "language": "English"
        }
      ],
      "degree": [
        {
          "name": "MBBS,MD",
          "branch_name": "",
          "college_name": "",
          "start_year": "",
          "end_year": ""
        }
      ],
      "major_speciality": {
        "name": "Cardiologist",
        "code": "CA"
      },
      "speciality": [
        {
          "name": "General Physician"
        },
        {
          "name": "Diabetologist"
        },
        {
          "name": "Allergy Specialist"
        }
      ],
      "clinics": [
        {
          "id": "1234567899876",
          "name": "Vagus Hospital & Health Services",
          "contacts": [
            {
              "name": "Phone",
              "number": "+91999999999"
            }
          ],
          "address": {
            "line1": "H No -122/a,, Pocket 2 back side of Yamaha 2 wheeler showroom., Pocket 2, Gate No :-2, nearest to Homeopathy clinic.",
            "city": "Delhi",
            "country": "India",
            "state": "Delhi",
            "pin": "110085"
          }
        }
      ],
      "default_clinic": "1234567899876"
    }
  }
}