Template gallery
A curated, read-only set of responsive transactional templates — table-based layout, inline CSS, bulletproof CTA buttons — that render cleanly in Gmail, Outlook, and mobile. Clone one into your project as a starting point.
GET
/v1/templates/galleryThis is a static, account-independent list — the same starters for everyone. The gallery is not paginated; the full set is returned in one call. To use a starter, copy its fields into a create call (see the Node example).
01 Request
curl https://api.drin.run/v1/templates/gallery \
-H "Authorization: Bearer $DRIN_API_KEY"02 Response
A data array of gallery items. Each item carries an id, name, category (Onboarding, Authentication, Billing, or Notifications), description, the subject / html /text bodies with merge variables, and a sampleData object that fills every referenced field.
{
"data": [
{
"id": "welcome",
"name": "Welcome",
"category": "Onboarding",
"description": "Warm first-touch email for a new signup, with a primary CTA.",
"subject": "Welcome to {{productName}}, {{firstName}}",
"html": "<!doctype html> … table-based, inline-CSS markup …",
"text": "Welcome to {{productName}}, {{firstName}} …",
"sampleData": {
"firstName": "Sam",
"productName": "Acme",
"ctaUrl": "https://acme.com/start"
}
}
]
}Preview before you clonePass a starter's
html and its sampleData to POST /v1/templates/preview to see exactly how it renders before saving it.