# GET /opportunities/lead-sources

**Resource:** [Opportunities](./opportunities.md)  
**MCP tool:** `get_lead_sources_report`  
**Scopes:** `opportunities:read`  
**Write operation:** no

Lead Manager: every lead source side by side for a period (default the last 12 months), so you can see where leads come from and which sources turn into paying clients. For each source: leads, booked (a meeting was booked), showed (they attended), proposals (a proposal was sent for signing), won, won_revenue and conversion_rate, plus cost, cost_per_lead, cost_per_client and return_on_spend where the cost is known. How a lead is credited: "meta" (Meta ads) counts exactly what Ad Manager counts, leads tied to an ad plus opportunities whose lead source says Meta, Facebook or Instagram, and its cost is the ad spend over the same days (ad spend and ad names need the meta-ads:read permission; without it the Meta row is the opportunities labelled Meta, with no cost). "referrals" counts every opportunity with a referrer recorded, whatever its lead source says, plus ones whose lead source starts with "Referral" (shown as a referrer not recorded); its cost is the commission owed on those referrals (needs referrals:read, otherwise null), and referrers breaks it down per referrer with their category. Every other source is the opportunity's lead source text ("(unattributed)" when it has none) and has no cost. Opportunities count when they arrived in the period, in the workspace timezone; workflows left out of lead reporting are not counted. Pass source (a key from sources) to also list that source's opportunities with how far each got, one page at a time. Spellings of one source merged with merge_lead_source_spellings show as one row under its name. brand_kit_id or unknown_brand narrows it to one brand.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `from` | query | string | no | First day, YYYY-MM-DD, in the workspace timezone. Leave out for 12 months before to. |
| `to` | query | string | no | Last day, YYYY-MM-DD, in the workspace timezone. Leave out for today. |
| `source` | query | string | no | Also list this source's opportunities: a key from sources ("meta", "referrals", "(unattributed)" or a lead source name). |
| `limit` | query | number | no | With source: most opportunities to return, 1 to 200 (default 50). |
| `offset` | query | number | no | With source: skip this many opportunities, for the next page (default 0). |
| `brand_kit_id` | query | string | no | Only opportunities that sell this brand (a brand id from list_marketing_brands). Meta spend belongs to the ad account, not a brand, so the Meta cost is left out of a brand view. |
| `unknown_brand` | query | boolean | no | true: only opportunities with no brand recorded ("Unknown brand"). Not with brand_kit_id. |

## Request example

```bash
curl   "https://api.trustpager.com/functions/v1/api/v1/opportunities/lead-sources"   -H "Authorization: Bearer YOUR_API_KEY"
```

---
Base URL: `https://api.trustpager.com/functions/v1/api/v1` — Auth: `Authorization: Bearer YOUR_API_KEY`