---
title: "Ask a question about a campaign"
description: "A plain-English answer about a campaign's posts and comments, with the posts it rests on."
url: https://docs.sonderlabs.co.uk/campaigns/ask
---

# Ask a question about a campaign

A plain-English answer about a campaign's posts and comments, with the posts it rests on.

`POST /v1/campaigns/{id}/ask` (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.

Ask what you'd ask an analyst: why did views spike on the 21st, which creators drove earned views, what did people complain about. Every answer cites the posts behind it, so it can be checked.

## Platform support

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

## Parameters

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | The campaign id. |
| `question` | body | string | yes | The question. |

## Example

cURL:

```bash
curl -X POST https://yourteam.sonderlabs.co.uk/v1/campaigns/red-bull-rampage-2026/ask \
  -H "Authorization: Bearer $SONDER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "question": "Which post drove the most earned views?"
  }'
```

JavaScript:

```js
const res = await fetch("https://yourteam.sonderlabs.co.uk/v1/campaigns/red-bull-rampage-2026/ask", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.SONDER_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "question": "Which post drove the most earned views?"
  }),
});
const data = await res.json();
```

Python:

```python
import os, requests

res = requests.post(
    "https://yourteam.sonderlabs.co.uk/v1/campaigns/red-bull-rampage-2026/ask",
    headers={"Authorization": f"Bearer {os.environ['SONDER_API_KEY']}"},
    json={
        "question": "Which post drove the most earned views?"
    },
)
data = res.json()
```

Response:

```json
{
  "answer": "Instagram's own Reel riding Kade Edwards' line, posted 21 Oct: 53.7M views, almost half of the campaign's 115.3M earned views.",
  "citations": [
    {
      "postId": "47dd2af11e2fe0f075d88ad970eb737c",
      "url": "https://www.instagram.com/reel/DewxhTugF2T/",
      "views": 53652872
    }
  ]
}
```
