Automette docs

Get a library template

GET
/api/v1/library_templates/{slug}

Authorization

ApiKeyAuth
AuthorizationBearer <token>

API key from Settings → API Keys.

In: header

Path Parameters

slug*string

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"}