API docs
Base URL: https://render.odelabs.dev. Authenticate with Authorization: Bearer sk_.... Create keys on
your account page. Every successful render counts once against your monthly quota. These
do not count: chart cache hits, failed renders (refunded) and validation errors.
Contents: Charts · PDF · Screenshots · Async jobs and webhooks · Errors and limits · Zapier / Make
Charts: GET|POST /v1/chart
Takes a Chart.js config (strict JSON or a JS object literal, like QuickChart) and returns PNG (default), WebP
or SVG. /chart is an alias that accepts QuickChart's query parameters.
| Param | Default | |
|---|---|---|
c / chart | Chart.js config (URL-encode it in GET requests) | |
w / width, h / height | 500 × 300 | CSS pixels, 50–3000 each |
f / format | png | png, webp, svg |
bkg / backgroundColor | white | any CSS colour or transparent |
devicePixelRatio | 1 | 0.5–4 (use 2 for retina emails) |
Supported: types bar, line, area (or line with fill),
pie, doughnut, scatter, and mixed bar + line via a type on the dataset. Also: labels;
per dataset label, data (numbers, {x,y} or [x,y]), backgroundColor and borderColor
(one value or an array), borderWidth, fill, tension, pointRadius, hidden;
and options plugins.title, plugins.subtitle, plugins.legend (display, position),
scales.x|y (title, min, max, beginAtZero, stacked, display, grid.display)
and cutout. Chart.js v2 keys (options.title, scales.yAxes[0].ticks) are read too.
Not supported: JavaScript functions or callbacks, plugins, and radar, bubble, polar area and horizontal
bar charts. Limits: 64 kB of config, 10,000 points, 30 datasets.
curl -H "Authorization: Bearer $KEY" -G https://render.odelabs.dev/v1/chart \
--data-urlencode "c={type:'line',data:{labels:['Mon','Tue','Wed'],datasets:[{label:'Signups',data:[3,7,4],fill:true}]}}" \
-d w=600 -d h=300 -d devicePixelRatio=2 -o chart.png
curl -X POST https://render.odelabs.dev/v1/chart -H "Authorization: Bearer $KEY" -H 'content-type: application/json' \
-d '{"chart": {"type":"pie","data":{"labels":["A","B"],"datasets":[{"data":[60,40]}]}}, "format":"svg"}' -o chart.svg
Signed URLs (emails, Slack, <img> tags)
POST /v1/chart/url takes the same body (plus an optional expires_in in seconds) and
returns a URL that needs no header. It is billed to the key that signed it and stops working when that key is
revoked. Changing any parameter breaks the signature.
curl -X POST https://render.odelabs.dev/v1/chart/url -H "Authorization: Bearer $KEY" -H 'content-type: application/json' \
-d '{"chart": {"type":"bar","data":{"labels":["Q1","Q2"],"datasets":[{"data":[50,60]}]}}, "width": 600}'
# {"url":"https://render.odelabs.dev/v1/chart?c=...&kid=...&sig=..."}
PDF: POST /v1/pdf
| Field | Default | |
|---|---|---|
html or url | exactly one; HTML up to 5 MB | |
format | A4 | A3, A4, A5, Letter, Legal, Tabloid; or width + height like "210mm" |
margin | 0.4in | "10mm", or {"top":"1cm","bottom":"2cm",...} (mm, cm, in, px, pt) |
landscape | false | |
header_template, footer_template | Chromium templates: pageNumber, totalPages, date, title, url classes; set a font-size, the default is tiny | |
print_background | true | |
scale, page_ranges, prefer_css_page_size, media | media: "screen" uses screen CSS | |
wait_for | CSS selector to wait for (up to 10 s) | |
wait_ms | 0 | extra wait after load, up to 10,000 |
async, webhook_url | false | see async jobs (Starter and up) |
curl -X POST https://render.odelabs.dev/v1/pdf -H "Authorization: Bearer $KEY" -H 'content-type: application/json' -d '{
"html": "<h1>Invoice #42</h1><p>Total: $90</p>",
"format": "A4", "margin": "15mm",
"footer_template": "<div style=\"font-size:9px;width:100%;text-align:center\"><span class=\"pageNumber\"></span> / <span class=\"totalPages\"></span></div>"
}' -o invoice.pdf
curl -X POST https://render.odelabs.dev/v1/pdf -H "Authorization: Bearer $KEY" -H 'content-type: application/json' \
-d '{"url": "https://example.com", "landscape": true}' -o page.pdf
Screenshots: GET|POST /v1/screenshot
| Param | Default | |
|---|---|---|
url or html | exactly one | |
width, height | 1280 × 800 | viewport |
full_page | false | whole page, up to 16,384 px tall |
device_scale_factor | 1 | 0.5–3 |
format, quality | png | png, jpeg, webp; quality 1–100 for jpeg/webp |
delay_ms, wait_for | 0 | wait up to 10 s |
block_ads, block_cookie_banners | false | block ad hosts and hide common ad and consent-banner selectors (nothing is clicked) |
hide_selectors | extra CSS selectors to hide, comma-separated | |
dark_mode | false | emulates prefers-color-scheme: dark |
curl -H "Authorization: Bearer $KEY" \ "https://render.odelabs.dev/v1/screenshot?url=https://example.com&width=1440&height=900&device_scale_factor=2&format=webp&block_cookie_banners=true" \ -o shot.webp
Async jobs and webhooks
Add "async": true (and optionally "webhook_url") to POST /v1/pdf. You get
202 {"id", "status", "status_url"}. Poll GET /v1/jobs/{id}, or wait for the webhook. The
finished PDF is at a signed download_url for 24 hours.
POST your webhook_url
x-render-timestamp: 1763712000
x-render-signature: v1=<hex HMAC-SHA256(webhook_secret, timestamp + "." + raw_body)>
{"id":"…","status":"done","download_url":"https://render.odelabs.dev/v1/files/…?exp=…&sig=…","bytes":48213,"error":null,"expires_at":…}
Your webhook secret (whsec_…) is on the dashboard and at GET /v1/webhook-secret.
Reject timestamps more than 5 minutes old. Verification in Node:
const crypto = require('crypto');
const expected = 'v1=' + crypto.createHmac('sha256', process.env.WEBHOOK_SECRET)
.update(req.headers['x-render-timestamp'] + '.' + rawBody).digest('hex');
const ok = crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(req.headers['x-render-signature']));
Failed deliveries are retried 3 times (after 2 s, 10 s and 60 s). Webhook URLs must be public: the same private-address rules apply as for renders.
Errors and limits
| Status | error | Meaning |
|---|---|---|
| 400 | bad_request | invalid config or options; the message says what to fix |
| 401 / 403 | unauthorized / forbidden | missing or wrong key, bad or expired signature |
| 402 | plan_limit / feature_required | monthly quota used up, or a feature your plan lacks; includes upgrade_url |
| 413 | too_heavy | the page downloaded more than 25 MB |
| 422 | blocked | the URL, or a request the page made, points at a private, reserved or denylisted address (policy) |
| 429 | rate_limited | too many requests per minute for this key; see Retry-After |
| 502 | render_failed | the page could not be loaded or captured |
| 503 | busy / unavailable | all renderers are busy (retry after Retry-After) |
| 504 | timeout | the render took longer than 30 s |
Response headers: x-renders-used (this month), x-render-ms, and for charts
x-cache: HIT|MISS.
Zapier, Make and other no-code tools
- Charts in emails: mint a signed URL once (or in a step), then use it as the image URL in Gmail, Mailchimp or Slack steps. No headers are needed. A signed URL is fixed, so for charts that change, build the GET URL with your API key in a "Webhooks by Zapier" or Make "HTTP" step instead.
- PDFs: in Zapier, use "Webhooks by Zapier → Custom Request" (POST, JSON body, header
Authorization: Bearer sk_…). In Make, use "HTTP → Make a request" with "Parse response" off, and the next step gets the file. For long documents, use"async": truewith a Zapier "Catch Hook" URL as thewebhook_url, then downloaddownload_url. - Screenshots: a single GET with the key in the header. The response is the image file.
There is no native Zapier or Make app yet. The generic HTTP modules work today.