# List campaigns

The campaigns of the organization, newest first: the ones you made for email (`channel` `email`) and the LinkedIn sequences (`channel` `linkedin`), with what is in them.

## Authentication

Send `Authorization: Bearer gtk_…`. Create the key under **Connect assistant → API keys**. Every `gtk_` key can call these routes, also while the Signals API is closed. A missing, invalid or revoked key is **401**.

## Response

- **`object`** `string` · **required** — Always `list`. One of: `list`.
- **`data`** `object[]` · **required** — `id`, `name`, `status`, `channel`, `created_at`, `counts` and `dashboard_url` (Leads on that campaign). `counts`: `rows`; from what you logged with this `campaign_id`: `emails_sent`, `people_emailed` (how many people or addresses got at least one), `emails_by_step` (`{"1": 40, "2": 22}`), `replies` (`email_replied` and `referral`; a meeting is not a reply), `people_replied` (how many people or addresses replied; three replies from one person count once), `meetings`, `bounces`, `unsubscribes`, `not_interested`, `out_of_office`, `referrals`, `reply_rate` (people who replied per person emailed, never above 100) and `bounce_rate` (bounces per email), as percentages or null without emails.

## Credits

Free. This call never uses credits.

## Errors

- **401** `authentication_error` — The Authorization header is missing, or the key is unknown or revoked.
- **403** `permission_error` — API access is not part of your plan, or your account is suspended.
- **429** `rate_limit_error` — More than 60 requests per minute, or more than 3 at the same time, on one key. Wait for the Retry-After header.
- **503** `service_unavailable` — The API is temporarily unavailable. Retry later.
- **500** `internal_error` — Something went wrong on our side.

## Example

### cURL

```bash
curl "https://mysdr.app/api/v1/outreach/campaigns" \
  -H "Authorization: Bearer $MYSDR_API_KEY"
```

### JavaScript

```javascript
const response = await fetch('https://mysdr.app/api/v1/outreach/campaigns', {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.MYSDR_API_KEY}`
  }
});
const body = await response.json();
```

### Python

```python
import json
import os
import urllib.request

request = urllib.request.Request(
    "https://mysdr.app/api/v1/outreach/campaigns",
    headers={
    "Authorization": f"Bearer {os.environ['MYSDR_API_KEY']}"
    },
    method="GET",
)
with urllib.request.urlopen(request) as response:
    body = json.load(response)
```

### Example response

```json
{
  "object": "list",
  "data": [
    {
      "id": "5e0c1a2b-3d4e-4f50-8a61-7b8c9d0e1f23",
      "name": "Email pilot – Belgium",
      "status": "active",
      "channel": "email",
      "created_at": "2026-10-19T08:00:00.000Z",
      "counts": {
        "rows": 108,
        "emails_sent": 62,
        "people_emailed": 40,
        "emails_by_step": {
          "1": 40,
          "2": 22
        },
        "replies": 9,
        "people_replied": 9,
        "meetings": 2,
        "bounces": 1,
        "unsubscribes": 1,
        "not_interested": 3,
        "out_of_office": 4,
        "referrals": 1,
        "reply_rate": 22.5,
        "bounce_rate": 1.6
      },
      "dashboard_url": "https://mysdr.app/en/gtm/leads?campaign=5e0c1a2b-3d4e-4f50-8a61-7b8c9d0e1f23"
    }
  ]
}
```
