Create and manage reusable email templates
/v1/send/templatesList all templates with optional search and tag filtering.
limitinteger50offsetinteger0searchstringtagsstringcurl "https://api.do.dev/v1/send/templates" \
-H "Authorization: Bearer YOUR_API_KEY"{
"templates": [
{
"id": "tpl_abc123",
"name": "Welcome Email",
"subject": "Welcome {{name}}!",
"tags": ["welcome", "onboarding"],
"createdAt": 1707423600000
}
],
"pagination": { "limit": 50, "offset": 0, "total": 5 }
}/v1/send/templatesCreate a new reusable email template with variable support.
namestringrequiredsubjectstringrequiredhtmlstringtextstringdescriptionstringtagsstring[]variablesobject[]curl -X POST "https://api.do.dev/v1/send/templates" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Welcome Email",
"subject": "Welcome {{name}}!",
"html": "<h1>Hi {{name}}</h1><p>Welcome to our platform.</p>",
"variables": [{ "name": "name", "type": "string" }]
}'{
"id": "tpl_abc123",
"name": "Welcome Email",
"subject": "Welcome {{name}}!",
"html": "<h1>Hi {{name}}</h1><p>Welcome to our platform.</p>",
"variables": [{ "name": "name", "type": "string" }],
"createdAt": 1707423600000
}/v1/send/templates/{id}Update an existing template. All fields are optional.
/v1/send/templates/{id}Delete a template. Fails if the template is actively used in queued emails.