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

# List external auth providers

> Returns all external auth providers configured for the tenant.
Requires tenant admin authentication.




## OpenAPI

````yaml api/openapi-integration.yaml get /api/v1/admin/auth/providers
openapi: 3.1.0
info:
  title: MLM Platform Integration API
  version: 1.0.0
  description: >
    Tenant integrator APIs for external platform federation and member-data
    access,

    including OIDC token exchange, external user linking, genealogy, referrals,
    and commissions.


    ## Authentication

    All API requests require a tenant API key passed in the `x-tenant-api-key`
    header.


    ## Token Exchange

    External platforms can exchange their JWT tokens for MLM platform tokens
    using

    the `/api/v1/auth/exchange` endpoint.
  contact:
    name: MLM Platform Support
    email: support@mlm-platform.example.com
servers:
  - url: https://app.mlm-platform.com
    description: Production API
  - url: http://localhost:3000
    description: Local Development
security:
  - TenantApiKey: []
tags:
  - name: Auth
    description: Authentication and token exchange
  - name: Genealogy
    description: Member hierarchy and relationships
  - name: Referrals
    description: Referral statistics and QR codes
  - name: Commissions
    description: Commission history and breakdowns
  - name: Webhooks
    description: Webhook receivers for third-party providers (Stripe, Wise)
paths:
  /api/v1/admin/auth/providers:
    get:
      tags:
        - Auth
      summary: List external auth providers
      description: |
        Returns all external auth providers configured for the tenant.
        Requires tenant admin authentication.
      operationId: listAuthProviders
      parameters:
        - name: include_inactive
          in: query
          required: false
          schema:
            type: boolean
            default: false
          description: Include inactive providers in the response
      responses:
        '200':
          description: List of providers
          content:
            application/json:
              schema:
                type: object
                properties:
                  providers:
                    type: array
                    items:
                      $ref: '#/components/schemas/ExternalAuthProvider'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    ExternalAuthProvider:
      type: object
      properties:
        id:
          type: string
          format: uuid
        provider_id:
          type: string
          description: Unique identifier for this provider
        display_name:
          type: string
          description: Human-readable name
        issuer:
          type: string
          format: uri
          description: OIDC issuer URL
        jwks_uri:
          type: string
          format: uri
          description: JSON Web Key Set endpoint
        allowed_audiences:
          type: array
          items:
            type: string
          description: Valid audience values for tokens
        auto_create_users:
          type: boolean
          description: Whether to auto-create users on first token exchange
        default_membership_tier:
          type: string
          description: Tier assigned to auto-created users
        is_active:
          type: boolean
          description: Whether this provider is active
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
        details:
          type: object
  responses:
    Unauthorized:
      description: Unauthorized - invalid or missing API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error: Invalid API key
            code: UNAUTHORIZED
  securitySchemes:
    TenantApiKey:
      type: apiKey
      in: header
      name: x-tenant-api-key
      description: Tenant API key for authentication

````