---
title: "Create campaign"
method: POST
path: "/email/campaigns"
tags: ["email"]
---

# Create campaign

`POST /email/campaigns`

## Request

- Base URL: `https://www.dench.com/api/v1`
- URL: `https://www.dench.com/api/v1/email/campaigns`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Create a managed email campaign draft from a connected inbox or verified sender.

## Request body

- object
  - `name` string, required
  - `identityId` string, required: Sending identity id OR a verified from-email.
  - `templateId` string, required
  - `scheduledAt` number: Epoch ms to start sending; omit to send on submit.
  - `maxRecipients` number
  - `batchSize` number
  - `metadata` object

## Response `200`

Successful response

- object
  - `campaignId` string, required

## Other responses

- `400`: Invalid request
- `401`: Missing or invalid authentication
- `404`: Operation or resource not found
- `500`: Server error

---

[API](https://skmtc.dev/dench/apis/dench-api.md) - [All operations](https://skmtc.dev/dench/apis/dench-api/llms.txt) - [OpenAPI document](https://skmtc.dev/dench/apis/dench-api/revisions/4a145b38f19c?raw)
