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

# List assigned clinics

> List active clinics assigned to the authenticated user.

Returns active clinics with branch and department context.


## OpenAPI

````yaml GET /clinics
openapi: 3.1.0
info:
  title: HMIS API
  version: 1.0.0
  description: >-
    Versioned API for HMIS foundation resources and laboratory/radiology
    integrations. All operations use Laravel Sanctum bearer tokens with a
    dedicated ability per operation.
servers:
  - url: https://jaliprohmis.derrickmugabwa.dev/api/v1
    description: HMIS staging API
security:
  - bearerAuth: []
tags:
  - name: Foundation
    description: Authenticated HMIS context and reference data.
  - name: Laboratory integration
    description: Analyzer worklists and result ingestion.
  - name: Radiology integration
    description: PACS worklists and study ingestion.
paths:
  /clinics:
    get:
      tags:
        - Foundation
      summary: List assigned active clinics
      description: >-
        Returns active clinics assigned to the authenticated user. Requires
        `hmis:read`.
      operationId: listClinics
      responses:
        '200':
          description: Assigned clinics.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClinicCollectionResponse'
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '403':
          $ref: '#/components/responses/Forbidden'
components:
  schemas:
    ClinicCollectionResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Clinic'
    Clinic:
      type: object
      properties:
        id:
          type: integer
        branch_id:
          type: integer
        department_id:
          type: integer
        name:
          type: string
        code:
          type: string
        supports_outpatient:
          type: boolean
        supports_inpatient:
          type: boolean
        is_active:
          type: boolean
        is_primary:
          type: boolean
    ErrorResponse:
      type: object
      required:
        - message
      properties:
        message:
          type: string
          example: Unauthenticated.
      additionalProperties: true
  responses:
    Unauthenticated:
      description: Missing or invalid bearer token.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Forbidden:
      description: Bearer token is valid but lacks the required ability.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Sanctum personal access token
      description: >-
        Paste a Sanctum personal access token generated by a HMIS super
        administrator. Use only a token with the ability required by the
        selected operation.

````