---
title: "Create a campaign"
description: "Start tracking a launch: describe what counts, name your own accounts, pick a start date."
url: https://docs.sonderlabs.co.uk/campaigns/create
---

# Create a campaign

Start tracking a launch: describe what counts, name your own accounts, pick a start date.

`POST /v1/campaigns` (coming soon)

> **Coming soon:** this endpoint is not served yet; the shape below is what it will look like. [Ask for it](https://docs.sonderlabs.co.uk/access) if you need it.

Describe the campaign the way you'd brief a person: what it is, who is in it, what should and shouldn't count. Sonder drafts the searches (keywords, hashtags, sounds, subreddits) from the description, finds the posts, reads each one and decides whether it's about your campaign. Posts it isn't sure about wait in `pending` for a person.

The first scan runs as a job; poll `GET /v1/jobs/{id}` or wait for the `campaign.scanned` webhook.

## Platform support

- TikTok: Live
- Instagram: Live
- YouTube: Live
- Facebook: Live
- X: Live
- Threads: Live
- Reddit: Live
- Snapchat: Live

## Parameters

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `name` | body | string | yes | The campaign's name. |
| `description` | body | string | yes | What counts, in plain words. The more specific, the better the checking. |
| `startDate` | body | date | yes | Earliest post date to count. |
| `platforms` | body | string[] | no | Default all eight. |
| `ownedAccounts` | body | object[] | no | `{platform, handle}` for each account that is yours. Their posts are owned; everyone else's are earned. |
| `refresh` | body | string | no | `daily` (default), `weekly` or `off`. |

## Example

cURL:

```bash
curl -X POST https://yourteam.sonderlabs.co.uk/v1/campaigns \
  -H "Authorization: Bearer $SONDER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Red Bull Rampage 2026",
    "description": "Red Bull Rampage 2026, the freeride mountain bike competition in Utah: the riders'\'' runs, practice, the wind holds and results. Not other Red Bull events.",
    "startDate": "2026-10-01",
    "ownedAccounts": [
      {
        "platform": "instagram",
        "handle": "redbull"
      },
      {
        "platform": "instagram",
        "handle": "redbullbike"
      },
      {
        "platform": "facebook",
        "handle": "RedBullBike"
      }
    ]
  }'
```

JavaScript:

```js
const res = await fetch("https://yourteam.sonderlabs.co.uk/v1/campaigns", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.SONDER_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "name": "Red Bull Rampage 2026",
    "description": "Red Bull Rampage 2026, the freeride mountain bike competition in Utah: the riders' runs, practice, the wind holds and results. Not other Red Bull events.",
    "startDate": "2026-10-01",
    "ownedAccounts": [
      {
        "platform": "instagram",
        "handle": "redbull"
      },
      {
        "platform": "instagram",
        "handle": "redbullbike"
      },
      {
        "platform": "facebook",
        "handle": "RedBullBike"
      }
    ]
  }),
});
const data = await res.json();
```

Python:

```python
import os, requests

res = requests.post(
    "https://yourteam.sonderlabs.co.uk/v1/campaigns",
    headers={"Authorization": f"Bearer {os.environ['SONDER_API_KEY']}"},
    json={
        "name": "Red Bull Rampage 2026",
        "description": "Red Bull Rampage 2026, the freeride mountain bike competition in Utah: the riders' runs, practice, the wind holds and results. Not other Red Bull events.",
        "startDate": "2026-10-01",
        "ownedAccounts": [
            {
                "platform": "instagram",
                "handle": "redbull"
            },
            {
                "platform": "instagram",
                "handle": "redbullbike"
            },
            {
                "platform": "facebook",
                "handle": "RedBullBike"
            }
        ]
    },
)
data = res.json()
```

Response:

```json
{
  "id": "red-bull-rampage-2026",
  "name": "Red Bull Rampage 2026",
  "status": "active",
  "startDate": "2026-10-01",
  "platforms": [
    "tiktok",
    "instagram",
    "youtube",
    "facebook",
    "x",
    "threads",
    "reddit",
    "snapchat"
  ],
  "ownedAccounts": [
    {
      "platform": "instagram",
      "handle": "redbull"
    },
    {
      "platform": "instagram",
      "handle": "redbullbike"
    },
    {
      "platform": "facebook",
      "handle": "RedBullBike"
    }
  ],
  "lastRefreshedAt": "2026-11-03T00:06:37Z",
  "job": {
    "id": "job_9f3c2a",
    "status": "queued"
  }
}
```
