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

# Translate Campaign Content Endpoint

> Translate the campaign's participant-facing content into a language.

Pure transformation: the editor sends the content it currently holds and
renders the result as a reviewable preview. Nothing is written here —
applying is the organizer's explicit second step, because this rewrites
text they authored.



## OpenAPI

````yaml /openapi.json post /v1/campaign-creation/{interview_id}/translate-content
openapi: 3.1.0
info:
  title: Ontora API
  description: >-
    Ontora's public API. Covers interview campaigns, transcripts, synthesis
    reports, graph queries, webhooks, and workspace management. 


    **Authentication**: endpoints accept either a Clerk JWT (`Authorization:
    Bearer <token>`) or a workspace API key (`X-API-Key: ont_...`). Workspace
    keys are managed via `/v1/api-keys`.
  version: 0.1.0
servers: []
security:
  - ClerkJWT: []
  - WorkspaceApiKey: []
tags:
  - name: interviews
    description: Campaign CRUD, lifecycle, contacts, question sets.
  - name: campaign-insights
    description: Synthesis outputs — cartography, roadmap, personas, conversations.
  - name: interview-query
    description: Graph RAG query over campaign data.
  - name: campaign-reports
    description: Versioned synthesis Reports — manual regenerate, version history.
  - name: interview-export
    description: Markdown / ZIP exports of transcripts and reports.
  - name: api-keys
    description: Manage workspace-scoped API keys for programmatic access.
  - name: webhook-endpoints
    description: Outbound webhook endpoints for automation.
  - name: booking
    description: Public self-scheduling endpoints for interview participants.
  - name: join
    description: Public QR-code / share-link self-registration for campaign participants.
  - name: workspaces
    description: Workspace and membership management.
  - name: vaults
    description: Context vault management.
paths:
  /v1/campaign-creation/{interview_id}/translate-content:
    post:
      tags:
        - campaign-creation
      summary: Translate Campaign Content Endpoint
      description: |-
        Translate the campaign's participant-facing content into a language.

        Pure transformation: the editor sends the content it currently holds and
        renders the result as a reviewable preview. Nothing is written here —
        applying is the organizer's explicit second step, because this rewrites
        text they authored.
      operationId: >-
        translate_campaign_content_endpoint_v1_campaign_creation__interview_id__translate_content_post
      parameters:
        - name: interview_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Interview Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TranslateCampaignContentRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TranslateCampaignContentResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    TranslateCampaignContentRequest:
      properties:
        target_language:
          type: string
          title: Target Language
        content:
          $ref: '#/components/schemas/CampaignContent'
      type: object
      required:
        - target_language
        - content
      title: TranslateCampaignContentRequest
    TranslateCampaignContentResponse:
      properties:
        target_language:
          type: string
          title: Target Language
        content:
          $ref: '#/components/schemas/CampaignContent'
      type: object
      required:
        - target_language
        - content
      title: TranslateCampaignContentResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CampaignContent:
      properties:
        interview_context_for_employee:
          type: string
          title: Interview Context For Employee
          default: ''
        welcome_screen:
          type: string
          title: Welcome Screen
          default: ''
        closing_message:
          type: string
          title: Closing Message
          default: ''
        invitation_email_message:
          type: string
          title: Invitation Email Message
          default: ''
        teams_invitation_message:
          type: string
          title: Teams Invitation Message
          default: ''
        topics:
          items:
            $ref: '#/components/schemas/TranslatableTopic'
          type: array
          title: Topics
      type: object
      title: CampaignContent
      description: Every participant-facing string of a campaign, in the editor's shape.
    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
    TranslatableTopic:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
          default: ''
        goal:
          type: string
          title: Goal
          default: ''
        questions:
          items:
            $ref: '#/components/schemas/TranslatableQuestion'
          type: array
          title: Questions
      type: object
      required:
        - id
      title: TranslatableTopic
    TranslatableQuestion:
      properties:
        id:
          type: string
          title: Id
        text:
          type: string
          title: Text
          default: ''
        options:
          items:
            type: string
          type: array
          title: Options
        follow_up_guideline:
          type: string
          title: Follow Up Guideline
          default: ''
        screen_share_prompt:
          type: string
          title: Screen Share Prompt
          default: ''
        component_config:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Component Config
      type: object
      required:
        - id
      title: TranslatableQuestion
  securitySchemes:
    ClerkJWT:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Clerk-issued RS256 JWT.
    WorkspaceApiKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: 'Workspace-scoped API key (prefix: `ont_`).'
    HTTPBearer:
      type: http
      scheme: bearer

````