Templates
Create a template
Email: subject is mandatory and format is one of markdown, html (default) and blocks; with blocks the body is the JSON of an EmailDoc, the same document as the visual editor. WhatsApp and Telegram: format is always text and there is no subject. {{...}} variables are derived from the content and are not declared. The name is unique in the workspace: on a duplicate the response is 409 template_exists with the existing templateId, to reuse or to fix with PATCH. Required scope: templates:write.
post/templates
Request
- Base URL: https://sending.dev/api/v1
- URL: https://sending.dev/api/v1/templates
- Auth: HTTP bearer
Request body
Response
Template created.
Example response
{
"template": {
"createdAt": "2026-06-30T12:00:00.000Z",
"updatedAt": "2026-06-30T12:00:00.000Z"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.