SendboundSendbound

Templates

Create and manage reusable HTML email templates.

Templates are reusable HTML email layouts. Reference a template by ID when sending transactional email or creating a campaign and optionally pass templateData variables.

Template object

{
  "id": "tpl_01HV...",
  "name": "Welcome email",
  "subject": "Welcome to {{appName}}",
  "createdAt": "2026-01-10T08:00:00Z",
  "updatedAt": "2026-03-15T12:00:00Z"
}

Templates support {{variable}} syntax in both subject and body.


List templates

GET/templates
Bearer
page
pageSize
curl -X GET 'https://api.sendbound.com/templates' \
  -H 'Authorization: Bearer <your-token>' \
  -H 'Content-Type: application/json'

Create a template

POST/templates
Bearer
curl -X POST 'https://api.sendbound.com/templates' \
  -H 'Authorization: Bearer <your-token>' \
  -H 'Content-Type: application/json' \
  -d '{
"name": "Welcome email",
"subject": "Welcome to {{appName}}, {{firstName}}",
"body": "<h1>Welcome, {{firstName}}!</h1><p>Thanks for joining {{appName}}.</p>"
}'
FieldTypeRequiredDescription
namestringYesInternal template name
subjectstringYesSubject line — supports {{variable}}
bodystringYesHTML body — supports {{variable}}

Get a template

GET/templates/:id
Bearer
:id
curl -X GET 'https://api.sendbound.com/templates/:id' \
  -H 'Authorization: Bearer <your-token>' \
  -H 'Content-Type: application/json'

Returns the full template including the HTML body.


Update a template

PUT/templates/:id
Bearer
:id
curl -X PUT 'https://api.sendbound.com/templates/:id' \
  -H 'Authorization: Bearer <your-token>' \
  -H 'Content-Type: application/json' \
  -d '{
"name": "Welcome email v2",
"subject": "Welcome aboard, {{firstName}}",
"body": "<h1>Hello {{firstName}}</h1><p>Great to have you at {{appName}}.</p>"
}'

Delete a template

DELETE/templates/:id
Bearer
:id
curl -X DELETE 'https://api.sendbound.com/templates/:id' \
  -H 'Authorization: Bearer <your-token>' \
  -H 'Content-Type: application/json'

Returns 204 No Content. Does not affect already-sent emails.


Using a template

Pass templateId and templateData in a send request:

{
  "to": "jane@example.com",
  "from": "hello@yourdomain.com",
  "templateId": "tpl_01HV...",
  "templateData": {
    "appName": "Acme",
    "firstName": "Jane"
  }
}