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

# Get an appointment



## OpenAPI

````yaml /openapi.json get /appointments/{id}
openapi: 3.1.0
info:
  title: Docistra API
  version: 1.0.0
  description: >-
    Connect your software to Docistra in both directions. All times are ISO
    8601; Docistra's clinics run on Cairo time (Africa/Cairo). Every path {id}
    takes Docistra's id or `ext:<your id>`.
servers:
  - url: https://docistra.com/api/v1
security:
  - bearerAuth: []
tags:
  - name: Organization
  - name: Patients
  - name: Appointments
  - name: Availability
  - name: Doctors
  - name: Doctor schedule
  - name: Branches
  - name: Reference data
  - name: Webhooks
paths:
  /appointments/{id}:
    parameters:
      - $ref: '#/components/parameters/Id'
    get:
      tags:
        - Appointments
      summary: Get an appointment
      operationId: getAppointment
      responses:
        '200':
          description: The appointment
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/Appointment'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  parameters:
    Id:
      name: id
      in: path
      required: true
      schema:
        type: string
      description: Docistra's id, or `ext:<your id>`.
  schemas:
    Appointment:
      type: object
      properties:
        object:
          const: appointment
        id:
          type: string
          format: uuid
        external_id:
          type:
            - string
            - 'null'
        status:
          type: string
          enum:
            - reserved
            - arrived
            - in_progress
            - completed
            - cancelled
            - no_show
        type:
          type: string
          enum:
            - reservation
            - recheck
          description: recheck = a follow-up visit
        patient_id:
          type: string
        patient_external_id:
          type:
            - string
            - 'null'
        doctor_id:
          type: string
        doctor_external_id:
          type:
            - string
            - 'null'
        branch_id:
          type:
            - string
            - 'null'
        branch_external_id:
          type:
            - string
            - 'null'
        start:
          type: string
          format: date-time
        end:
          type:
            - string
            - 'null'
          format: date-time
        queue_number:
          type:
            - integer
            - 'null'
          description: Set on a queue day instead of a time.
        source:
          type:
            - string
            - 'null'
          description: >-
            Where it was booked: api, ai_chat (the AI agent), booking_page,
            staff, ...
        notes:
          type:
            - string
            - 'null'
        cancel_reason:
          type:
            - string
            - 'null'
        rescheduled_from_id:
          type:
            - string
            - 'null'
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          example: slot_taken
      additionalProperties: true
  responses:
    NotFound:
      description: Not found in this organization
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Your API key (dk_live_...), from Settings > Integrations > API in
        Docistra.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.