Transforms
Route pattern: POST /render/{input}/{output} (aliases under /v1/render/...).
| Route | Input | Output |
|---|---|---|
POST /render/html/pdf | raw HTML content | |
POST /render/template/html | templateId + JSON data | HTML |
POST /render/template/pdf | templateId + JSON data | |
POST /render/csv/pdf | CSV content | |
POST /render/csv/xlsx | CSV content | XLSX |
POST /render/table/html | structured sheets | HTML |
POST /render/table/pdf | structured sheets | |
POST /render/table/xlsx | structured sheets | XLSX |
POST /render/table/csv | exactly one sheet | CSV |
Also: GET /formats, GET /templates — authenticated (same API key as renders). Only /health, /openapi/v1.json, and /scalar are anonymous.
Example (table → HTML):
bash
curl -X POST "http://localhost:5066/render/table/html" \
-H "Content-Type: application/json" \
-H "X-OxyKit-Render-Key: dev-local-key" \
-d '{"sheets":[{"name":"Orders","headers":["Id","Customer","Total"],"rows":[[1,"Acme",120.5],[2,"Beta",80]]}]}' \
--output orders.htmlErrors: { "error": "..." } with 400 / 401 / 403 / 500. Exact request shapes: live OpenAPI in Development.