---
title: "Add new campaign"
method: POST
path: "/campaigns"
tags: ["Campaigns"]
---

# Add new campaign

`POST /campaigns`

Create a new campaign.

## Request body

- object
  - `title` string, required — Campaign title.
  - `from_name` string, required — Sender's name.
  - `from_email` string, required — Sender's email address.
  - `reply_to` string, required — Reply-to email address.
  - `subject` string, required — Campaign subject line.
  - `html_text` string, required — HTML content of the campaign.
  - `recepient_lists` union, required — Array of list IDs or an object with segments. See the example above for the segments format.
    - unknown[]
      - unknown
    - object

## Response `200`

OK

- object
  - `id` integer
  - `title` string
  - `from_name` string
  - `from_email` string
  - `reply_to` string
  - `subject` string
  - `recepient_lists` integer[]
  - `template_type` string
  - `campaign_type` string
  - `updated_at` string

---

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