Chat

Generate Infographic

Generate infographic PDF for a report.

Logic:

  • Uses current timestamp for infographic generation (no correlation with Report.generated_at)
  • Stores info_pdf_generation_time in s3_uri JSONB only (like PPTX does with pptx_generation_time)
  • Follows same versioning logic as PPTX:
    • If infographic exists and no changes → return existing
    • If infographic exists and changes detected → create new version
    • If no infographic exists → generate for current version
  • Poster image: First generation (report OR infographic) creates it, subsequent reuse it
  • If report_version_id is provided, generates for that specific version
post/api/v1/generate-infographic

Request

  • Base URL
    https://backend.caspr.ai (the document declares no server; this is the origin it was published from)
  • Auth
    OAuth 2
    Password
    Token URL: token

Request body

report_idstring required
report_version_idstring nullable

Response

Successful Response

successboolean required
messagestring required
report_version_idstring nullable
versioninteger nullable
info_pdf_s3_uristring nullable
info_pdf_generation_timestring nullable
report_idstring nullable
modifiedboolean nullable
already_existsboolean nullable

Changes

No recorded changes to this operation across all 1 revision of this API.