Rendering
Render a URL or HTML
The main endpoint. Give it a url or inline html/template and it answers with the bytes — or, with responseType: "json", a hosted URL.
post/api/render
Request
- Base URL: https://snaplab.dev
- URL: https://snaplab.dev/api/render
- Auth: HTTP bearer
Request body
Example request
{
"pdf": {
"pageRanges": "1-3",
"width": "210mm",
"height": "297mm"
},
"filename": "INV-2026-014.pdf"
}Response
The rendered bytes.
Example response
{
"url": "https://snaplab.dev/i/c/V1StGXR8_Z5j",
"id": "V1StGXR8_Z5j",
"format": "png"
}Changes
No recorded changes to this operation across all 1 revision of this API.