LaTeX API
API referenceTemplates

Rendered PDF of the untouched template

GET
/v1/templates/{id}/preview

Compiles the template on first request and serves the cached PDF afterwards.

Path Parameters

id*string
Match^[a-z0-9][a-z0-9-]{1,63}$

Response Body

PDF

response?fileapplication/pdf
Formatbinary
Example Request
curl -X GET 'https://latex-api.crafter.run/v1/templates/string/preview'
Example Response
"string"