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

# List Enrollments

> Fetches information about provider enrollments in the platform. Allows retrieval of provider/payer IDs for use in other APIs.



## OpenAPI

````yaml GET /api/fetch-provider-enrollments
openapi: 3.1.0
info:
  title: Cair Health APIs
  description: APIs for the Cair Health platform
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://forecaster.cairhealth.com
security:
  - bearerAuth: []
paths:
  /api/fetch-provider-enrollments:
    get:
      description: >-
        Fetches information about provider enrollments in the platform. Allows
        retrieval of provider/payer IDs for use in other APIs.
      parameters:
        - name: providerNPI
          in: query
          description: >-
            Optional NPI identifier to filter enrollments for a specific
            provider
          required: false
          schema:
            type: string
      responses:
        '200':
          description: Provider enrollments retrieved successfully
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    providerName:
                      type: string
                      description: Name of provider registered in EDI transactions
                    providerId:
                      type: string
                      description: Unique identifier associated with the provider
                    providerNPI:
                      type: string
                      description: NPI identifier for provider
                    payerId:
                      type: string
                      description: Payer identifier for the enrollment
                    payerName:
                      type: string
                      description: Name associated with the payer
                    transactionsSupported:
                      type: array
                      description: EDI transactions supported for this enrollment
                      items:
                        type: string
                        enum:
                          - Claim Payment (ERA)
                          - Professional Claim Submission
                          - Institutional Claim Submission
                          - Dental Claim Submission
                          - Eligibility Inquiry
                          - Claim Status Inquiry
              example:
                - providerName: John Doe
                  providerId: 0195b964-5b2c-7bb3-875a-276ad770dc66
                  providerNPI: '0987654321'
                  payerId: HGJLR
                  payerName: Cigna
                  transactionsSupported:
                    - Claim Payment (ERA)
                    - Professional Claim Submission
                    - Eligibility Inquiry
                    - Claim Status Inquiry
                - providerName: Jane Doe
                  providerId: 0195b964-5b2c-7bb3-875a-276ad770dc66
                  providerNPI: '1234567890'
                  payerId: HPQRS
                  payerName: Aetna
                  transactionsSupported:
                    - Claim Payment (ERA)
                    - Professional Claim Submission
                    - Eligibility Inquiry
                    - Claim Status Inquiry
        '401':
          description: Unauthorized access or invalid credentials
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: Organization not found
        '500':
          description: Server error or provider/enrollment not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: >-
                  Provider NPI not found. Make sure the provider is enrolled
                  with your organization.
      security:
        - bearerAuth: []
components:
  schemas:
    Error:
      type: object
      properties:
        message:
          type: string
          description: Error message
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````