academyFIVE API icon

academyFIVE API

Interact with academyFIVE API

Actions549

Documents → Generate and download a cohort document PDF

AI-generated

Summary

Generate a PDF document for a specified cohort using detailed input data and download the resulting binary PDF file.

Inputs

  • data (required) — An object containing the required properties for document generation: 'type' (string), 'id' (string), and 'attributes' which includes 'cohortId' (number) and optionally 'customProperties' (JSON) to customize the document; if 'customProperties' is omitted, default values are used.

Output shape

a single binary file representing the generated PDF document

The operation returns the PDF as binary data with metadata such as mimeType, fileName, headers, and HTTP status code. The output is suitable for direct download or further binary processing in the workflow.

Links

Discussion