Automette docs

Preview a library template

POST
/api/v1/library_templates/{slug}/preview

Authorization

ApiKeyAuth
AuthorizationBearer <token>

API key from Settings → API Keys.

In: header

Path Parameters

slug*string

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}