# GET /opportunities/:opportunity_id/website-journey

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

Get what an opportunity's lead did on the workspace's website before they enquired, read live from the workspace's connected PostHog: first visit time, where they came from (source, first page, first referrer), the number of visits, the pages they viewed in order (url, title, time, visit number; up to 200), and links to their session recordings. Works for leads who came through a TrustPager form, booking page or live chat on a website that runs PostHog. Every answer also carries lead_source: where the lead came from as saved on the opportunity (source in words such as "Google ad", landing page, referrer, utm source, medium and campaign, and which ad network the click came from), which needs no PostHog. status is "ok", "no_visits", "no_visitor_id" (the lead came in another way) or "not_connected" (PostHog is not connected); only "ok" has a journey.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `opportunity_id` | path | string | yes | The opportunity ID. |

## Request example

```bash
curl   "https://api.trustpager.com/functions/v1/api/v1/opportunities/:opportunity_id/website-journey"   -H "Authorization: Bearer YOUR_API_KEY"
```

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