# Dashboard across your events

The Dashboard's "Across your events" section in one call, plus the two things a person can save from it: their own card order and the plan for the next event. Every endpoint is open to any signed-in member of the organisation who can see its events, and every number is scoped to your organisation.

All figures are computed on request from data Audiobly already holds: transcription time, sessions, transcripts, session analyses, theme tags, company mentions, live Q&A, attendees and sponsors. Nothing is generated when you call these endpoints, so the same data always gives the same answer.

## The overview

```bash
curl -H "Authorization: Bearer $API_KEY" \
  "https://api.audiobly.com/v1/dashboard/overview"
```

### Scope

Every parameter is optional; with none, the overview covers every event.

| Parameter | Meaning |
|---|---|
| `org_unit_id` | A brand or product: the unit and everything beneath it |
| `since`, `until` | `YYYY-MM-DD`, on the event's day, both inclusive |
| `event_id` | Repeat to narrow to specific events (`?event_id=…&event_id=…`); ids from another organisation never match |

### Response

```json
{
  "generated_at": "2026-11-10T09:30:00Z",
  "scope": {"events": 9, "processed_events": 9, "analysed_events": 7, "label": "All processed events"},
  "has_content": true,
  "known_cards": ["usage", "findings", "momentum", "stage_room", "coverage", "companies", "debates", "next_event"],
  "cards": {
    "usage": {"state": "ready", "waiting": null, "data": {"hours": 41.5, "...": "..."}},
    "momentum": {"state": "waiting", "waiting": {"needs": "Theme momentum appears after 1 more event", "have": 2, "need": 3}, "data": null}
  }
}
```

- `has_content` is `false` while the organisation has no processed session at all. Show the getting-started view instead of the cards.
- Each card is `ready` with `data`, or `waiting` with what it still needs (`needs` in words, plus `have` and `need`). A waiting card never carries data.
- `known_cards` lists every card id the server offers, in the Dashboard's standard order (usage, findings, momentum, stage_room, coverage, companies, debates, next_event); `cards` uses the same order. Compare `known_cards` with a saved layout's `known_cards` to spot a card added since the layout was saved.

### Definitions

- **Processed session**: a session with a transcript that reached Transcript ready or later. An event with no sessions counts when its own recording did. Every card counts the same processed sessions: `usage.sessions` equals `stage_room.sessions`, and analyses of sessions that are not processed are left out.
- **Analysed session**: a session with a completed session analysis.
- **Theme**: a concept from your vocabulary packs, counted for a session when it is mentioned at least twice there. Events without concept tags fall back to the themes found in their session analyses, merged by name.
- **Recurring theme**: a theme found at two or more events in the scope. Themes found in session analyses are usually worded differently at every event, so momentum compares recurring themes only; filter to one event series to see them.
- **Room question**: a live Q&A question (dismissed ones excluded), or an audience or unanswered question found in a session analysis. A question asked in the app and then read out can appear in both.
- **Speakers** (`usage.speakers`): distinct people linked to processed sessions. An event whose sessions are all processed but have no speakers linked to them (or a processed whole-event recording) counts its speaker list.
- **Company mention**: a company named in a processed transcript. Matching ignores case, so the dashboard leaves out mentions that are unlikely to mean the company: text written all in lower case when the company's name has capitals ("now" for NOW), and other casings of a name that is a common English word or three letters or fewer ("Now" for NOW, "Mca" for MCA). Trading and product names still count.

### Cards

