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

# Validate API Key

> Checks whether the API Key provided in the Authorization header is valid. Invalid, missing, or malformed credentials return a successful response with is_valid set to false.



## OpenAPI

````yaml /common-api/validate-api-key.json get /api/v1/apikey/validate
openapi: 3.1.0
info:
  description: >-
    Validate whether an API Key is currently accepted by the Modellix Prediction
    API.
  version: 1.0.0
  contact:
    name: Modellix API Support
    email: support@modellix.ai
  title: API Key Validation API
servers:
  - url: https://api.modellix.ai/
    description: Production server
security:
  - bearerAuth: []
paths:
  /api/v1/apikey/validate:
    get:
      summary: Validate API Key
      description: >-
        Checks whether the API Key provided in the Authorization header is
        valid. Invalid, missing, or malformed credentials return a successful
        response with is_valid set to false.
      operationId: validateAPIKey
      responses:
        '200':
          description: Validation result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIKeyValidationResponse'
              examples:
                valid:
                  summary: Valid API Key
                  value:
                    code: 0
                    message: success
                    data:
                      is_valid: true
                invalid:
                  summary: Invalid API Key
                  value:
                    code: 0
                    message: success
                    data:
                      is_valid: false
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  schemas:
    APIKeyValidationResponse:
      type: object
      required:
        - code
        - message
        - data
      properties:
        code:
          type: integer
          description: Response code, 0 indicates success
          example: 0
        message:
          type: string
          description: Response message
          example: success
        data:
          type: object
          required:
            - is_valid
          properties:
            is_valid:
              type: boolean
              description: Whether the provided API Key is valid
              example: true
    ErrorResponse:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: integer
          description: Error code
          example: 500
        message:
          type: string
          description: Error message
          example: Internal server error
  responses:
    InternalServerError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            code: 500
            message: Internal server error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'API Key authentication. Format: Bearer YOUR_API_KEY'

````