Documentation for PdfGen Public API

Cloud-based PDF generation API. Create, manage, and render PDF templates programmatically.

Authentication

All API requests require an API key. Pass it in the Api-Key header:

Api-Key: pk_your_api_key_here

Generate and manage your API keys from your account settings.

Base URL

https://app.generator.rest/api

Swagger UI available at

Swagger UI

OpenAPI Spec

Documentation for API Endpoints

All URIs are relative to /api

ClassMethodHTTP requestDescription
DocumentsApideleteDELETE /documents/{lookup}Delete document(s) by name
DocumentsApilistGET /documentsList documents
DocumentsApiretrieveGET /documents/{key}Download a document
PdfTemplateApicreatePOST /pdf-templateCreate a template
PdfTemplateApicreateFilesPOST /pdf-template/{id}/filesUpload template files
PdfTemplateApicreateFromZipPOST /pdf-template/from-zipCreate template from ZIP
PdfTemplateApideleteFileDELETE /pdf-template/{id}/files/{file}Delete a file
PdfTemplateApidestroyDELETE /pdf-template/{lookup}Delete a template
PdfTemplateApiexportAsZipGET /pdf-template/{id}/files/export-zipExport template files as ZIP archive
PdfTemplateApigetContextSchemaGET /pdf-template/{id}/context-schemaGet JSON schema for template variables
PdfTemplateApigetDefaultValuesGET /pdf-template/{id}/variables-default-valuesGet template variable default values
PdfTemplateApigetFileContentGET /pdf-template/{id}/files/content/{file}Download file content
PdfTemplateApigetFileTypeGET /pdf-template/{id}/files/type/{file}Get file type
PdfTemplateApiimportZipPOST /pdf-template/{id}/files/import-zipUpload files from ZIP
PdfTemplateApilistGET /pdf-templateList templates
PdfTemplateApilistFilesGET /pdf-template/{id}/filesList template files
PdfTemplateApirenderPOST /pdf-template/renderRender a PDF
PdfTemplateApireplacePUT /pdf-template/{lookup}Replace a template
PdfTemplateApiretrieveGET /pdf-template/{lookup}Get a template
PdfTemplateApiupdatePATCH /pdf-template/{lookup}Update a template
TemplateVariablesApicreatePOST /template-variablesCreate a variable
TemplateVariablesApidestroyDELETE /template-variables/{lookup}Delete a variable
TemplateVariablesApilistGET /template-variablesList template variables
TemplateVariablesApireplacePUT /template-variables/{lookup}Replace a variable
TemplateVariablesApiretrieveGET /template-variables/{lookup}Get a variable
TemplateVariablesApiupdatePATCH /template-variables/{lookup}Update a variable

Documentation for Models

Documentation for Authorization

api-key

  • Type: API key
  • API key parameter name: Api-Key
  • Location: HTTP header