| Card | Ready when (in the scope) | `data` |
|---|---|---|
| `usage` | 1 processed session | `hours` (from the transcription record; without one, from the recordings' stored durations, and then `monthly` is empty), `hours_change_pct` (last 12 months against the 12 before; null without a prior period), `monthly` (the last 12 months up to the current one, months without hours included) [`month`, `live_hours`, `uploaded_hours`, `top_event` (the title of the event with most of the month's hours, or null)], `events`, `sessions`, `speakers`, `words`, `languages` [`code`, `hours`], `questions_captured`, `hours_left` {`left`, `total`} (only plans with a fixed monthly allowance, else null), `by_event` (top 5). For the four figures beside the hours: `events_change` and `sessions_change` (processed events and sessions of events dated in the last 12 months, minus the 12 before), `speakers_change_pct` and `words_change_pct` (the same comparison in percent); each is null when there is nothing in the 12 months before. `events_by_month` (12 numbers: processed events to date at the end of each of the last 12 months), `sessions_by_event` (oldest first, the last 8 events with sessions) [`event_id`, `title`, `sessions`], `repeat_speakers` (people who spoke at two or more events), `top_speakers` (up to four names: the people who spoke at the most events) |
| `findings` | 1 analysed session, and at least one finding to report | Up to 5 items, at most one of each kind and one per theme (else waiting: "No finding stands out in these events yet"): `kind` (`rising`, `new`, `fading`, `room`, `unanswered`, `disagreement`, `company`, `theme`), `sentence`, `value`, `value_label`, `chart` {`type`: `line`, `bars`, `split`, `ring` or `number`, `points` or `parts` as [`label`, `value`]}, `link` {`label`, `href`} |
| `momentum` | 3 events with analysed sessions, and at least 2 recurring themes among them (else waiting: "Theme momentum appears when themes recur across events") | `editions` [`event_id`, `title`, `date`] (up to the last 8), `themes` (up to 6 recurring themes, those found at the most events first, then the biggest change) [`key`, `label`, `lifecycle`: `new`, `rising`, `steady` or `fading`, `shares` per edition, 0 to 1] |
| `coverage` | 2 events with themes | `events` (up to the last 12), `themes` (up to 8: recurring themes first, then each event's top theme, newest event first) [`key`, `label`, `cells` per event, 0 to 1] |
| `stage_room` | 1 analysed session | `themes` (up to 8) [`key`, `label`, `stage_share`, `room_share`, `gap`, `questions`], `unanswered` (up to 10) [`theme_key`, `text`, `session_id`, `event_id`], `sessions`, `room_questions`. `room_share` and `gap` are null when no room question was captured |
| `debates` | 1 debate found | Up to 4 items: `question`, `sides` [`position`, `speakers`, `quote` (cleaned newspaper-style since 1.3.16, as in the *Event Insights* guide; empty when it is not one complete thought), `verbatim` (the words as transcribed)], `speakers` (distinct people across the sides; a name counts once however it is cased or spaced), `event_ids`, `session_ids`. Debates are found only in sessions analysed since debate detection was added; earlier sessions are not re-analysed |
| `companies` | 1 company named on stage (your organisation's own name and its brands or products are left out) | `counts` {`talked`, `in_room`, `paying`, `talked_not_paying`}, `prospects` (top 10 talked about and not sponsoring) [`company_id`, `name`, `mentions`, `delegates`, `sessions`] |
| `next_event` | An upcoming event in the scope with nothing processed yet (the earliest one; an event with a processed recording counts as an edition instead) | `event` {`id`, `title`, `starts_at`}, `suggestions` [`id`, `kind`: `theme`, `speaker` or `sponsor`, `label`, `evidence`, `in_plan`, `plan_item_id`], `progress` {`in_plan`, `total`, `done`} ("3 of 6 in plan": plan items out of the suggestions plus any plan item no longer suggested; `done` = items marked done), `plan` (every plan item for the event) |

Findings are ranked by the size of the change and how new it is: a theme that appears for the first time ranks above one that is steadily present. Momentum labels a recurring theme `rising` when its share is at least a quarter above (and 5 points above) its earlier average, and `fading` when it was found at two or more earlier editions and has halved (and dropped at least 5 points); a theme found at only one earlier edition is never fading. A `theme` finding needs the theme in at least 3 sessions and 10% of sessions, and a `room` finding at least 5 room questions on the theme.

## Your card order

A layout belongs to a person, so these endpoints need a signed-in user; an API key reads the default and cannot save.

```bash
# read: {"cards": [...] | null, "version": 1, "known_cards": [...] | null}; cards null = the complete default
# known_cards = the cards that existed when the layout was saved (null without a saved layout)
curl -H "Authorization: Bearer $TOKEN" https://api.audiobly.com/v1/dashboard/layout

# save an order (unknown card ids → 422 INVALID_REQUEST, repeats dropped, [] allowed; an API key → 403)
curl -X PUT -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d '{"cards": ["findings", "stage_room", "debates"]}' \
  https://api.audiobly.com/v1/dashboard/layout

# back to the complete default
curl -X PUT -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d '{"cards": null}' https://api.audiobly.com/v1/dashboard/layout
```

## The next-event plan

Add a suggestion to the upcoming event's plan, tick it off, or remove it. Adding the same kind and label to the same event again returns the existing item.

```bash
curl -X POST -H "Authorization: Bearer $API_KEY" -H "Content-Type: application/json" \
  -d '{"target_event_id": "<event id>", "kind": "sponsor", "label": "Acme Foods",
       "evidence": "Named 14 times in 6 sessions · 4 delegates · not a sponsor"}' \
  https://api.audiobly.com/v1/dashboard/plan-items

curl -H "Authorization: Bearer $API_KEY" \
  "https://api.audiobly.com/v1/dashboard/plan-items?target_event_id=<event id>"

curl -X PATCH -H "Authorization: Bearer $API_KEY" -H "Content-Type: application/json" \
  -d '{"status": "done"}' https://api.audiobly.com/v1/dashboard/plan-items/<item id>

curl -X DELETE -H "Authorization: Bearer $API_KEY" \
  https://api.audiobly.com/v1/dashboard/plan-items/<item id>
```

An item is `{id, target_event_id, kind, label, evidence, status, created_at, updated_at}`; `status` is `open` or `done`. The overview's `next_event.progress` counts these items: `in_plan` all of them, `done` those marked done (PATCH `status`).
