<!-- Linking into the console — Heystack docs. Rendered: https://heystack.dev/docs/deep-links · Index: https://heystack.dev/llms.txt -->
# Linking into the console

Every page in the Heystack console is addressable by URL, so another tool (an internal ops page, a runbook, an alert message, a chat bot) can drop someone straight onto the right page, app, time window, or request without embedding the console or holding a credential. The link opens in the person's own signed-in session; if they're not signed in, they sign in and land on the same URL.

This page is the **stable link contract**. Parameters listed here are safe to build against; anything not listed is internal state and may change. Links from earlier versions of the console keep working too: see [Older links](#older-links).

## The shape of a console URL

```
https://console.heystack.dev/<page>[/<item>]?app=<app_id>&w=<window>&…
```

| Page | Path | Opens |
| --- | --- | --- |
| Home | `/` | every app in the organisation, or one app with `?app=` |
| Issues | `/issues`, `/issues/<issue key>` | the inbox, or one issue |
| Investigations | `/investigations`, `/investigations/<id>` | the list, or one investigation |
| Users & sessions | `/users`, `/sessions/<visit id>` | people and visits, or one visit |
| AI & Safety | `/ai` | the AI overview |
| Explore | `/explore/<traces\|logs\|metrics\|map\|workers\|sql>`, `/explore/traces/<trace id>` | a view, or one request |
| Settings | `/settings/app/<app id>/<section>`, `/settings/org/<section>`, `/settings/me/<section>` | one settings section |

- `app` (an app id, `app_…`, shown under **Settings › App › Overview**) scopes the page to one app; leave it out for every app in the organisation.
- Parameters are **additive**: moving between pages in the console keeps the app and time range, so a link that sets `app=` and `w=` keeps both. Switching apps drops the rest.
- Saved views store the whole address, so anything you can link to, a person can also save and share.

## Time window

| Param | Values | Notes |
| --- | --- | --- |
| `w` | `15m` · `1h` · `6h` · `24h` · `7d` · `30d` | relative window; omit for the page default |
| `from`, `to` | epoch milliseconds | an exact range; wins over `w` |

An unknown `w` falls back to the default. Settings pages ignore the window.

## Issues

```
/issues?app=<app_id>&source=<error|crash|bug_report|journey|security>
/issues/<source>:<app_id>:<id>?app=<app_id>
```

An issue key has three parts: where the issue came from (`error`, `crash`, `bug_report`, `journey`, `alert`, …), the app, and that source's own id (an error fingerprint, a crash signature, a bug-report id, a journey incident id, or an alert rule id). An id with characters that don't fit in a link is written as `~` followed by its URL-safe base64 form; build keys with the helper the MCP tools use, or copy them from the console. A Slack alert opens the investigation it started; if none could be opened, it opens the alert's issue at `/issues/alert:<app_id>:<rule id>`.

`/issues` accepts `source` to narrow the inbox to one kind of problem.

## Links in notifications

Every Slack, Discord, Teams, PagerDuty, email or webhook notification links straight to the page for its event, built from the same addresses as above:

| Event | Opens |
|---|---|
| New issue, issue worse, issue back, assigned to you, fix verified or regressed, journey down or recovered, alert fired or resolved | `/issues/<issue key>?app=<app_id>` (an alert with no issue opens `/issues?app=<app_id>`) |
| Approval waiting | `/investigations/<investigation id>/approve/<approval id>` |
| Blocked AI requests spiking | `/ai/safety?app=<app_id>` |
| Quota warning or reached, analytics paused | `/settings/org/usage` |

Notification links also carry `nid=<delivery id>`. Whichever page one opens (an issue, Home, Explore or anywhere else in the console), the console records once that the notification was opened and removes `nid` from the address bar, so copying the link afterwards gives the plain address. A link with an unknown or someone else's `nid` opens the page normally.

## Visits

`/sessions/<visit id>?app=<app_id>` opens one visit as a story (its replay, errors and requests). `/users?view=activity` and `/users?view=sessions` open the two lists; `/users?q=<text>` searches for a person.

## Opening a specific request

```
/explore/traces/<trace_id>?app=<app_id>
/explore/traces/<trace_id>?app=<app_id>&span=<span_id>
```

`span=` pre-selects one step. A trace id is 1-128 characters from `A-Z a-z 0-9 . _ : -` (not `.` or `..`, not all zeros); for anything else no trace link is made (the MCP tools link to the trace list instead). Add `from` and `to` to narrow the search so a link from a list opens quickly. This is the link the console writes when a request is opened, and what **⌘K** opens when you paste a trace id.

## Explore

Explore has one page per view, at `/explore/<view>` where `<view>` is `traces`, `logs`, `metrics`, `map`, `workers` or `sql`. An unknown view opens Traces. The scope parameters work on every view and carry between them.

```
https://console.heystack.dev/explore/traces?app=<app_id>&w=1h&f=service_name:api&nf=status_code:UNSET&q=timeout
https://console.heystack.dev/explore/logs?app=<app_id>&f=severity_text:ERROR&trace=<trace_id>
https://console.heystack.dev/explore/traces/<trace_id>?app=<app_id>&from=<epoch_ms>&to=<epoch_ms>&span=<span_id>
```

| Param | Form | Notes |
| --- | --- | --- |
| `app` | app id | omit for all apps |
| `w` | `15m` · `1h` · `6h` · `24h` · `7d` · `30d` | omit for the default; `from` + `to` (epoch milliseconds) give an exact range and win over `w` |
| `env` | environment name | applied on Traces, Logs and the Service map; ignored by Workers |
| `f`, `nf` | `<field>:<value>`, repeatable | "is" and "is not" filters. Write the field and value each URL-encoded, then encode the whole pair again, so `http_route` of `/a:b` is `f=http_route%3A%252Fa%253Ab`. Logs fields: `service_name`, `severity_text`, `event_name`, `service_version`, `deployment_environment`. Traces add `http_route`, `http_method`, `span_name`, `status_code`, `span_kind` and more. One `attr:<key>` pair is read on Traces (`f` only). A pair the page cannot use is listed under "Not applied" |
| `cf` | `<field>:<value>` | old "contains" filter; shown as "Not applied", use `q` instead |
| `q` | free text | search |
| `gb` | a field | group by one field (Traces and Logs); a field the view does not have is "Not applied" |
| `view` | `chart` | with `gb`, opens the chart rather than the table |
| `trace` | trace id | Logs only: that request's log lines |
| `metric`, `type` | metric name and type | Metrics: read this metric (both are needed) |
| `section` | `runtime` · `runs` · `queues` · `durable-objects` · `d1` · `storage-ops` | Workers: open this section |
| `sql` | up to 8,000 characters | SQL: fills the editor; it never runs until someone presses Run |

A trace page's `span` selects one step; `from` and `to` narrow the search so a link from a list opens quickly. Trace ids must be short (letters, digits, `.`, `_`, `:`, `-`) and not all zeros, or no link is made.

Saved views store one of these addresses, so anything you can link to can also be saved and shared with your organisation.

## What has no URL form

These are session-local and cannot be set by a link today — link to the nearest view instead:

- Pagination (result pages are a fixed size; narrow with filters instead).
- Anything inside the Settings forms, and which row of a list is highlighted.

If you need one of these to be linkable, tell us — the contract above is what we commit to keeping stable, and we extend it deliberately.

## Older links

Links from earlier versions of the console, such as `https://console.heystack.dev/apps/<app_id>?tab=<tab>&w=<window>`, keep working forever. They redirect to the matching page above, and the console keeps your filters. Don't build new links in these forms.

| Older link | Opens |
| --- | --- |
| `/apps/<app_id>` (no tab) | Home for that app |
| `/apps/<app_id>?view=today` · `?view=monitor` | Home |
| `?view=usage` | Users & sessions › Activity |
| `?view=issues` · `?view=care-issues` | Issues for the app; with `&incident=<id>`, that journey issue |
| `?view=activity` | Investigations for the app |
| `?view=security` | Settings › App › AI safety policy |
| `?view=journeys` · `?view=settings` | Settings › App › Journeys to watch · Repair permissions |
| `?tab=traces` | Explore › Traces. `trace=<id>` opens that request and `sp=<span>` becomes `span=` |
| `?tab=logs` · `?tab=metrics` · `?tab=map` | the matching Explore view |
| `?tab=health` · no tab | Home; with both `from=` and `to=` (the old alert and daily digest buttons), Explore › Traces over exactly that range |
| `?tab=ai` | AI & Safety |
| `?tab=issues&issue=<fingerprint>` | that issue (`error` source); without `issue=`, the error issues |
| `?tab=crashes&crash=<signature>` | that crash issue; without `crash=`, the crash issues |
| `?tab=bugs&bug=<id>` | that bug-report issue; without `bug=`, the bug-report issues |
| `?tab=replays&session=<id>` | that visit; without a usable `session=`, the people list |
| `?tab=alerts` · `?tab=settings` | Settings › App › Alerts · Connection & keys |
| `/explore?src=logs` · `/explore` | Explore › Logs · Explore › Traces (`src=traces`, the default) |
| `/activity` | Users & sessions › Activity |
| `/team` | Settings › Organisation › Members & invites |
| `/agents` | Settings › Organisation › Coding agents & API |
| `/security` · `/security?app=<app_id>` | AI & Safety · Settings › App › AI safety policy |
| `/apps` | Home |

Rules that apply to every row:

- **`trace=` wins.** A valid `trace=` on the Traces, Health or Map tab (or on no tab, or an unknown tab) opens that request. The tabs that carry an item of their own (Issues, Crashes, Bugs, Alerts, Replays, Settings) keep it.
- **An unknown tab opens Traces**, and an unknown `view=` opens Home. `view=inspect` is ignored and the `tab` is read.
- **Filters carry over.** On the Logs tab `lq` becomes `q`, `lf=` becomes `f=`, and `sev=ERROR` becomes the filter `severity_text:ERROR` (`sev=all` is no filter). On the Traces tab `f`, `q`, `gb`, `w`, `from` and `to` are kept. Table sorts (`sort`, `lsort`) have no equivalent and are dropped. `w=all` is dropped, so the page default applies.
- **`from` and `to` are kept as written.** An older link's ISO timestamps are passed through unchanged.
- **`ui=` is ignored.** The old `?ui=classic` and `?ui=next` switches are removed from any link.
- Anything else in the query string is carried through unchanged.
