academyFIVE API Beta icon

academyFIVE API Beta

Interact with academyFIVE API

Actions482

Documents → Deprecated: generate and download a document PDF

AI-generated

Summary

Sends a request to the academyFIVE API to generate and download a document PDF. Supply the required document data and target ID; the response is returned as binary file data with file metadata.

Inputs

  • data (required) — Document data object containing the required type, id, and attributes fields.
  • data.type (required) — Type of document data.
  • data.id (required) — Document identifier.
  • data.attributes (required) — Attributes object containing the required numeric targetId and optional numeric subTargetId and JSON customProperties. If customProperties is empty, the API uses its default values.

Output shape

One binary file item per input item, with the PDF in binary.data.

The JSON output includes mimeType, fileName, response headers, and statusCode. The filename is taken from the response Content-Disposition header when present, otherwise from the request URL, with data as a fallback. If continue-on-fail is enabled, errors are returned as JSON error items.

Links

Discussion