For Agents
Render PDFs and images from HTML strings, public URLs, or stored templates on CloudLayer using an X-API-Key header.
Get started with CloudLayer Document Generation API in minutes using your preferred integration method.
# Add to your MCP client config (Claude Desktop, Cursor, Windsurf)
{
"jentic": {
"url": "https://api.jentic.com/mcp",
"auth": "oauth"
}
}
# Then ask your agent:
"render HTML to PDF"
# → Jentic returns the GET /events tool with parameter schema, agent executes.What an agent can do with CloudLayer Document Generation API API.
Render an HTML string to PDF via /html/pdf
Render a public URL to PDF via /url/pdf with optional page selectors
Generate a PDF from a stored template and JSON data via /template/pdf
Render HTML, URL, or template to PNG or JPG image via the /image endpoints
GET STARTED
Use for: Render an HTML invoice to PDF, I want to take a PNG screenshot of a public URL, Generate a PDF from my saved template with customer data, Get the status of CloudLayer job ID xyz
Not supported: Does not OCR existing PDFs, edit existing PDFs, or convert non-HTML source formats — use for HTML-, URL-, and template-based PDF and image rendering only.
Jentic publishes the only available OpenAPI document for CloudLayer Document Generation API, keeping it validated and agent-ready.
Jentic publishes the only available OpenAPI specification for CloudLayer Document Generation API, keeping it validated and agent-ready. CloudLayer turns HTML, URLs, and templates into PDFs and images via a REST API. The v2 surface adds asynchronous job processing and asset storage, so callers can submit a render request, get back a job ID, and pick up the rendered file later — useful when generating long PDFs that exceed a single HTTP timeout. Authentication is an X-API-Key header.
Manage asynchronous render jobs and retrieve completed assets
Inspect account details and remaining usage at /account
Patterns agents use CloudLayer Document Generation API API for, with concrete tasks.
★ Invoice and Receipt PDF Generation
Generate transactional PDFs such as invoices, receipts, and order confirmations from server-rendered HTML. POST /html/pdf with the HTML string and any header/footer markup, and CloudLayer returns the rendered PDF either inline or as a job ID for async pickup. Avoids running headless Chromium in production.
POST /html/pdf with the rendered invoice HTML and pageMargin settings, then download the PDF or poll the job ID.
Web Page Screenshots
Capture screenshots of public web pages for monitoring, social previews, or change-detection alerts. POST /url/image returns PNG or JPG, while POST /url/pdf returns the same page as a multi-page PDF. Useful when an app needs to embed a snapshot of an external page in a report.
POST /url/image with url=https://example.com/dashboard and format=png to capture a screenshot for the daily digest email.
Template-Based Document Generation
Store reusable templates (contracts, certificates, statements) and render them with per-customer data. /template/pdf and /template/image accept a template ID and a JSON data block, applying the data via the template's placeholders. Keeps document layout under design control instead of inline HTML.
POST /template/pdf with templateId=cert-2026 and data={ name, course, date } to render the completion certificate.
AI Agent Document Rendering
Let a Jentic-powered agent render documents on demand. The agent searches Jentic for 'render HTML to PDF', loads the CloudLayer createPdf operation, and executes it with the HTML and options. The X-API-Key stays in the Jentic vault.
Search Jentic for 'render HTML to PDF', load the CloudLayer htmlToPdf operation, and execute with the agent-generated HTML.
12 endpoints — jentic publishes the only available openapi specification for cloudlayer document generation api, keeping it validated and agent-ready.
METHOD
PATH
DESCRIPTION
/html/pdf
Render HTML to PDF
/url/pdf
Render a URL to PDF
/template/pdf
Render a stored template to PDF
/html/image
Render HTML to PNG or JPG
/url/image
Render a URL to PNG or JPG
/jobs/{jobId}
Get the status of a render job
/assets
List stored render assets
/account
Get account information and usage
/html/pdf
Render HTML to PDF
/url/pdf
Render a URL to PDF
/template/pdf
Render a stored template to PDF
/html/image
Render HTML to PNG or JPG
/url/image
Render a URL to PNG or JPG
Three things that make agents converge on Jentic-routed access.
Credential isolation
The CloudLayer X-API-Key is stored encrypted in the Jentic vault. Agents receive scoped access tokens — the raw key never enters the agent's context or logs.
Intent-based discovery
Agents search Jentic by intent (for example 'render HTML to PDF' or 'screenshot a URL') and Jentic returns the matching CloudLayer operation with its input schema.
Time to first call
Direct CloudLayer integration: half a day for the synchronous endpoints, longer if implementing async polling and asset retrieval. Through Jentic: under 1 hour — search, load schema, execute.
Alternatives and complements available in the Jentic catalogue.
PDFMonkey
Template-first PDF generation with a built-in template editor.
Pick PDFMonkey when non-developers need to author and edit templates without touching HTML.
Filestack
File upload, transformation, and storage that pairs with rendered assets.
Use Filestack alongside CloudLayer to upload source assets and serve rendered outputs from a CDN.
CloudConvert API
Generic file format conversion that can also produce PDFs from many input formats.
Choose CloudConvert when the source is DOCX, XLSX, or another non-HTML format that needs to become a PDF.
Specific to using CloudLayer Document Generation API API through Jentic.
Why is there no official OpenAPI spec for CloudLayer Document Generation API?
CloudLayer does not publish a structured OpenAPI specification. Jentic generates and maintains this spec so that AI agents and developers can call CloudLayer Document Generation API via structured tooling. It is validated against the live API and kept up to date. Get started at https://app.jentic.com/sign-up.
What authentication does the CloudLayer Document Generation API use?
The API uses an X-API-Key header. Generate the key in the CloudLayer dashboard and pass it on every request. Through Jentic, the key is stored encrypted in the vault and never enters the agent's context.
Can I render long PDFs without hitting an HTTP timeout?
Yes. v2 supports asynchronous processing — POST /html/pdf or /url/pdf returns a job ID, and GET /jobs/{jobId} reports the status. The rendered PDF is then available under /assets, which avoids long-lived synchronous connections for heavy documents.
How do I capture a screenshot of a URL?
POST /url/image with the target URL and format (png or jpg). Optional fields include viewport width and height, full-page capture, and wait selectors so the screenshot fires after a specific element is rendered.
How do I render an HTML invoice through Jentic?
Run jentic search 'render HTML to PDF', load the CloudLayer htmlToPdf operation, and execute with the HTML body and any margin, header, or footer options. Jentic handles the X-API-Key from the stored credential.
Does CloudLayer support PDF templates?
Yes. Store templates in the CloudLayer dashboard, then call POST /template/pdf with the template ID and a JSON data object. The template's placeholders are filled in at render time, keeping layout decisions out of application code.
/jobs/{jobId}
Get the status of a render job
/assets
List stored render assets
/account
Get account information and usage