REST API Reference
Credit-based PDF generation service. Pay per document size, no monthly fees.
/api/healthCheck service health
Responses
/api/templatesList templates
Returns a paginated list of all templates available to the authenticated organization. Use `source=system` to list system-wide pre-built templates.
Parameters
If set to "system", returns system-wide starter templates instead of org-specific ones.
The page number to retrieve.
The number of items per page.
Responses
/api/templatesUpload a template
Upload a new HTML template using LiquidJS syntax. The system will automatically parse and discover variables within the template.
Request Body
Responses
/api/templates/{id}/api/templates/{id}Get a template
Returns the details of a specific template, including its variables and schema.
Parameters
The UUID of the template to retrieve.
/api/templates/{id}/downloadDownload a template file
Downloads the HTML template file for a given template. Supports both org-owned and system templates.
Parameters
The UUID of the template to download.
/api/previewGenerate a watermarked preview PDF
Request Body
/api/download/preview/{previewId}Download a preview PDF (one-time download)
Download a preview PDF that was generated on-the-fly. This is a one-time download; the file is deleted from storage immediately after a successful request.
Parameters
The UUID of the preview PDF.
/api/jobsList jobs
Returns a paginated list of all jobs submitted by the authenticated organization.
Parameters
The page number to retrieve.
The number of items per page.
Responses
/api/jobsSubmit a new job
Submit a new PDF generation job. Supports both `application/json` (with JSONL string in `data`) and `multipart/form-data` (with a `.jsonl` file in `data`). **Note:** For `multipart/form-data`, use a `data` field for the file, `templateId` (UUID), and optional `webhookUrl`.
Responses
/api/jobs/{id}Get job details
Returns the status and progress of a specific job, including task counts.
Parameters
The UUID of the job to retrieve.
Responses
/api/jobs/{id}/tasksList tasks for a job
Parameters
The UUID of the job.
Page number.
Items per page.
/api/jobs/{id}/tasks/{taskId}/download/api/download/zip/{jobId}/api/openapi.jsonNo Summary
Responses
/api/openapi.yamlNo Summary
Responses
Interfaces
ErrorBody
objectProperties
A stable machine-readable error code.
A list of field-specific error details.
ErrorDetail
objectProperties
The field that caused the error, if applicable.
A field-specific error code.
The line number in the input data where the error occurred, if applicable.
JobDetails
objectProperties
The unique identifier for the job.
The current status of the job.
The total number of PDFs to be generated in this job.
The number of PDFs that have been successfully generated.
The number of PDFs that failed to generate.
The date and time when the job was submitted.
The date and time when the job was finished (all tasks completed or failed).
The URL where notifications were/will be sent upon job completion.
Error message if the job failed.
JobSummary
objectProperties
The unique identifier for the job.
Current status of the job.
The total number of tasks (PDFs) in this job.
The number of tasks that have been successfully processed.
The number of tasks that have failed.
ISO 8601 timestamp when the job was submitted.
Error message if the job failed.
Task
objectProperties
The unique identifier for the task.
The sequence number of the task in the job.
The current status of the task.
The size of the generated PDF in bytes.
The date and time when the task was completed.
The date and time when the task was downloaded.
A temporary URL to download the generated PDF.
An error message if the task failed.
Template
objectProperties
The unique identifier for the template.
The human-readable name of the template.
A list of variables required by this template.
The date and time when the template was created.
TemplateDetail
objectProperties
The unique identifier for the template.
The human-readable name of the template.
A list of LiquidJS variables required by this template.
Optional JSON Schema describing the expected variable types and constraints.
The date and time when the template was created.
The date and time when the template was last updated.