> ## 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 Report To Docx

> Export a specific report from a record to DOCX format.

This endpoint fetches a report's Markdown content from the database
and converts it to DOCX format.

Parameters:
- **rec_id**: Record UUID
- **report_type**: Type of report (qa, persona, custom, jtbd)
- **version**: Optional report version (defaults to latest)
- **locale**: Document language
- **admonition_support**: Enable admonition blocks

Returns:
- DOCX file

Errors:
- 404: Record or report not found
- 400: Invalid report type
- 500: Conversion failed



## OpenAPI

````yaml /api-reference/openapi-filtered.json post /insight/export/report-docx/{rec_id}
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/report-docx/{rec_id}:
    post:
      tags:
        - insight
      summary: Export Report To Docx
      description: |-
        Export a specific report from a record to DOCX format.

        This endpoint fetches a report's Markdown content from the database
        and converts it to DOCX format.

        Parameters:
        - **rec_id**: Record UUID
        - **report_type**: Type of report (qa, persona, custom, jtbd)
        - **version**: Optional report version (defaults to latest)
        - **locale**: Document language
        - **admonition_support**: Enable admonition blocks

        Returns:
        - DOCX file

        Errors:
        - 404: Record or report not found
        - 400: Invalid report type
        - 500: Conversion failed
      operationId: export_report_to_docx_insight_export_report_docx__rec_id__post
      parameters:
        - name: rec_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Rec Id
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: >-
                #/components/schemas/Body_export_report_to_docx_insight_export_report_docx__rec_id__post
      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_report_to_docx_insight_export_report_docx__rec_id__post:
      properties:
        report_type:
          type: string
          title: Report Type
          description: 'Report type: qa, persona, custom, jtbd'
        version:
          anyOf:
            - type: integer
            - type: 'null'
          title: Version
          description: Report version (optional)
        locale:
          type: string
          title: Locale
          description: Document language locale
          default: ru-RU
        admonition_support:
          type: boolean
          title: Admonition Support
          description: Enable admonition block processing
          default: true
      type: object
      required:
        - report_type
      title: Body_export_report_to_docx_insight_export_report_docx__rec_id__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

````