Skip to main content
POST
/
v1
/
templates
/
preview
Preview an unsaved template
curl --request POST \
  --url https://api.drin.run/v1/templates/preview \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "subject": "<string>",
  "html": "<string>",
  "text": "<string>",
  "data": {}
}
'

Documentation Index

Fetch the complete documentation index at: https://drin.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Your Drin API key, sent as Authorization: Bearer <key>.

Headers

X-Drin-Product
string

Names the sending project for account-wide keys (alias: X-Drin-Sender). Project-scoped keys may omit it.

Body

application/json
subject
string
html
string
text
string
data
object

Response

200

The rendered draft.