# Sponsor analytics and the sponsor portal

Everything a sponsor page on your event site shows, computed by Audiobly from the event's own stored data: reach, share of voice, owned and earned mentions with quotes, theme alignment and intent, the audience reached, content reach per session, a category benchmark, the questions asked in the sponsor's sessions, and a next-edition recommendation. No figure is written by an AI model at request time, and none is sample data. Each headline figure says how it was made.

There are two doors to the same figures:

- **Your site's server**, with your organisation's API key (or a signed-in user with read access): `GET /v1/events/{event_id}/sponsors/{sponsor_id}/analytics`, `…/mentions` and `…/recommendation`.
- **The sponsor themselves**, with their sponsor-portal magic link: `GET /v1/sponsor-portal/{token}/analytics?event_id=` (section 6).

**Signed-in users with the `sponsor` role.** A user whose only role in your organisation is `sponsor` reads analytics, mentions and the recommendation for their own sponsor only. Any other sponsor answers 404 `NOT_FOUND`, as if it did not exist. "Their own" means the domain of the user's work email is the sponsor's domain: the domain of the sponsor's linked company, or of its `website` (an address at a subdomain, such as `uk.acme.example` for `acme.example`, counts too). Personal addresses (gmail.com and the like) match no sponsor, so set the sponsor's website or company before inviting their people. Users with any other role (admin, event manager, editor, reviewer, marketing, read only), platform staff and your API key read every sponsor. `GET /v1/events/{event_id}/sponsor-topics` holds no per-sponsor figures and stays open to `read`.

