Preview a library template
Authorization
ApiKeyAuth API key from Settings → API Keys.
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/v1/library_templates/string/preview" \ -H "Content-Type: application/json" \ -d '{ "data": { "recipient_name": "Priya Raghunathan", "course_name": "Advanced Kiln Firing" }, "format": "png" }'{ "format": "png", "url": "https://docuagen.s3.amazonaws.com/temp-uploads/.../preview.png?X-Amz-Signature=...", "expires_in": 3600}Get a library template GET
One library template in full, including its `document` — a working example of the engine, which is the cheapest way to learn either format. To use it, **do not** copy the `document` into a create call. POST to `/api/v1/templates` with `{ "from_library": "<slug>" }`. Copying the document alone leaves the images behind: canvas stores the source template's storage keys inside the document, so the copy renders someone else's assets until they are deleted, and then renders nothing.
List renders GET
Returns renders for your team, newest first. Supports cursor-based pagination. To paginate, pass the `next_cursor` from one response as the `cursor` in the next request. `next_cursor` is `null` when there are no more pages.