Revecto
API reference

Render a saved template with data

POST
/v1/render

Renders the template's current version with data, then converts it as /v1/convert does, with the same engines, limits and billing. asset:<filename> in an <img src> or a CSS url() is replaced by that uploaded asset. Send the request to the host of your project's region, api.eu.revecto.dev, api.us.revecto.dev or api.apac.revecto.dev; see Regions.

Authorization

ApiKeyAuth
headerAuthorizationBearer <opaque>

API key passed as Bearer token (e.g. rvt_...).

Request Body

application/json
  1. body
template_id*string

Id of a template in your account, shown in the dashboard.

Formatuuid
data*

Values merged into the template.

engine*Engine

Rendering engine, required on every render, with no default.

  • chromium renders the document in a full browser engine and supports the CSS a current browser prints; it is the slower engine. It prints @page margin boxes with counter(page) and counter(pages), and repeats a position: fixed element on every page.
  • forme lays the document out without a browser: it is faster and supports a subset of HTML and CSS. A document outside that subset, including any character no available font covers (Arabic, Hebrew, Thai, Devanagari and monochrome emoji are covered by built-in fonts; for Chinese, Japanese and Korean link a Google Fonts stylesheet or register a TrueType font; color emoji are not available; Arabic-Indic and Persian digits are refused because Forme draws them in reverse order), is refused with 422 document not supported by the forme engine, whose unsupported field lists what was not supported.
Value in"forme""chromium"
options?

Page setup for a render. Every property is optional; an omitted one takes its default. An invalid value is refused with 400 invalid request body: <cause>, and a property not listed here with 400 invalid request body: unknown option: <name>.

Response Body

The PDF document; the body is binary.

response?fileapplication/pdf
Formatbinary
Example Request
curl -X POST 'https://api.eu.revecto.dev/v1/render' \  -H 'Content-Type: application/json' \  -d '{  "engine": "chromium",  "template_id": "e5b9c8d7-a6f5-4e4d-9c3b-2a1f0e9d8c7b",  "data": {    "invoice_number": "INV-2026-0042",    "customer_name": "Acme GmbH"  }}'
Example Response
"<binary PDF>"