> ## 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.

# Word Generate



## OpenAPI

````yaml /openapi.json post /word/generate
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:
  /word/generate:
    post:
      tags:
        - public
        - generate
      summary: Word Generate
      operationId: word_generate_api_v1_word_generate_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GenerateRequest'
        required: true
      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:
    GenerateRequest:
      properties:
        prompt:
          type: string
          maxLength: 10000
          minLength: 1
          title: Prompt
        mode:
          type: string
          enum:
            - action
            - ask
          title: Mode
          default: action
        run_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Run Id
          description: Provide to resume an existing run
        init_file:
          anyOf:
            - type: string
            - type: 'null'
          title: Init File
          description: file_id of an initial document
        context_files:
          anyOf:
            - items: {}
              type: array
            - type: 'null'
          title: Context Files
        data_sources:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          title: Data Sources
        image_assets:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          title: Image Assets
        brand:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Brand
        async:
          type: boolean
          title: Async
          default: false
        webhook_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Webhook Url
        idempotency_key:
          anyOf:
            - type: string
            - type: 'null'
          title: Idempotency Key
        file_name:
          anyOf:
            - type: string
            - type: 'null'
          title: File Name
        timeout_ms:
          anyOf:
            - type: integer
              maximum: 1800000
              minimum: 10000
            - type: 'null'
          title: Timeout Ms
      type: object
      required:
        - prompt
      title: GenerateRequest
    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>`.

````