academyFIVE API Beta icon

academyFIVE API Beta

Interact with academyFIVE API

Actions482

Documents → Generate and download a cohort document PDF

AI-generated

Summary

Generate a PDF for a cohort by sending the supplied document data to the academyFIVE API. The response is returned as a binary file attached to the output item, with file metadata in its JSON data.

Inputs

  • data (required) — Document data object with required type, id, and attributes fields.
  • data.attributes.cohortId (required) — Numeric ID of the cohort for which to generate the PDF.
  • data.attributes.customProperties — JSON custom property values for the document. If empty, the API uses default values.

Output shape

One output item per input item, containing the PDF as binary data under binary.data and JSON metadata.

The JSON metadata includes mimeType, fileName, response headers, and statusCode. The filename is taken from the response headers or request URL when available; otherwise it is data. With Continue On Fail enabled, request errors are returned in the item’s JSON as error.

Links

Discussion