Skip to main content
POST
/
v1
/
document
/
html-to-pdf
{
  "input": "https://example.com/page.html",
  "page_size": "A4",
  "margin": "1cm"
}
curl -X POST https://api.ringbee.dev/v1/document/html-to-pdf \
  -H "X-API-Key: YOUR_API_KEY" \
  -F "file=@page.html" \
  -F "page_size=A4" \
  -F "margin=1cm"
{
  "id": "job_abc123",
  "status": "pending"
}
{
"error": "<string>"
}
{
"error": "<string>"
}
{
  "input": "https://example.com/page.html",
  "page_size": "A4",
  "margin": "1cm"
}
curl -X POST https://api.ringbee.dev/v1/document/html-to-pdf \
  -H "X-API-Key: YOUR_API_KEY" \
  -F "file=@page.html" \
  -F "page_size=A4" \
  -F "margin=1cm"
ParamTypeDescription
page_sizestringOutput page size (e.g., “A4”, “Letter”)
marginstringPage margin (e.g., “1cm”, “0.5in”)

Authorizations

X-API-Key
string
header
required

Body

input
string
required

Input file URL

page_size
string

Output page size (e.g., "A4", "Letter")

margin
string

Page margin (e.g., "1cm", "0.5in")

webhook_url
string

URL to receive job completion notification

Response

Job accepted

id
string
Example:

"job_abc123"

status
enum<string>
Available options:
pending,
processing,
completed,
failed,
cancelled
Example:

"pending"