Skip to navigation

Large form PDFs no longer fail

Fixed: POST /forms/{form_id}/pdf

Exporting a form with many photos could fail with a 502 because the PDF, returned as base64 in the response, was larger than the response limit of about 5.5 MB. Two changes fix this:

  • Add "saveAsFile": true to the request. The PDF is saved as a file on the form’s record and the response returns a download URL instead of base64.
  • Without saveAsFile, an export that is too large now returns a clear 422 telling you to set it, instead of a 502.
{ "saveAsFile": true }
{
"pdfUrl": "https://...",
"fileId": 123456,
"contentType": "application/pdf",
"name": "Project_Site Visit Survey_2026-11-19.pdf"
}
  • Small exports without saveAsFile are unchanged: pdfBase64, contentType and name.
  • With saveAsFile, the response has no pdfBase64, whatever the size.
  • Every call with saveAsFile creates a new file in the record’s Files. Archive files you no longer need with the files endpoints.