> ## Documentation Index
> Fetch the complete documentation index at: https://developer.eka.care/llms.txt
> Use this file to discover all available pages before exploring further.

# 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

| Parameter | Type | Description | Required |
| --- | --- | --- | --- |
| doctor_id | string | Unique identifier for the doctor | Yes |

### Response Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| id | string | Unique identifier for the doctor in Eka |
| created_at | datetime | Timestamp when the doctor profile was created |
| profile | object | Doctor's profile details |
| profile.personal | object | Personal details of the doctor |
| profile.personal.salutation | string | Salutation (e.g., Dr.) |
| profile.personal.first_name | string | First name of the doctor |
| profile.personal.middle_name | string | Middle name of the doctor |
| profile.personal.last_name | string | Last name of the doctor |
| profile.personal.email | string | Email address of the doctor |
| profile.personal.gender | string | Gender of the doctor |
| profile.personal.dob | date | Date of birth of the doctor |
| profile.professional | object | Professional details of the doctor |
| profile.professional.username | string | Username of the Doctor|
| profile.professional.active | boolean | Flag indicating if the profile is active |
| profile.professional.about | string | About section describing the doctor |
| profile.professional.language | array | Languages spoken by the doctor |
| profile.professional.language\[\].language | string | Language name (e.g., English) |
| profile.professional.clinics | array | Clinics associated with the doctor |
| profile.professional.clinics\[\] | object | Clinic details |
| profile.professional.clinics\[\]..id | string | Unique identifier for the clinic |
| profile.professional.clinics\[\].city_name | string | City name where the clinic is located |
| profile.professional.clinics\[\].name | string | Name of the clinic |
| profile.professional.clinics\[\].email | string | Email address of the clinic |
| profile.professional.clinics\[\].about | string | About section of the clinic |
| profile.professional.clinics\[\].speciality | array | Specialities offered at the clinic |
| profile.professional.clinics\[\].number | array | Contact numbers for the clinic |
| profile.professional.clinics\[\].number\[\].name | string | Type of contact number (e.g., Phone, Mobile) |
| profile.professional.clinics\[\].number\[\].n | string | Contact number |
| profile.professional.clinics\[\].address | object | Address details of the clinic |
| profile.professional.clinics\[\].address.line1 | string | Address line 1 |
| profile.professional.clinics\[\].address.line2 | string | Address line 2 |
| profile.professional.clinics\[\].address.city | string | City of the clinic |
| profile.professional.clinics\[\].address.state | string | State of the clinic |
| profile.professional.clinics\[\].address.country | string | Country of the clinic |
| profile.professional.clinics\[\].address.pincode | string | Pincode of the clinic |
| profile.professional.clinics\[\].location | array | Location coordinates of the clinic |
| profile.professional.default_clinic | string | Default clinic ID |
| profile.professional.all_registrations | array | Registrations of the doctor |
| profile.professional.all_registrations\[\].id | number | Registration ID |
| profile.professional.all_registrations\[\].council | string | Medical council name |
| profile.professional.all_registrations\[\].medical_id | string | Medical ID number |
| profile.professional.all_registrations\[\].year | string | Year of registration |
| profile.professional.all_registrations\[\].default | boolean | Flag indicating if it is the default registration |
| profile.professional.degree | array | Degrees earned by the doctor |
| profile.professional.degree\[\].id | number | Degree ID |
| profile.professional.degree\[\].name | string | Name of the degree |
| profile.professional.degree\[\].branch_name | string | Branch name |
| profile.professional.degree\[\].college_name | string | College name |
| profile.professional.degree\[\].display_status | string | Display status of the degree |
| profile.professional.degree\[\].start_year | string | Start year of the degree |
| profile.professional.degree\[\].end_year | string | End year of the degree |
| profile.professional.major_speciality | object | Major speciality of the doctor |
| profile.professional.major_speciality.name | string | Name of the major speciality |
| profile.professional.speciality | array | Specialities of the doctor |
| profile.professional.speciality\[\].name | string | Name of the speciality |
| **Status Codes** |  |  |

