Get a library template
Authorization
ApiKeyAuth API key from Settings → API Keys.
In: header
Path Parameters
Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/api/v1/library_templates/string"{ "slug": "invoice-minimal", "name": "Minimal Invoice", "category": "invoice", "engine": "typst", "document": "#let data = (customer: \"Acme Ltd\",)", "fields": [ { "key": "customer", "type": "text", "example": "Acme Ltd", "primary": true } ], "assets": [ { "filename": "logo.svg", "content_type": "image/svg+xml", "size": 2104 } ], "preview_url": "https://...", "thumbnail_url": "https://...", "copy_to": "https://automette.com/api/v1/templates"}Browse the template library GET
Lists the ready-made templates you can copy into your team. This is the discovery half of copy-then-edit, the path most callers take: find the closest design here, copy it with `POST /api/v1/templates` and `from_library`, then edit the copy like any other template. `fields` is included so you can tell whether a template carries the data you have before copying anything. A template previews as an image (`preview_url`) or as a PDF (`preview_pdf_url`), never both — canvas designs produce the former, Typst and Word ones the latter. Check which is present rather than branching on `engine`. All preview and thumbnail links are permanent and public. To see a design filled with **your** data instead of the library's sample values, call `POST /api/v1/library_templates/{slug}/preview`. Read-only. Library templates are curated and promoted by hand; there is no authoring API behind this.
Preview a library template POST
Renders a library design **with your own data**, before you copy it. Returns a signed URL valid for one hour. The `preview_url` on the detail endpoint shows the design with the library's sample data. This shows it with yours, which is the question someone choosing between two certificates actually has. Fields you do not supply keep the sample values, so an empty body still returns a filled page — except on a Word template, whose fields carry no sample values and fall back to their own names. Free, like every other preview: no render record, no credit, and **no template created** — so it works on a plan already at its template limit, which is precisely when you most want to look before copying. To keep the design, POST to `/api/v1/templates` with `{ "from_library": "<slug>" }`.