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

> Returns a paginated list of providers. Requires read:providers scope.



## OpenAPI

````yaml /openapi-v2.json get /providers
openapi: 3.0.0
info:
  title: Max AI Public API
  description: API for third-party marketplace apps
  version: '2.0'
  contact: {}
servers:
  - url: https://api.maxcare.ai/v2
security: []
tags: []
paths:
  /providers:
    get:
      tags:
        - Providers
      summary: List providers
      description: Returns a paginated list of providers. Requires read:providers scope.
      operationId: ProvidersPublicController_listProviders
      parameters:
        - name: page
          required: false
          in: query
          description: Page number (1-indexed)
          schema:
            default: 1
            example: 1
        - name: pageSize
          required: false
          in: query
          description: Number of items per page (max 100)
          schema:
            default: 100
            example: 100
        - name: search
          required: false
          in: query
          description: Search by provider name
          schema:
            type: string
        - name: roleId
          required: false
          in: query
          description: Filter by role ID
          schema:
            type: string
        - name: hidden
          required: false
          in: query
          description: Filter by hidden status
          schema:
            type: boolean
        - 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/ListProvidersSuccessResponseV2'
        '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:
    ListProvidersSuccessResponseV2:
      type: object
      properties:
        code:
          type: string
          description: Response code
          example: success
        data:
          $ref: '#/components/schemas/ListProvidersResponseDataV2'
      required:
        - code
        - data
    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
    ListProvidersResponseDataV2:
      type: object
      properties:
        providers:
          type: array
          items:
            $ref: '#/components/schemas/ExternalProviderResponseV2'
        pagination:
          $ref: '#/components/schemas/PaginationInfoResponse'
      required:
        - providers
        - pagination
    ExternalProviderResponseV2:
      type: object
      properties:
        id:
          type: string
          description: Provider unique identifier
          example: d4e5f6a7-b8c9-4d0e-1f2a-3b4c5d6e7f8a
        firstName:
          type: string
          description: First name
          nullable: true
          example: James
        lastName:
          type: string
          description: Last name
          nullable: true
          example: Wilson
        displayFirstName:
          type: string
          description: Display first name
          nullable: true
          example: Dr. James
        displayLastName:
          type: string
          description: Display last name
          nullable: true
          example: Wilson, MD
        roles:
          description: Provider roles
          example:
            - Physician
            - Surgeon
          type: array
          items:
            type: string
        username:
          type: string
          description: EHR username
          nullable: true
          example: jwilson
        individualNpi:
          type: string
          description: Individual NPI number
          nullable: true
          example: '1234567890'
        canFinalize:
          type: boolean
          description: Whether the provider can finalize (bill-under) notes
          example: true
        canCosign:
          type: boolean
          description: Whether the provider can cosign other providers' notes
          example: false
        createdAt:
          type: string
          description: Created timestamp
          example: '2024-06-01T08:00:00.000Z'
        updatedAt:
          type: string
          description: Last updated timestamp
          example: '2025-02-10T16:45:00.000Z'
      required:
        - id
        - firstName
        - lastName
        - displayFirstName
        - displayLastName
        - roles
        - username
        - individualNpi
        - canFinalize
        - canCosign
        - createdAt
        - updatedAt
    PaginationInfoResponse:
      type: object
      properties:
        page:
          type: number
          description: Current page number
          example: 1
        pageSize:
          type: number
          description: Items per page
          example: 100
        totalCount:
          type: number
          description: Total number of items
          example: 250
        totalPages:
          type: number
          description: Total number of pages
          example: 3
      required:
        - page
        - pageSize
        - totalCount
        - totalPages
  securitySchemes:
    api-key:
      scheme: bearer
      bearerFormat: JWT
      type: http
      description: Marketplace API key

````