• 200: Success

• 403: Doctor data missing

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



## OpenAPI

````yaml get /dr/v1/doctor/{doctor_id}
openapi: 3.0.0
info:
  title: Ekacare API & Webhook Documentation
  contact: {}
  version: '1.0'
servers:
  - description: Production
    url: https://api.eka.care
  - description: Stage/Sandbox
    url: https://api.dev.eka.care
security: []
paths:
  /dr/v1/doctor/{doctor_id}:
    get:
      tags:
        - Doctor and clinic API
      summary: Get Doctor profile
      description: >-

        ### 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


        | Parameter | Type | Description | Required |

        | --- | --- | --- | --- |

        | doctor_id | string | Unique identifier for the doctor | Yes |


        ### Response Parameters


        | Parameter | Type | Description |

        | --- | --- | --- |

        | id | string | Unique identifier for the doctor in Eka |

        | created_at | datetime | Timestamp when the doctor profile was created
        |

        | profile | object | Doctor's profile details |

        | profile.personal | object | Personal details of the doctor |

        | profile.personal.salutation | string | Salutation (e.g., Dr.) |

        | profile.personal.first_name | string | First name of the doctor |

        | profile.personal.middle_name | string | Middle name of the doctor |

        | profile.personal.last_name | string | Last name of the doctor |

        | profile.personal.email | string | Email address of the doctor |

        | profile.personal.gender | string | Gender of the doctor |

        | profile.personal.dob | date | Date of birth of the doctor |

        | profile.professional | object | Professional details of the doctor |

        | profile.professional.username | string | Username of the Doctor|

        | profile.professional.active | boolean | Flag indicating if the profile
        is active |

        | profile.professional.about | string | About section describing the
        doctor |

        | profile.professional.language | array | Languages spoken by the doctor
        |

        | profile.professional.language\[\].language | string | Language name
        (e.g., English) |

        | profile.professional.clinics | array | Clinics associated with the
        doctor |

        | profile.professional.clinics\[\] | object | Clinic details |

        | profile.professional.clinics\[\]..id | string | Unique identifier for
        the clinic |

        | profile.professional.clinics\[\].city_name | string | City name where
        the clinic is located |

        | profile.professional.clinics\[\].name | string | Name of the clinic |

        | profile.professional.clinics\[\].email | string | Email address of the
        clinic |

        | profile.professional.clinics\[\].about | string | About section of the
        clinic |

        | profile.professional.clinics\[\].speciality | array | Specialities
        offered at the clinic |

        | profile.professional.clinics\[\].number | array | Contact numbers for
        the clinic |

        | profile.professional.clinics\[\].number\[\].name | string | Type of
        contact number (e.g., Phone, Mobile) |

        | profile.professional.clinics\[\].number\[\].n | string | Contact
        number |

        | profile.professional.clinics\[\].address | object | Address details of
        the clinic |

        | profile.professional.clinics\[\].address.line1 | string | Address line
        1 |

        | profile.professional.clinics\[\].address.line2 | string | Address line
        2 |

        | profile.professional.clinics\[\].address.city | string | City of the
        clinic |

        | profile.professional.clinics\[\].address.state | string | State of the
        clinic |

        | profile.professional.clinics\[\].address.country | string | Country of
        the clinic |

        | profile.professional.clinics\[\].address.pincode | string | Pincode of
        the clinic |

        | profile.professional.clinics\[\].location | array | Location
        coordinates of the clinic |

        | profile.professional.default_clinic | string | Default clinic ID |

        | profile.professional.all_registrations | array | Registrations of the
        doctor |

        | profile.professional.all_registrations\[\].id | number | Registration
        ID |

        | profile.professional.all_registrations\[\].council | string | Medical
        council name |

        | profile.professional.all_registrations\[\].medical_id | string |
        Medical ID number |

        | profile.professional.all_registrations\[\].year | string | Year of
        registration |

        | profile.professional.all_registrations\[\].default | boolean | Flag
        indicating if it is the default registration |

        | profile.professional.degree | array | Degrees earned by the doctor |

        | profile.professional.degree\[\].id | number | Degree ID |

        | profile.professional.degree\[\].name | string | Name of the degree |

        | profile.professional.degree\[\].branch_name | string | Branch name |

        | profile.professional.degree\[\].college_name | string | College name |

        | profile.professional.degree\[\].display_status | string | Display
        status of the degree |

        | profile.professional.degree\[\].start_year | string | Start year of
        the degree |

        | profile.professional.degree\[\].end_year | string | End year of the
        degree |

        | profile.professional.major_speciality | object | Major speciality of
        the doctor |

        | profile.professional.major_speciality.name | string | Name of the
        major speciality |

        | profile.professional.speciality | array | Specialities of the doctor |

        | profile.professional.speciality\[\].name | string | Name of the
        speciality |

        | **Status Codes** |  |  |


        • 200: Success


        • 403: Doctor data missing


        • 500: Wrong API URL/Token mismatched/Wrong JSON request.
      operationId: GetDoctorprofile
      parameters:
        - name: auth
          in: header
          description: ''
          required: true
          style: simple
          schema:
            type: string
            example: auth
        - name: doctor_id
          in: path
          description: ''
          required: true
          style: simple
          schema:
            type: string
      responses:
        '200':
          description: OK
          headers:
            Date:
              content:
                text/plain:
                  schema:
                    type: string
                  example: Tue, 24 Mar 2020 06:26:06 GMT
            Content-Length:
              content:
                text/plain:
                  schema:
                    type: string
                  example: '380'
            Connection:
              content:
                text/plain:
                  schema:
                    type: string
                  example: keep-alive
            Server:
              content:
                text/plain:
                  schema:
                    type: string
                  example: nginx/1.10.3 (Ubuntu)
            Vary:
              content:
                text/plain:
                  schema:
                    type: string
                  example: Cookie, Accept-Encoding
            Content-Encoding:
              content:
                text/plain:
                  schema:
                    type: string
                  example: gzip
            Strict-Transport-Security:
              content:
                text/plain:
                  schema:
                    type: string
                  example: max-age=15768000
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/200OK4'
                  - example:
                      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'
        '403':
          description: Forbidden
          headers: {}
          content:
            application/json:
              schema:
                allOf:
                  - $ref: >-
                      #/components/schemas/403ForbiddenBusinessPatientDetailsMissing1
                  - example:
                      data: {}
                      error:
                        code: UNAUTHORIZED_ENTITY
                        message: >-
                          You are not authorized to view requisted resource
                          Doctor
              example:
                data: {}
                error:
                  code: UNAUTHORIZED_ENTITY
                  message: You are not authorized to view requisted resource Doctor
        '500':
          description: Internal Server Error
          headers: {}
          content:
            application/json:
              schema:
                allOf:
                  - $ref: >-
                      #/components/schemas/500WrongAPIURLTokenmismatchedWrongJSONrequest.1
                  - example:
                      data: {}
                      error:
                        code: INVALID_DATA
                        message: Doctor id entered is incorrect
              example:
                data: {}
                error:
                  code: INVALID_DATA
                  message: Doctor id entered is incorrect
      deprecated: false
