> ## Documentation Index
> Fetch the complete documentation index at: https://hmis-docs.derrickmugabwa.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Get clinic appointment availability



## OpenAPI

````yaml /openapi-staff.yaml get /clinics/{clinic}/appointment-availability
openapi: 3.1.0
info:
  title: HMIS Staff Workflow API
  version: 1.0.0
  description: >-
    Clinic-scoped patient registration, appointments, outpatient visits, and
    clinical workspace operations.
servers:
  - url: https://jaliprohmis.derrickmugabwa.dev/api/v1
    description: HMIS staging API
security:
  - bearerAuth: []
tags:
  - name: Staff patients
  - name: Staff appointments
  - name: Staff outpatient visits
  - name: Staff clinical workspace
paths:
  /clinics/{clinic}/appointment-availability:
    get:
      tags:
        - Staff appointments
      summary: Get clinic appointment availability
      operationId: getStaffAppointmentAvailability
      parameters:
        - $ref: '#/components/parameters/ClinicId'
        - $ref: '#/components/parameters/RequiredDate'
      responses:
        '200':
          $ref: '#/components/responses/CollectionResponse'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/ValidationError'
components:
  parameters:
    ClinicId:
      name: clinic
      in: path
      required: true
      schema:
        type: integer
    RequiredDate:
      name: date
      in: query
      required: true
      schema:
        type: string
        format: date
  responses:
    CollectionResponse:
      description: Resource collection returned.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/CollectionEnvelope'
    NotFound:
      description: >-
        Resource is outside the authenticated staff clinic scope or does not
        exist.
    ValidationError:
      description: Request validation or workflow transition failed.
  schemas:
    CollectionEnvelope:
      type: object
      properties:
        data:
          type: array
          items:
            type: object
            additionalProperties: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Sanctum staff token

````