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

> List active HMIS services and billing context.

Returns a paginated service collection. The default page size is 50.


## OpenAPI

````yaml GET /services
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:
  /services:
    get:
      tags:
        - Foundation
      summary: List active services
      description: >-
        Returns active services with account-head and service-section context.
        Results are paginated at 50 services per page. Requires `hmis:read`.
      operationId: listServices
      parameters:
        - $ref: '#/components/parameters/Page'
      responses:
        '200':
          description: Paginated services.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServicePaginatedResponse'
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '403':
          $ref: '#/components/responses/Forbidden'
components:
  parameters:
    Page:
      name: page
      in: query
      required: false
      schema:
        type: integer
        minimum: 1
        default: 1
  schemas:
    ServicePaginatedResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Service'
        links:
          $ref: '#/components/schemas/PaginationLinks'
        meta:
          $ref: '#/components/schemas/PaginationMeta'
    Service:
      type: object
      properties:
        id:
          type: integer
        department_id:
          type:
            - integer
            - 'null'
        account_head_id:
          type:
            - integer
            - 'null'
        service_section_id:
          type:
            - integer
            - 'null'
        name:
          type: string
        code:
          type:
            - string
            - 'null'
        is_clinical:
          type: boolean
        is_consultation:
          type: boolean
        supports_outpatient:
          type: boolean
        supports_inpatient:
          type: boolean
        base_price:
          type: string
        generates_queue:
          type: boolean
        queue_type:
          type:
            - string
            - 'null'
        requires_sample_collection:
          type: boolean
        sample_type:
          type:
            - string
            - 'null'
        tube_type:
          type:
            - string
            - 'null'
        account_head:
          type:
            - object
            - 'null'
        service_section:
          type:
            - object
            - 'null'
    PaginationLinks:
      type: object
      properties:
        first:
          type:
            - string
            - 'null'
        last:
          type:
            - string
            - 'null'
        prev:
          type:
            - string
            - 'null'
        next:
          type:
            - string
            - 'null'
    PaginationMeta:
      type: object
      properties:
        current_page:
          type: integer
        from:
          type:
            - integer
            - 'null'
        last_page:
          type: integer
        per_page:
          type: integer
        to:
          type:
            - integer
            - 'null'
        total:
          type: integer
      required:
        - current_page
        - last_page
        - per_page
        - total
    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.

````