Skip to main content
POST
/
v1
/
templates
Create a template
curl --request POST \
  --url https://api.drin.run/v1/templates \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "subject": "<string>",
  "html": "<string>",
  "text": "<string>",
  "slug": "<string>"
}
'
{
  "id": "<string>",
  "slug": "<string>",
  "name": "<string>",
  "subject": "<string>",
  "html": "<string>",
  "text": "<string>",
  "createdAt": "2023-11-07T05:31:56Z"
}

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
name
string
required
subject
string
required
html
string

Supports {{handlebars}} merge variables.

text
string
slug
string

Response

201 - application/json

The template.

id
string
slug
string | null
name
string
subject
string
html
string | null
text
string | null
createdAt
string<date-time>