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

# Export To Docx

> Convert Markdown file to DOCX format using Pandoc.

This endpoint accepts a Markdown file and converts it to Microsoft Word (.docx) format
with support for custom admonition blocks (ad-info, ad-warning, ad-tip).

Parameters:
- **file**: Markdown file (multipart/form-data)
- **record_id**: Optional record UUID for logging and tracking
- **locale**: Document language (e.g., "ru-RU", "en-US")
- **title**: Output filename (without extension)
- **admonition_support**: Enable Lua filters for admonition blocks

Returns:
- DOCX file with proper MIME type and Content-Disposition header

Errors:
- 400: Invalid file or parameters
- 413: File too large (>8 MB)
- 500: Conversion failed
- 504: Conversion timeout (>60s)



## OpenAPI

````yaml /api-reference/openapi-filtered.json post /insight/export/docx
openapi: 3.1.0
info:
  title: Aseed Insight API
  version: 0.1.0
servers:
  - url: https://app.aseed.ai/custdev
security: []
tags:
  - name: insight
    description: 'Core insight endpoints: records, transcripts, generation, and chat.'
    x-displayName: Insight
  - name: insight_public
    description: Public insight endpoints for shared/public access.
    x-displayName: Insight Public
  - name: projects
    description: Project management endpoints.
    x-displayName: Projects
  - name: project_reports
    description: Project report generation and management endpoints.
    x-displayName: Project Reports
  - name: project_reports_public
    description: Public project report endpoints.
    x-displayName: Project Reports Public
  - name: prompts
    description: Custom prompts management endpoints.
    x-displayName: Prompts
  - name: presets
    description: Presets and templates endpoints.
    x-displayName: Presets
  - name: agent
    description: AI agent threads and chat endpoints.
    x-displayName: Agent
  - name: interviews
    description: AI interviewer room and session endpoints.
    x-displayName: Interviews
  - name: webhooks
    description: Incoming webhook endpoints.
    x-displayName: Webhooks
paths:
  /insight/export/docx:
    post:
      tags:
        - insight
      summary: Export To Docx
      description: >-
        Convert Markdown file to DOCX format using Pandoc.


        This endpoint accepts a Markdown file and converts it to Microsoft Word
        (.docx) format

        with support for custom admonition blocks (ad-info, ad-warning, ad-tip).


        Parameters:

        - **file**: Markdown file (multipart/form-data)

        - **record_id**: Optional record UUID for logging and tracking

        - **locale**: Document language (e.g., "ru-RU", "en-US")

        - **title**: Output filename (without extension)

        - **admonition_support**: Enable Lua filters for admonition blocks


        Returns:

        - DOCX file with proper MIME type and Content-Disposition header


        Errors:

        - 400: Invalid file or parameters

        - 413: File too large (>8 MB)

        - 500: Conversion failed

        - 504: Conversion timeout (>60s)
      operationId: export_to_docx_insight_export_docx_post
      requestBody:
        content:
          multipart/form-data:
            schema:
              $ref: >-
                #/components/schemas/Body_export_to_docx_insight_export_docx_post
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    Body_export_to_docx_insight_export_docx_post:
      properties:
        file:
          type: string
          format: binary
          title: File
          description: Markdown file to convert
        record_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Record Id
          description: Record UUID for logging
        locale:
          type: string
          title: Locale
          description: Document language locale
          default: ru-RU
        title:
          type: string
          title: Title
          description: Document title
          default: Export
        admonition_support:
          type: boolean
          title: Admonition Support
          description: Enable admonition block processing
          default: true
      type: object
      required:
        - file
      title: Body_export_to_docx_insight_export_docx_post
    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
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````