Skip to main content

Quickstart

Get a template rendered in minutes.

1) Create a workspace

Open the Templi dashboard and create a workspace. Workspaces hold templates, members, and API keys.

2) Upload a template

Upload a .docx file in Templates. Use placeholder tags such as {{customerName}} for text or {{@logo}} for images.

3) Create an API key

In API Keys, create a key with the RENDER permission. Copy the token value and store it securely.

4) Render a document

Send a JSON payload to the /apply endpoint. Use the X-Templi-Token header for authentication.

curl -X POST \
https://api.templi.dev/api/v1/templates/{workspaceId}/{templateName}/apply \
-H "X-Templi-Token: YOUR_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/pdf" \
-d '{"customerName":{"type":"text","text":"Ada Lovelace"}}' \
--output output.pdf

Next steps