---
title: "Send test campaign"
method: POST
path: "/campaigns/{campaign_id}/send-test"
tags: ["Campaigns"]
---

# Send test campaign

`POST /campaigns/{campaign_id}/send-test`

Sends a test version of a draft campaign to up to 5 recipients.

## Path parameters

- `campaign_id` integer, required

## Request body

- object
  - `emails` unknown[], required — Recipients of the test email. At least 1 and at most 5 email addresses.
    - unknown
  - `merge` object — Optional map of merge-tag values used to personalize the test email. Keys are merge-tag names, values are their replacements; empty values are ignored.

## Response `200`

OK

- object
  - `campaign_id` integer
  - `sent_emails_count` integer

## Other responses

- `403` — Forbidden
- `409` — Conflict
- `422` — Unprocessable Entity
- `429` — Too Many Requests

---

[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)
