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

# Export Run

> Re-export a completed run in a different format.

Converts the run's primary output to the requested format on our side
and caches the result. Repeat calls for the same format return the
cached rendition instead of re-running the conversion.



## OpenAPI

````yaml /openapi.json post /runs/{run_id}/export
openapi: 3.1.0
info:
  title: Overten API
  version: 1.0.0
  description: >-
    Generate and edit Word, Excel, and PowerPoint documents programmatically.
    Powered by the same agents as the Overten web app.
  contact:
    name: Overten Support
    url: https://overten.ai/support
    email: support@overten.ai
  license:
    name: Terms of Service
    url: https://overten.ai/terms
servers:
  - url: https://backend.overtenai.com/api/v1
    description: Production
  - url: http://localhost:8000/api/v1
    description: Local development
security:
  - ApiKeyAuth: []
paths:
  /runs/{run_id}/export:
    post:
      tags:
        - public
        - runs
      summary: Export Run
      description: |-
        Re-export a completed run in a different format.

        Converts the run's primary output to the requested format on our side
        and caches the result. Repeat calls for the same format return the
        cached rendition instead of re-running the conversion.
      operationId: export_run_api_v1_runs__run_id__export_post
      parameters:
        - name: run_id
          in: path
          required: true
          schema:
            type: string
            title: Run Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExportRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    ExportRequest:
      properties:
        format:
          type: string
          enum:
            - pdf
            - png
            - html
            - txt
            - csv
            - xlsx
            - docx
            - pptx
          title: Format
      type: object
      required:
        - format
      title: ExportRequest
    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:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        Send `X-API-Key: sk_live_<your_key>`. Keys are issued via POST /signup
        or via the dashboard. Legacy callers may also use `Authorization: Bearer
        sk_live_<your_key>`.

````