Skip to content

Render a URL to PDF

POST
/render/url
curl --request POST \
--url http://localhost:8080/render/url \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "url": "example", "attachments": [ { "name": "example", "content": "example", "mimeType": "example", "description": "example", "relationship": "example" } ], "embedColorProfile": true }'

Fetches the HTML at the given URL and renders it to a PDF, or a JSON validation response when Accept is application/json.

X-Upload-Url
string

Presigned PUT URL that receives the generated document.

Media type application/json
RenderUrlRequest
object
url
required
string
attachments
Array<object> | null
FileAttachment
object
name
required
string
content
required
string
mimeType
string
description
string | null
relationship
string
embedColorProfile
boolean
Example generated
{
"url": "example",
"attachments": [
{
"name": "example",
"content": "example",
"mimeType": "example",
"description": "example",
"relationship": "example"
}
],
"embedColorProfile": true
}

PDF document or JSON validation response

string format: binary

PDF uploaded successfully

Invalid URL, fetch failure, or JSON/upload conflict

Rendering failed

Upload target rejected the request or was unreachable