← All updates

Template library exposed to API agents

The curated template library (invoices, receipts, quotes, resumes, …) is now browsable over the API. Discover a template, fetch its DSL, fork into a user template, render.

apilibrary

The curated template library — invoices, receipts, quotes, resumes, and friends — is now first-class over the API.

GET /api/v1/library                # list / search (category, tags, q)
GET /api/v1/library/:id            # fetch a template's full DSL + sampleData

Both endpoints are read-only and rate-limited at 500 requests/hour.

There is intentionally no "render a library template directly" shortcut. The flow is fork-then-render:

  1. GET /api/v1/library?category=invoice&q=classic — discover.
  2. GET /api/v1/library/invoice-classic — fetch DSL.
  3. Customise locally, then POST /api/v1/templates to create a user copy.
  4. POST /api/v1/render { templateId, data } as normal.

This keeps ownership and billing attached to a concrete user row.