---
title: "Send transactional template"
method: POST
path: "/transactional/send-template"
tags: ["Transactional emails"]
---

# Send transactional template

`POST /transactional/send-template`

Send a transactional email using a pre-defined template.

## Request body

- object
  - `message` object, required — The message object containing all email details.
    - `template_id` integer, required — ID of the template to use.
    - `subject` string, required — Email subject line.
    - `from_name` string, required — Sender's display name.
    - `from_email` string, required — Sender's email address. Must be from a verified domain.
    - `reply_to` string — Reply-to email address.
    - `to` object[], required — Array of recipient objects.
      - `email` string, required — Recipient's email address.
      - `name` string — Recipient's display name.
      - `cc` string — CC email address.
      - `bcc` string — BCC email address.
    - `global_merge_vars` object[] — Array of merge tag objects for personalization.
      - `name` string — Merge tag name.
      - `content` string — Merge tag value.
    - `attachments` object[] — Array of attachment objects.
      - `type` string — MIME type of the attachment.
      - `name` string — File name of the attachment.
      - `content` string — Base64 encoded file content.
    - `options` object — Tracking options.
      - `click_tracking` boolean — Enable click tracking.
      - `open_tracking` boolean — Enable open tracking.

## Response `200`

OK

- object
  - `results` object
    - `total_rejected_recipients` integer
    - `total_accepted_recipients` integer
    - `id` integer

---

[API](https://skmtc.dev/ecomail/apis/ecomail-api.md) · [All operations](https://skmtc.dev/ecomail/apis/ecomail-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ecomail/ecomail-api/revisions/31b5789931fe/schema)
