v2

latestOpenAPI 3.1.0Proprietary2026-07-26211984.6 KB
Screenshot

Render a branded PDF + PNG artifact from Markdown or HTML

One call that turns Markdown or HTML plus a small branding theme into a branded PDF, a PNG, and a hosted share page — built for AI agents and ChatGPT apps that produce a finished document and need a downloadable, shareable result. Pass the document body in content (Markdown by default, or set inputFormat: html), an optional branding theme (logo, accent color, font, header, footer), and an optional pageSetup (paper size, orientation, margins, scale, viewport). Choose the output formatspdf, png, or both. Each requested format charges 1 credit from the same shared pool as the rendering endpoints, drawn with the same rdx_ key; the full charge is refunded on a render failure. The response returns short-lived signed URLs for each rendered format plus a shareUrl to a hosted preview page; all expire after expiresIn seconds (default 24h).

post/v1/artifact

Request body

contentstring required

The Markdown or HTML body to render. Up to ~4MB.

inputFormat'markdown' | 'html'

How to interpret content. 'markdown' is converted to styled HTML; 'html' is used as a body fragment.

formatsstring[]

Which artifact formats to produce. Each format charges 1 credit.

dataobject

Optional Mustache data. When present, content is rendered as a logic-less Mustache template (plus the branding fields) before conversion.

expiresIninteger

Seconds until the hosted URLs expire (3600–2592000). Default 86400 (24h).

Response

Rendered artifact URLs

successboolean