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

# Validate Provider Configuration

> Validate provider configurations before creating or updating an agent.

This endpoint checks:
- API key validity for each provider
- Voice ID existence (for TTS providers like ElevenLabs, Cartesia)
- Model availability (for STT/LLM providers)
- Account quota status (where applicable)

Use this to pre-validate configurations before agent creation.



## OpenAPI

````yaml https://api.mrassistant.ai/openapi.json post /admin/providers/validate
openapi: 3.1.0
info:
  title: Backend - Multilingual Voice Agent System
  description: FastAPI backend for multilingual voice agents with tool use
  version: 1.0.0
servers: []
security: []
paths:
  /admin/providers/validate:
    post:
      tags:
        - admin-providers
      summary: Validate Provider Configuration
      description: |-
        Validate provider configurations before creating or updating an agent.

        This endpoint checks:
        - API key validity for each provider
        - Voice ID existence (for TTS providers like ElevenLabs, Cartesia)
        - Model availability (for STT/LLM providers)
        - Account quota status (where applicable)

        Use this to pre-validate configurations before agent creation.
      operationId: validate_provider_configuration_admin_providers_validate_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ProviderValidationRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    ProviderValidationRequest:
      properties:
        voice_provider:
          anyOf:
            - type: string
            - type: 'null'
          title: Voice Provider
          description: TTS provider name
          default: elevenlabs
        voice_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Voice Id
          description: Voice ID to validate
        transcriber_provider:
          anyOf:
            - type: string
            - type: 'null'
          title: Transcriber Provider
          description: STT provider name
          default: deepgram
        transcriber_model:
          anyOf:
            - type: string
            - type: 'null'
          title: Transcriber Model
          description: STT model to validate
        model_provider:
          anyOf:
            - type: string
            - type: 'null'
          title: Model Provider
          description: LLM provider name
          default: openai
        model_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Model Name
          description: LLM model to validate
      type: object
      title: ProviderValidationRequest
      description: Request model for provider validation.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````