Generated PDFs

As the name suggests, PDFs are a core part of Reportyy. On this page, we'll dive into the different PDF endpoints.


POST/api/v1/templates/:uid/generate-sync

Generate PDF from template

This endpoint will generate a PDF from a specified template. The templated values must be passed as an object in the request body.

Request

POST
/api/v1/templates/:uid/generate-sync
curl -X POST https://api.reportyy.com/api/v1/templates/:uid/generate-sync \
  -H "Authorization: API-Key {api-key}" \
  -H "Content-Type: application/json" \
  -d '{"date": "14 Feb 2023"}'

Response

{{pdf stream}}