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

# Create Campaign

`POST /campaign/campaigns`

## Request

- Base URL: `https://api.anyreach.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.anyreach.ai/campaign/campaigns`
- Auth: HTTP bearer

Create a new campaign.

Creates a campaign and starts its Temporal workflow in paused state.

## Headers

- `x-anyreach-org` string, nullable: Organization ID for user PATs (pat_ prefix tokens)

## Request body

- CampaignCreate
  - `external_id` string, nullable
  - `name` string, required
  - `configuration_id` string, uuid, nullable
  - `agent_number` string, nullable
  - `priority` integer
  - `agent_id` string, uuid, nullable
  - `version` integer, nullable
  - `contacts` ContactInput[], nullable
    - `external_id` string, nullable
    - `phone_numbers` string[]
    - `timezone` string, nullable
    - `scheduled_at` string, date-time, nullable
    - `agent_id` string, nullable
    - `agent_config` object, nullable
    - `agent_number` string, nullable
    - `agent_version` integer, nullable
    - `initial_context` string, nullable
    - `data` object

## Response `201`

Successful Response

- CampaignResponse
  - `id` string, uuid, required
  - `external_id` string, nullable
  - `organization_id` string, required
  - `name` string, required
  - `status` string, required
  - `configuration_id` string, uuid, required
  - `agent_number` string
  - `priority` integer
  - `agent_id` string, uuid, nullable
  - `version` integer, nullable
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `created_by` string, nullable
  - `modified_by` string, nullable
  - `closed_at` string, date-time, nullable

## Other responses

- `422`: Validation Error

---

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