To generate the PDF by providing the input data and the template to the API, use the templates endpoint. The resulting response includes the fileId. This is a reference to the Tuum storage module, which you can access to download and store the PDF documents.