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

# List appointments



## OpenAPI

````yaml /openapi.json get /appointments
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:
    get:
      tags:
        - Appointments
      summary: List appointments
      operationId: listAppointments
      parameters:
        - name: from
          in: query
          schema:
            type: string
          description: >-
            A date (YYYY-MM-DD, from the start of that Cairo day) or a
            date-time.
        - name: to
          in: query
          schema:
            type: string
          description: A date (up to the end of that Cairo day) or a date-time (exclusive).
        - name: doctor_id
          in: query
          schema:
            type: string
        - name: branch_id
          in: query
          schema:
            type: string
        - name: patient_id
          in: query
          schema:
            type: string
        - name: status
          in: query
          schema:
            type: string
          description: Comma-separated, e.g. reserved,arrived
        - name: updated_since
          in: query
          schema:
            type: string
            format: date-time
        - $ref: '#/components/parameters/Limit'
        - $ref: '#/components/parameters/Cursor'
      responses:
        '200':
          description: A page of appointments
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AppointmentList'
components:
  parameters:
    Limit:
      name: limit
      in: query
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 50
    Cursor:
      name: cursor
      in: query
      schema:
        type: string
      description: '`next_cursor` from the previous page.'
  schemas:
    AppointmentList:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Appointment'
        next_cursor:
          type:
            - string
            - 'null'
    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
  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.