Zum Hauptinhalt springen

apitemplate.io compatible create-pdf

POST 

/compat/apitemplate/create-pdf

Accepts apitemplate.io's request and returns its response shape, so a client moves by changing the base URL and the key (X-API-Key works as before). The body is the template's data, and the published version of the template renders with its stored settings; the render is a normal PDF render, metered and listed like one. A render that has no answer after 60 seconds, or finds no free render slot within 30 seconds, is waited for up to two more minutes, so the call always ends with the document or an error. Needs render:create. Migration only; no new features.

Errors of the render, the scope, the plan and the quota come back in apitemplate.io's shape, { "status": "error", "message": …, "code": … } as application/json, with the HTTP status of the underlying problem. A missing or invalid key, a browser origin the key does not allow, the rate limit, a missing template_id and an unexpected error answer like the native API, as problem details. apitemplate.io's other parameters (expiration, output_html, output_format, filename, direct_download, cloud_storage, meta, async, webhook_url, …) are accepted and ignored: the call waits for the document and sends no webhook, and the link lives as long as a render's.

Request​

Responses​

The document.