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

# List patient-tracking sources

> The organization's EHR connections the tracker can read through, with availability and capabilities. Metadata only: no EHR call is made.



## OpenAPI

````yaml /openapi-v4.json get /patient-tracking/sources
openapi: 3.0.0
info:
  title: Max AI Public API
  description: API for third-party marketplace apps
  version: '4.0'
  contact: {}
servers:
  - url: https://api.maxcare.ai/v4
security: []
tags: []
paths:
  /patient-tracking/sources:
    get:
      tags:
        - Patient Tracking
      summary: List patient-tracking sources
      description: >-
        The organization's EHR connections the tracker can read through, with
        availability and capabilities. Metadata only: no EHR call is made.
      operationId: PatientTrackingPublicController_listSources
      parameters:
        - name: X-Organization-Id
          in: header
          required: true
          schema:
            type: string
          description: Target clinic organization ID
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PatientTrackingSourcesSuccessResponse'
        '400':
          description: Missing or invalid request parameter
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiBadRequestResponse'
        '401':
          description: Invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiUnauthorizedResponse'
        '403':
          description: Insufficient scope
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiForbiddenResponse'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicApiRateLimitResponse'
      security:
        - api-key: []
components:
  schemas:
    PatientTrackingSourcesSuccessResponse:
      type: object
      properties:
        code:
          type: string
          description: Response code
          example: success
        data:
          $ref: '#/components/schemas/PatientTrackingSourcesResponseDto'
      required:
        - code
        - data
    PublicApiBadRequestResponse:
      type: object
      properties:
        code:
          type: string
          description: Error code
          example: bad_request
        message:
          type: string
          description: Human-readable error message
          example: '''id'' must be a valid UUID'
        trace_id:
          type: string
          description: Trace ID for debugging
          example: 550e8400-e29b-41d4-a716-446655440000
      required:
        - code
        - message
        - trace_id
    PublicApiUnauthorizedResponse:
      type: object
      properties:
        code:
          type: string
          description: Error code
          example: unauthorized
        message:
          type: string
          description: Human-readable error message
          example: Invalid or missing API key
        trace_id:
          type: string
          description: Trace ID for debugging
          example: 550e8400-e29b-41d4-a716-446655440000
      required:
        - code
        - message
        - trace_id
    PublicApiForbiddenResponse:
      type: object
      properties:
        code:
          type: string
          description: Error code
          example: forbidden
        message:
          type: string
          description: Human-readable error message
          example: Insufficient scope
        trace_id:
          type: string
          description: Trace ID for debugging
          example: 550e8400-e29b-41d4-a716-446655440000
      required:
        - code
        - message
        - trace_id
    PublicApiRateLimitResponse:
      type: object
      properties:
        code:
          type: string
          description: Error code
          example: rate_limit_exceeded
        message:
          type: string
          description: Human-readable error message
          example: Rate limit exceeded. Maximum 1000 requests per 60 seconds.
        trace_id:
          type: string
          description: Trace ID for debugging
          example: 550e8400-e29b-41d4-a716-446655440000
      required:
        - code
        - message
        - trace_id
    PatientTrackingSourcesResponseDto:
      type: object
      properties:
        sources:
          type: array
          items:
            $ref: '#/components/schemas/PatientTrackingSourceDto'
      required:
        - sources
    PatientTrackingSourceDto:
      type: object
      properties:
        sourceId:
          type: string
          example: pts_00000000000040008000000000000001
        instanceId:
          type: string
          example: ins_00000000000040008000000000000002
        ehr:
          type: string
          enum:
            - ezderm
            - modmed
          example: modmed
        label:
          type: string
          example: Front desk
        availability:
          $ref: '#/components/schemas/PatientTrackingSourceAvailabilityDto'
        capabilities:
          $ref: '#/components/schemas/PatientTrackingCapabilitiesDto'
        recommendedPollIntervalSeconds:
          type: number
          example: 10
      required:
        - sourceId
        - instanceId
        - ehr
        - label
        - availability
        - capabilities
        - recommendedPollIntervalSeconds
    PatientTrackingSourceAvailabilityDto:
      type: object
      properties:
        available:
          type: boolean
          example: true
        reason:
          type: string
          enum:
            - connector_not_configured
            - connector_paused
            - connector_auth_error
            - upstream_unavailable
            - upstream_rate_limited
          nullable: true
          example: null
      required:
        - available
        - reason
    PatientTrackingCapabilitiesDto:
      type: object
      properties:
        historicalDates:
          type: boolean
          description: Whether past days can be read
          example: true
        facilitySelection:
          type: string
          enum:
            - single
            - multiple
          example: single
        providerFilter:
          type: string
          enum:
            - any_encounter_role
            - primary_provider
          example: primary_provider
        arrivalTimes:
          type: boolean
          example: true
        officeFlow:
          type: boolean
          example: true
        counts:
          $ref: '#/components/schemas/PatientTrackingCountCapabilitiesDto'
      required:
        - historicalDates
        - facilitySelection
        - providerFilter
        - arrivalTimes
        - officeFlow
        - counts
    PatientTrackingCountCapabilitiesDto:
      type: object
      properties:
        seen:
          type: boolean
          example: true
        scheduled:
          type: boolean
          example: true
      required:
        - seen
        - scheduled
  securitySchemes:
    api-key:
      scheme: bearer
      bearerFormat: JWT
      type: http
      description: Marketplace API key

````

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