# Create Campaign

Creates a new campaign. If no `status` is provided, campaigns default to `INACTIVE`.

See the [campaign object reference](/reference/communications-campaigns#campaign-object)  for more information.

**POST** `/campaigns`

Base URL: `https://api-sandbox.whitelabel.com/v1`

## Authorization

- public-api-key (apiKey in header)
- private-secret-key (apiKey in header)

## Body

Content type: `application/json`

- `name` (string, required)
  Campaign name for identification.
- `account_id` (string, required)
  Your WHITELABEL account ID, found in the [WHITELABEL Dashboard](https://dashboard.whitelabel.com/developers) (UUID).
- `organization_code` (string, required)
  Your organization identifier (UUID).
- `country` (string, required)
  ISO 3166-1 alpha-2 country code (e.g., `CO`, `MX`, `BR`).
- `channel` ("WHATSAPP_MESSAGE" | "PHONE_CALL", required)
  Communication channel.
- `focus` (string)
  Campaign focus descriptor (e.g., `payment_recovery`).
- `schedule` (object, required)
  Scheduling configuration.
  - `daily_start_time` (string, required)
    Start of daily send window in `HH:MM` format.
  - `daily_end_time` (string, required)
    End of daily send window in `HH:MM` format.
  - `time_zone` (string, required)
    IANA timezone (e.g., `America/Bogota`) or UTC offset (e.g., `-05:00`)
- `duration` (object, required)
  Campaign active period.
  - `start_at` (string, required)
    Campaign start date in ISO 8601 format.
  - `end_at` (string, required)
    Campaign end date in ISO 8601 format. Must be after `start_at`.

Example:

```json
{
  "name": "string",
  "account_id": "string",
  "organization_code": "string",
  "country": "string",
  "channel": "WHATSAPP_MESSAGE",
  "focus": "string",
  "schedule": {
    "daily_start_time": "string",
    "daily_end_time": "string",
    "time_zone": "string"
  },
  "duration": {
    "start_at": "string",
    "end_at": "string"
  }
}
```

## Responses

### 200

### 201

Created

- `data` (object)
  - `id` (string)
  - `name` (string)
  - `account_id` (string)
  - `organization_code` (string)
  - `country` (string)
  - `channel` (string)
  - `schedule` (object)
    - `daily_start_time` (string)
    - `daily_end_time` (string)
    - `time_zone` (string)
  - `duration` (object)
    - `start_at` (string)
    - `end_at` (string)
  - `status` (string)
  - `created_at` (string)
  - `updated_at` (string)

Example:

```json
{
  "data": {
    "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "name": "Declined Payment Recovery - Colombia",
    "account_id": "2404911d-5df9-429e-8488-ad41abea1a4b",
    "organization_code": "550e8400-e29b-41d4-a716-446655440000",
    "country": "CO",
    "channel": "WHATSAPP_MESSAGE",
    "schedule": {
      "daily_start_time": "08:00",
      "daily_end_time": "21:00",
      "time_zone": "America/Bogota"
    },
    "duration": {
      "start_at": "2025-07-01T00:00:00Z",
      "end_at": "2026-07-01T00:00:00Z"
    },
    "status": "ACTIVE",
    "created_at": "2025-07-01T12:00:00Z",
    "updated_at": "2025-07-01T12:00:00Z"
  }
}
```