# List campaigns

`GET https://api.tryscouty.com/v1/campaigns`

Lists the campaigns this brand has on Scout, with how many creators are on each and when applications close. signedCreators counts the people scouty_list_applicants lists for that campaign: creators the team accepted or has still to accept, signed or not, and creators in or through the activation flow, each person once.

- Scope: `campaigns:read`
- Kind: read
- MCP tool: `scouty_list_campaigns`

## Authorization

Send `Authorization: Bearer $SCOUTY_TOKEN`. The token needs the `campaigns:read` scope.

## Query parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `status` | `string` | Optional | Only campaigns in this publish state. Every campaign when omitted. One of `draft`, `published`, `paused`. |

## Request

### cURL

```bash
curl -s "https://api.tryscouty.com/v1/campaigns?status=published" \
  -H "Authorization: Bearer $SCOUTY_TOKEN"
```

### JavaScript

```js
const response = await fetch("https://api.tryscouty.com/v1/campaigns?status=published", {
  headers: {
    Authorization: `Bearer ${process.env.SCOUTY_TOKEN}`,
  },
});
console.log(await response.json());
```

### Python

```python
import os

import requests

token = os.environ["SCOUTY_TOKEN"]
response = requests.get(
    "https://api.tryscouty.com/v1/campaigns",
    headers={"Authorization": f"Bearer {token}"},
    params={"status": "published"},
)
print(response.json())
```

## Responses

### 200 OK

```json
{
  "campaigns": [
    {
      "campaignId": 42,
      "brand": "Acme",
      "title": "Acme Spring launch",
      "status": "published",
      "signedCreators": 3,
      "applicationDeadline": "2026-10-31"
    }
  ]
}
```

### 400 Bad Request

```json
{
  "error": {
    "code": "invalid_request",
    "message": "Those arguments are not the shape this capability takes: status."
  }
}
```

### 401 Unauthorized

```json
{
  "error": {
    "code": "missing_token",
    "message": "This API needs an Authorization header carrying a bearer token."
  }
}
```

### 403 Forbidden

```json
{
  "error": {
    "code": "insufficient_scope",
    "message": "This token does not carry the campaigns:read scope. Ask the team for one that does."
  }
}
```

### 429 Too Many Requests

```json
{
  "error": {
    "code": "rate_limited",
    "message": "Too many requests. Please wait for the current minute to end."
  }
}
```

## Errors

| Status | `error.code` | Meaning |
|---|---|---|
| 400 Bad Request | `invalid_request` | The request was not the shape this capability takes, or its body was not JSON. |
| 401 Unauthorized | `missing_token`, `invalid_token`, `token_revoked`, `token_expired`, `token_orphaned` | No token, or one that is not recognized, revoked or expired. |
| 403 Forbidden | `insufficient_scope`, `wrong_principal` | The token does not carry the scope this capability needs. |
| 429 Too Many Requests | `rate_limited` | Too many requests this minute. Retry-After says how long is left. |

Full reference: https://docs.tryscouty.com/reference