components:
  schemas:
    200OK4:
      title: 200OK4
      required:
        - id
        - profile
      type: object
      properties:
        id:
          type: string
        profile:
          $ref: '#/components/schemas/Profile1'
      example:
        id: '1234567890'
        profile:
          personal:
            salutation: Dr.
            first_name: doctor
            middle_name: ''
            last_name: doctor
            dob: ''
            gender: M
          professional:
            active: true
            about: doctor doctor is a Cardiologist with 43 years of experience.
            language:
              - code: en
                language: English
            degree:
              - name: 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'
    403ForbiddenBusinessPatientDetailsMissing1:
      title: 403ForbiddenBusinessPatientDetailsMissing1
      required:
        - data
        - error
      type: object
      properties:
        data:
          type: object
        error:
          $ref: '#/components/schemas/Error'
      example:
        data: {}
        error:
          code: NOT_ALLOWED
          message: You are not allowed to add resource
    500WrongAPIURLTokenmismatchedWrongJSONrequest.1:
      title: 500WrongAPIURLTokenmismatchedWrongJSONrequest.1
      required:
        - data
        - error
      type: object
      properties:
        data:
          type: object
        error:
          $ref: '#/components/schemas/Error'
      example:
        data: {}
        error:
          code: INVALID_DATA
          message: Data entered in incorrect
    Profile1:
      title: Profile1
      required:
        - personal
        - professional
      type: object
      properties:
        personal:
          $ref: '#/components/schemas/Personal'
        professional:
          $ref: '#/components/schemas/Professional'
      example:
        personal:
          salutation: Dr.
          first_name: doctor
          middle_name: ''
          last_name: doctor
          dob: ''
          gender: M
        professional:
          active: true
          about: doctor doctor is a Cardiologist with 43 years of experience.
          language:
            - code: en
              language: English
          degree:
            - name: 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'
    Error:
      title: Error
      required:
        - code
        - message
      type: object
      properties:
        code:
          type: string
        message:
          type: string
      example:
        code: NOT_ALLOWED
        message: You are not allowed to add resource
    Personal:
      title: Personal
      required:
        - salutation
        - first_name
        - middle_name
        - last_name
        - dob
        - gender
      type: object
      properties:
        first_name:
          type: string
        middle_name:
          type: string
        last_name:
          type: string
        dob:
          type: string
        gender:
          type: string
      example:
        first_name: doctor
        middle_name: ''
        last_name: doctor
        dob: ''
        gender: M
    Professional:
      title: Professional
      required:
        - active
        - about
        - language
        - degree
        - major_speciality
        - speciality
        - clinics
        - default_clinic
      type: object
      properties:
        active:
          type: boolean
        about:
          type: string
        language:
          type: array
          items:
            $ref: '#/components/schemas/Language'
          description: ''
        degree:
          type: array
          items:
            $ref: '#/components/schemas/Degree'
          description: ''
        major_speciality:
          $ref: '#/components/schemas/MajorSpeciality'
        speciality:
          type: array
          items:
            $ref: '#/components/schemas/Speciality'
          description: ''
        clinics:
          type: array
          items:
            $ref: '#/components/schemas/Clinic'
          description: ''
        default_clinic:
          type: string
      example:
        active: true
        about: doctor doctor is a Cardiologist with 43 years of experience.
        language:
          - code: en
            language: English
        degree:
          - name: 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'
    Language:
      title: Language
      required:
        - code
        - language
      type: object
      properties:
        code:
          type: string
        language:
          type: string
      example:
        code: en
        language: English
    Degree:
      title: Degree
      required:
        - name
        - branch_name
        - college_name
        - start_year
        - end_year
      type: object
      properties:
        name:
          type: string
        branch_name:
          type: string
        college_name:
          type: string
        start_year:
          type: string
        end_year:
          type: string
      example:
        name: MD
        branch_name: ''
        college_name: ''
        start_year: ''
        end_year: ''
    MajorSpeciality:
      title: MajorSpeciality
      required:
        - name
        - code
      type: object
      properties:
        name:
          type: string
        code:
          type: string
      example:
        name: Cardiologist
        code: CA
    Speciality:
      title: Speciality
      required:
        - name
      type: object
      properties:
        name:
          type: string
      example:
        name: General Physician
    Clinic:
      title: Clinic
      required:
        - id
        - name
        - contacts
        - address
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        contacts:
          type: array
          items:
            $ref: '#/components/schemas/Contact'
          description: ''
        address:
          $ref: '#/components/schemas/Address2'
      example:
        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'
    Contact:
      title: Contact
      required:
        - name
        - number
      type: object
      properties:
        name:
          type: string
        number:
          type: string
      example:
        name: Phone
        number: '+91999999999'
    Address2:
      title: Address2
      required:
        - line1
        - city
        - country
        - state
        - pin
      type: object
      properties:
        line1:
          type: string
        city:
          type: string
        country:
          type: string
        state:
          type: string
        pin:
          type: string
      example:
        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'

````