`event_id` may be the full id or the short id fragment used in event-site URLs (except the portal's `?event_id=`, which needs the full id). All endpoints are read-only except setting a sponsor's category. The figures are recomputed from stored data on every request: no caching and no AI call. Exhibitors are included and count as partners. There is no admin screen for these figures yet: they are for your site.

## 1. Who counts as "on stage"

A sponsor is on stage in a session when:

- **owned**: one of its people is listed as a speaker on the session or is heard in its transcript, or a session link (`session_sponsors`) ties the two. "Its people" are speakers whose company record is the sponsor's company (`company_id`), or, when the speaker's company record is not a sponsor's, whose company name matches the sponsor's name or its company's name or trading name (case, accents, spaces and punctuation ignored);
- **earned**: someone else names the sponsor, one of its products or technologies, or its company in the session transcript.

Speaking time comes from the diarised transcript: each utterance's duration, attributed through the session's speaker mappings to a roster speaker, then to that speaker's sponsor. Speaker mappings an editor has not yet confirmed are included: until they are reviewed, speaking time and the owned/earned split rest on automatic speaker matching.

## 2. Analytics

```bash
curl -s "https://api.audiobly.com/v1/events/$EVENT_ID/sponsors/$SPONSOR_ID/analytics" \
  -H "Authorization: Bearer $API_KEY"
```

Add `as_of=2026-05-14T14:00:00Z` to replay the event as it stood at that moment: saves, places, questions, mentions, listening and connections after it do not count, and a session's speaking time counts once it has ended. Without `as_of` the figures are as of now.

The response:

| Field | What it holds |
|---|---|
| `sponsor` | `id`, `name`, `tier`, `category`, `company_id` |
| `window` | `from` (first session start), `to`, `as_of`, `final` (true once the last session has ended) |
| `kpis` | The headline figures below, each `{value, kind, method}` |
| `series[]` | Hourly points on event days that have sessions, plus the `as_of` point: `at`, `reached`, `saves`, `questions`, `mentions_owned`, `mentions_earned` (cumulative) |
| `sessions[]` | One row per session where the sponsor was on stage (see below) |
| `audience` | The delegates reached (`people`), by `pass_type`, `function`, `seniority`, `country` (k-anonymous, `k` = 5), and caption `languages` |
| `benchmark` | `category`, `size`, `available`, `reached_pct`, `sov_pct`, `avg_reached` |
| `themes[]` | Per event theme: `slug`, `title`; `you_min`, `category_min` (other sponsors in the same category) and `others_min` (all other partners): speaking minutes in ended sessions, split by the sessions' theme weights; `your_share` (0–1) of the sponsor's stage presence; `intent_index` (the theme's, event-wide); `sessions` (at least 25% on the theme) |
| `themes_available` | False until the event has themes mapped to its sessions |
| `interest_by_pass_type[]` | Event-wide, not limited to this sponsor: per theme and pass type, delegates who saved or reserved sessions at least 25% on the theme (null under 5). Pass types with fewer than 5 delegates at the event are not listed |
| `questions_by_theme[]` | `theme`, `title`, `count`, `votes` and the top five `questions` (`text`, `votes`, `session_id`) |

### Headline figures (`kpis`)

Every figure has a `kind`: `counted` (counted from stored records), `ai_inferred` (rests on AI output, here the event's theme mapping) or `forecast`. `method` is one sentence you can show in a tooltip.

| Key | Kind | Definition |
|---|---|---|
| `reached` | counted | Distinct delegates who saved or reserved a place on a session where the sponsor was on stage, once that session started. Delegates are matched across saves and places by email. Saving or reserving is interest, not proof of attendance; cancelled places and removed saves do not count. |
| `share_of_voice_time_pct` | counted | The sponsor's people's speaking time as a share of all partner speaking time, in sessions that have ended. Null when no partner has spoken yet. |
| `share_of_voice_mentions_pct` | counted | The sponsor's mentions as a share of all partner mentions so far. Null when no partner has been mentioned yet. |
| `mentions_owned` / `mentions_earned` | counted | Mentions by the sponsor's own people / by anyone else. |
| `speaking_time_sec` | counted | Seconds the sponsor's people spoke, in ended sessions. |
| `theme_alignment` | ai_inferred | Cosine similarity (0–100) between the themes of the sponsor's stage presence and the themes its own profile names (summary, blurb, objectives, tags, industry, products, services, technologies), counted by how often each theme's name, short name and keywords (words of four letters or more) start a word there. The profile may come from automatic enrichment of the sponsor's website. Null until the event has themes, while the sponsor has no stage presence, or when its profile names none of the themes. |
| `intent_index` | ai_inferred | The sponsor's themes' intent index, weighted by its stage presence. Null until the event has themes, or while the sponsor has no stage presence on themed sessions. |
| `leads_opted_in` | counted | Accepted delegate-to-delegate connection requests in which one side is a delegate from the sponsor's company (by company record, or company name equal to the sponsor's name). A count only; it is not marketing consent. |
| `peak_live_devices` | counted | The most devices following one of the sponsor's sessions' live captions or translation at the same time, over every session where it was on stage (mentions included); each device counts from its first to its last activity. 0 when there is none. |
| `logo_impressions` | counted | Visitors your site reported seeing the sponsor's logo with [`POST /v1/events/{event_id}/engagement`](/developers/guides/live-engagement.md): each browser or signed-in delegate once (see "How engagement is counted"). |

**Intent index.** For each theme: the theme's share of engagement (saves, places, questions and poll votes, each split across a session's themes by weight, then averaged over the signals that have any data) divided by its share of the programme (summed session weights), times 50, capped at 0–100. 50 means delegates engaged in line with the theme's share of the programme; 60 or more is a surge. A theme with no programme weight, or an event with no engagement yet, scores 50.

**Stage presence** (for `your_share`, alignment and intent): per session, minutes the sponsor's people spoke plus one per mention; a session the sponsor owns but that was not recorded counts as five minutes, and a recorded owned session with no speech and no mentions as one. Only sessions that have started count. Spread over the session's themes by weight.

### Per session (`sessions[]`)

`session_id`, `title`, `starts_at`, `ends_at`, `status` (`upcoming`, `live`, `done`), `owned`, `your_speakers`, `saves`, `places`, `questions` (moderated questions: live or answered), `live_devices` (distinct caption/translation devices; `live_devices`, `peak_live_devices` and `translation_listens` are null when nobody used captions), `peak_live_devices` (most at once), `translation_listens` (devices in a language other than the event's spoken one), `mentions`, `speaking_time_sec` (0 until the session ends), `views` (visitors who viewed the session page, each once) and `ask_citations` (stored Ask answers that cited the session, plus visitors your site reported, each once: report only citations Audiobly did not answer itself, or they count twice), and `tone` (`label`, `score` and `your_speakers[]` from the session's automatic transcript analysis; null until the session has ended and been analysed).

### How engagement is counted

`views`, `ask_citations` and `logo_impressions` come from the engagement events your site posts with its API key (`POST /v1/events/{event_id}/engagement`, stored as `site.<type>`). The same rule applies here and in `GET /v1/events/{event_id}/engagement/stats`:

- **One visitor counts once** per type and session (views, citations) or sponsor (logo impressions), however often your site sends it. A visitor is the signed-in delegate's account when your site sent `delegate_account_id` (with consent), otherwise the browser's `anon_id`. Reloading a page, or a delegate signed in on two devices, adds nothing.
- **Only your site's engagement feed counts.** A signed-in delegate's own activity (activity capture: `POST /v1/delegate-accounts/{account_id}/activity` and `POST /v1/public/live/{slug}/activity`, see `docs/activity-capture.md`) never adds to a sponsor's figures. Activity capture refuses `site.` types since 1.3.14 build 4, and activity rows stored earlier with a `site.` type are not counted.

### Audience and privacy

Breakdowns of people follow k-anonymity with **k = 5**:

- a group is shown only with at least 5 people;
- smaller groups fold into **Other**; an Other with fewer than 5 is left out and its people are counted in `suppressed`;
- `pass_type` shows at most 5 groups, `function` and `country` at most 8 (the rest fold into Other);
- caption `languages` show only languages with at least 5 devices (`languages_suppressed` counts the rest);
- `interest_by_pass_type` cells under 5 are null.

No endpoint here returns a delegate's name, email, company or id. Questions are returned as text and vote counts, never with who asked. Aggregating delegates' attributes per sponsor is profiling: mention it in your privacy notice.

### Benchmark

A sponsor is compared with the other sponsors and exhibitors at the event in the same **category** (case ignored), and only when the category has at least 3 (`available: true`; `size` includes the sponsor itself). `reached_pct` and `sov_pct` are percentile ranks (0–100) within the category (`sov_pct` is null while no peer has spoken); `avg_reached` is the category average. Set the category per sponsor:

```bash
curl -sX PUT "https://api.audiobly.com/v1/events/$EVENT_ID/sponsors/$SPONSOR_ID/category" \
  -H "Authorization: Bearer $API_KEY" -H "Content-Type: application/json" \
  -d '{"category": "Ingredients and food science"}'
```

It needs the `prep_manage` permission and returns `{sponsor_id, category}`. The value is trimmed, at most 120 characters; `null` or an empty string clears it. `category` can also be sent when creating or updating a sponsor (`POST /v1/events/{event_id}/sponsors`, `PUT /v1/events/{event_id}/sponsors/{sponsor_id}`) and is returned in the sponsor list. Categories are your own words; compare like with like (what the sponsor sells, not its tier).

### Themes

Theme figures read the event's themes and their session weights (the event Themes setting). When any theme is approved, only approved themes count. Until the event has themes mapped to sessions, `themes` is empty, `themes_available` is false and the theme-based figures are null.

## 3. Mentions

```bash
curl -s "https://api.audiobly.com/v1/events/$EVENT_ID/sponsors/$SPONSOR_ID/mentions?owned=false" \
  -H "Authorization: Bearer $API_KEY"
```

Returns `sponsor_id`, `as_of`, `owned` and `earned` counts and `data[]` in time order: `session_id`, `session_title`, `offset_sec` (seconds into the session), `at`, `speaker`, `speaker_company`, `owned`, `matched_term`, `quote` (the sentence around the mention, at most about 260 characters) and `source`.

Mentions come from content tagging's resolved entity mentions for the session's latest transcript (`source: entity_mentions`). A session whose latest transcript has no stored sponsor mentions (for example, not yet tagged) is scanned with the same dictionary on the fly (`source: transcript_scan`): the sponsor's name, its products and technologies, its company's name and trading name, and approved glossary variants of those, matched as whole words. `owned` filters to own (`true`) or earned (`false`) mentions; `as_of` works as for analytics. Speakers are named only when the transcript's speaker mapping names them; they are public programme speakers.

This is not `GET /v1/events/{event_id}/sponsor-mentions` (sessions per sponsor, no quotes) or `GET /v1/events/{event_id}/share-of-voice` (share of company and sponsor mentions).

## 4. Recommendation

```bash
curl -s "https://api.audiobly.com/v1/events/$EVENT_ID/sponsors/$SPONSOR_ID/recommendation" \
  -H "Authorization: Bearer $API_KEY"
```

A fixed rule, always returned in `rule`: of the event themes that make up at least 10% of the sponsor's stage presence, the one with the highest intent index; when none does, the theme with the highest intent index overall (`evidence.chosen_from` says which). The response:

- `theme` (`slug`, `title`), or null with a `reason` when the event has no themes yet;
- `evidence`: `intent_index`, `your_share`, `chosen_from`, `sessions`, `saves`, `places`, `questions`, `poll_votes`, `questions_vs_average_pct`;
- `questions_vs_average_pct`: questions per unit of programme share on that theme against the event average, in %;
- top-level `kind: "forecast"`, `as_of`, `forecast_reach` (a number) and `forecast_method`: distinct delegates at this edition who saved or reserved sessions mainly on that theme, assuming a similar audience next time. It is this edition's count, not a prediction model;
- `mix`: those delegates by pass type (k-anonymous).

When the event has no themes, `evidence`, `forecast_reach` and `mix` are null.

## 5. Topics a sponsor can own

For a partner or sales page, before any sponsor is chosen:

```bash
curl -s "https://api.audiobly.com/v1/events/$EVENT_ID/sponsor-topics" -H "Authorization: Bearer $API_KEY"
```

`event_id`, `as_of`, `window` and `topics[]`, one per event theme, sorted by programme share: `slug`, `title`, `sessions` (at least 25% on the theme), `programme_share`, the `saves`, `places`, `questions` and `poll_votes` it drew (split across a session's themes by weight), `intent_index` and `surge` (60 or more), `partner_minutes` (partner speaking time on the theme), `forecast_reach` (`{value, kind: "forecast", method}`: delegates on the theme at this edition, null under 5) and `pass_type` (k-anonymous). `as_of` replays a moment; `themes_available` is false and `topics` empty until the event has themes mapped to its sessions.

## 6. Sponsor portal

The portal lets a sponsor see their own figures from a magic link, without an Audiobly login. It needs the Experience module.

1. Your site asks for a link for a sponsor by name: `POST /v1/events/{event_id}/sponsor-portal/request` with `{"name": "Acme Foods"}` (API key with prep permission). The response is `{"found": true, "token": "…", "token_version": 0}`, or `{"found": false, "token": null, "token_version": null}` when no sponsor of your organisation has that name. Your site emails the link; Audiobly sends nothing. Tokens last 30 days, or until revoked, and are keyed on the sponsor's name, so one token covers every event the sponsor backs. A link reads only your organisation's data.
2. **Overview across events**: `GET /v1/sponsor-portal/{token}` returns `name`, `events_sponsored`, `total_agreed`, `total_paid`, `audience_reach` (attendees at the events sponsored), `leads` (attendees who gave marketing consent) and `renewal_signal` (`recurring` from two events, else `new`). These are the cross-event rollup from `GET /v1/intelligence/sponsors`, not the per-event figures above.
3. **One event in detail**: `GET /v1/sponsor-portal/{token}/analytics?event_id=…` returns exactly the analytics payload of section 2 for the sponsor of that name at that event (`as_of` works too).

**Revoking links.** `POST /v1/events/{event_id}/sponsors/{sponsor_id}/portal-token/revoke` (prep permission) makes every link issued so far for that sponsor stop working, at every event (links are keyed on the name). It returns `{"sponsor_id": "…", "name": "Acme Foods", "portal_token_version": 1, "revoked": true}`. Each link carries the version it was issued at (`token_version`); a link works only while that equals the sponsor's current `portal_token_version`. Links issued before revocation existed carry no version, count as 0 and keep working until the first revocation. Ask for a new link afterwards. Use it when a sponsor's contact leaves, a link was forwarded, or the sponsorship ends.

Errors: 401 `INVALID_TOKEN` (bad, expired or revoked link), 403 `MODULE_DISABLED`, 404 when the event is not your organisation's or the sponsor is not on it.

## 7. Not available yet

- Sponsor branding slots (logo in captions, sponsored poll, branded brief and quote card).
- A shareable recap image of the sponsor's results, with share buttons.
- Goals and return on objective.
- Consented "share my details" lead capture with a consent record. `leads_opted_in` counts accepted connections only; there is no lead list or CSV with contact details.
- Year-on-year comparison per sponsor (needs a second captured edition).

## Errors

| Status | Code | When |
|---|---|---|
| 401 | `INVALID_TOKEN` | Portal link invalid, expired or revoked |
| 403 | `FORBIDDEN` | The key or user lacks the `read` permission (or `prep_manage` to set a category) |
| 403 | `MODULE_DISABLED` | Portal: the Experience module is off |
| 404 | `NOT_FOUND` | Event or sponsor not in your organisation, the sponsor is not on that event, or a sponsor-role user asked about another sponsor |
| 422 | — | A malformed `as_of` or body, a portal `event_id` that is not a full id, or a category over 120 characters |
