Lingopal Languages API

List supported language capabilities for dubbing, text, and other workflows.

OpenAPI Specification

lingopal-languages-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Lingopal API v2 Jobs Languages API
  description: Lingopal API for uploading media and documents, starting translation workflows, generating subtitles, translating text, and downloading generated artifacts.
  version: v2
servers:
- url: https://vod-api.lingopal-dev.com
security:
- APIKeyHeader: []
tags:
- name: Languages
  description: List supported language capabilities for dubbing, text, and other workflows.
paths:
  /v2/languages/{language_type}:
    get:
      tags:
      - Languages
      summary: List supported languages
      description: Returns language capabilities filtered by dubbing, text, or all supported workflows.
      operationId: listLanguages
      parameters:
      - name: language_type
        in: path
        required: true
        schema:
          enum:
          - dubbing
          - text
          - all
          type: string
          title: Language Type
      responses:
        '200':
          description: Supported language list with capability flags.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LanguageInfoResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '500':
          description: The server failed to complete the request.
      security:
      - APIKeyHeader: []
components:
  schemas:
    LanguageInfoResponse:
      properties:
        request_type:
          type: string
          enum:
          - dubbing
          - text
          - all
          title: Request Type
          description: Language capability filter used for the response.
        count:
          type: integer
          title: Count
          description: Number of returned languages.
        languages:
          items:
            $ref: '#/components/schemas/app__views__v2__languages__schemas__LanguageInfo'
          type: array
          title: Languages
          description: Supported languages and capability flags.
      type: object
      required:
      - request_type
      - count
      - languages
      title: LanguageInfoResponse
    app__views__v2__languages__schemas__LanguageInfo:
      properties:
        locale:
          type: string
          title: Locale
          description: Locale code used in API requests.
          examples:
          - es
        language:
          type: string
          title: Language
          description: Human-readable language name.
          examples:
          - Spanish
        dubbing_support:
          type: boolean
          title: Dubbing Support
          description: Whether dubbing workflows support this language.
        voice_cloning_support:
          type: boolean
          title: Voice Cloning Support
          description: Whether voice cloning is supported for this language.
        text_support:
          type: boolean
          title: Text Support
          description: Whether text/document workflows support this language.
        language_id:
          type: integer
          title: Language Id
          description: Internal Lingopal language identifier.
          examples:
          - 1
      type: object
      required:
      - locale
      - language
      - dubbing_support
      - voice_cloning_support
      - text_support
      - language_id
      title: LanguageInfo
    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:
    APIKeyHeader:
      in: header
      name: X-API-Key
      type: apiKey