Xano lets you integrate with DocuGenerate to add document creation to your backend. Our snippet provides custom functions for handling templates and generating documents, helping you automate workflows and create high-quality PDFs effortlessly.
1. Add the DocuGenerate Snippet
2. Use the Functions to Build Logic
3. Generate Document (Function)
4. List Documents (Function)
5. Get Document (Function)
6. Update Document (Function)
7. Delete Document (Function)
8. Create Template (Function)
9. List Templates (Function)
10. Get Template (Function)
11. Update Template (Function)
12. Delete Template (Function)
To get started, add the DocuGenerate snippet to your Xano account and configure it with your API key. We use Xano environment variables to securely store your API key.
Go to your DocuGenerate account settings to obtain your API Key and enter it the Xano workspace settings as the value for the docugenerate_api_key
environment variable:
Once the snippet is added to your workspace, you can incorporate DocuGenerate’s custom functions to build the logic for your backend workflows.
This allows you to define the exact logic for creating, updating, or managing templates and documents within your application.
This function creates a document from a specified template and dataset. Define the document’s name, filename, and format, and provide the data to populate fields in the template. The following inputs are customizable:
.pdf
, .docx
, .doc
, .odt
, .txt
, .html
, .png
).Fetches a list of documents generated from a specific template, allowing you to track or display previously generated documents related to a template. It requires the following input:
This function retrieves metadata for a specific document, such as its filename, format, and document URI. The following input is required :
Use this function to modify details of an existing document, such as updating the document’s name. The following inputs are expected:
This function deletes a document from your DocuGenerate account. It requires the following input:
Upload a new file as a template to your DocuGenerate account. This action also allows you to specify an optional name for the template. Once uploaded, this template can be used to generate documents based on user data. The following inputs are expected:
Use this call to retrieve a list of all templates stored in your DocuGenerate account, including basic details such as template names and IDs.
This call retrieves detailed information for a specific template, using the template’s unique ID. You can access attributes like the template’s name, tags, and format. This call requires the following input:
Modify an existing template’s file or update its name. The following inputs are required:
Remove a template from your DocuGenerate account. It requires the following input: