Generate DOCX from template

POST https://app.cyrion.ai/api/reports/{report_id}/generate-docx

Generate a DOCX file from a report using a template.

If template_id is not provided, it will:

  1. Look for a template named 'Cyrion_AI_Penetration_Testing_Report_Template' or similar
  2. Fall back to the first available template
  3. Generate from scratch if no templates are available

Request body (optional):

  • company_name: Company name to display on the report
  • company_logo: Base64 encoded logo or data URL

Path parameters

  • report_id (string, required)

Query parameters

  • template_id (integer): Template ID to use. If not provided, uses the default or first available template.

Request body

  • company_logo (string)
  • company_name (string)

Responses

  • 200 Successful Response
  • 422 Validation Error