# Use Audiobly on your own website: from a speaker list to a full delegate hub

How to show Audiobly content on a website you or your developer run. Some sites only want a list of speakers or the programme. Some already have their own sign-in and want to put session write-ups and reports behind it. Some want the full **delegate hub**: a signed-in area where people who booked an event see its programme, session write-ups, speakers, sponsors, the companies attending and photos, and send meeting requests to each other. This guide covers all of them. Start with Section 1 to choose your level, then read only the sections that level needs.

- **Base URL:** `https://api.audiobly.com` — all paths are under `/v1`.
- **Auth:** `Authorization: Bearer <API_KEY>` from **your site's server only**. See Section 3 for the permissions the key needs.
- **Errors:** `{"error": {"code", "message", "request_id"}}` with an `X-Request-ID` header.
- **Related guides:** [Ticketing, registrations & delegate accounts](/developers/guides/ticketing.md) (Part E is the reference for delegate accounts), [Ask the event](/developers/guides/ask-the-event.md) (cited answers from the sessions), [Event themes](/developers/guides/event-themes.md) (the theme keys delegates follow; What to do on Monday, 4.16, is for session pages at every level), [Fetch a complete event](/developers/guides/fetch-a-complete-event.md), [Transcripts & photos](/developers/guides/transcripts-and-photos.md), [Audience Intelligence](/developers/guides/audience-intelligence.md).

In the API, each talk on the programme is a **session**. `EVENT_ID`, `SESSION_ID`, `ACCOUNT_ID` and the other ids are UUIDs.

---

## 1. Choose your level

Pick the level that matches what your site already does. You can start at one level and move up later; nothing at a lower level has to be undone.

| Level | Your site already has… | Audiobly provides | Who signs people in | Bookings in Audiobly? |
|---|---|---|---|---|
| **1. Content only** | Its own pages, maybe a CMS | Programme, speakers with headshots, sponsors, photos, session write-ups and reports, as data you place in your own pages | Nobody, or your own login if you choose | Not needed |
| **2. Behind your own login** | Its own sign-in, and its own record of who booked (your ticketing, CRM or registration system) | The same content, which you show only to signed-in people who booked | Your site | Optional: only if you want Audiobly to confirm who booked |
| **3. Full delegate hub** | Pages only | Everything in Level 2, plus delegate accounts (sign-in, password reset, branded emails), the delegate directory and meeting requests | Audiobly delegate accounts, through your pages | Required |

What each level uses:

| Feature | Level 1 | Level 2 | Level 3 | Where it comes from |
|---|---|---|---|---|
| Programme and session times | Yes | Yes | Yes | `GET /v1/events/{EVENT_ID}/hub/sessions` (Section 5.2) |
| Speakers, headshots, bios | Yes | Yes | Yes | `GET /v1/events/{EVENT_ID}/speakers` (Section 5.5) |
| Sponsors and exhibitors | Yes | Yes | Yes | `GET /v1/events/{EVENT_ID}/sponsors` (Section 5.5) |
| Photos | Yes | Yes | Yes | `GET /v1/events/{EVENT_ID}/photos?public=true` (Section 5.7) |
| Session write-ups: overview, themes, takeaways, opportunities | Yes, if you are happy to publish them | Yes | Yes | `GET /v1/events/{EVENT_ID}/hub/sessions/{SESSION_ID}` (Section 5.3) |
| Session Report PDF | Yes, if you are happy to publish it | Yes | Yes | `GET /v1/events/{EVENT_ID}/hub/sessions/{SESSION_ID}/report.pdf` (Section 5.4) |
| Companies attending | Only from bookings held in Audiobly | Only from bookings held in Audiobly | Yes | `GET /v1/events/{EVENT_ID}/hub/companies` (Section 5.6) |
| Check that a signed-in person booked | — | Your own records, or `GET /v1/events/{EVENT_ID}/registrations/lookup?email=…` (Section 2.2) | The account's `events[]` | |
| Delegate sign-in, password reset, profile, branded emails | — | — | Yes | Delegate accounts (Sections 4 and 7) |
| Delegate directory | — | — | Yes | `GET /v1/events/{EVENT_ID}/delegate-directory` (Section 6.1) |
| Meeting requests between delegates | — | — | Yes | `/v1/delegate-accounts/{ACCOUNT_ID}/connections` (Section 6.2) |
| eBooks and files you host, page analytics | Your site | Your site | Your site | Sections 5.9 and 8 |

### Worked examples

| The organiser | What they add | Level | What to build |
|---|---|---|---|
| Registration runs on an event-management platform, contacts live in a CRM, the event site is already built. They want a photo gallery, a speaker page and the post-event report on that site | Gallery, speakers, report download | **1** | Server-side reads of `photos?public=true`, `speakers` and `hub/sessions/{SESSION_ID}/report.pdf`, placed in their existing page templates. No bookings, accounts or emails in Audiobly. If the report should be for attendees only, put it behind their existing login (Level 2) and check bookings in their own platform |
| A members' site with its own login wants session write-ups visible only to people who attended | Write-ups and reports for attendees | **2** | Their login decides who is signed in; their ticketing records (or `registrations/lookup`) decide who attended; Audiobly supplies the content |
| A new event site with no login wants delegates to sign in, see who is coming and request meetings | The full hub | **3** | Everything in this guide |
| A site that only needs the speaker list on its programme page | Speakers | **1** | One cached read of `speakers` (Section 5.5) |

**Sections to read:** Level 1 → Sections 2.1, 3.1 and 5. Level 2 → Sections 2.1, 2.2, 3.1, 3.4 and 5. Level 3 → the whole guide.

---

## 2. Architecture

### 2.1 Every level: server to server

Every Audiobly call is made by your site's server with your API key. The browser talks only to your site. Never put the key in a page, a static file or client-side code.

```
  Visitor's browser
        │  HTTPS, your site's pages (and your session cookie at Levels 2 and 3)
        ▼
  Your website (server side)                         Audiobly API
  ─────────────────────────────                      ──────────────────────────────────
  pages, CMS, your own data        ── API key ──▶   programme, speakers, sponsors, photos
  cache (Section 5.10)                               session write-ups, reports
  access rule (Levels 2 and 3)     ── API key ──▶   registrations lookup, hub reads
  sign-in forms (Level 3 only)     ── API key ──▶   delegate accounts, directory, meetings
```

The read endpoints do **not** know who is looking at your page: your API key can read every event in your organisation. Deciding who may see what is always your site's job.

### 2.2 Level 2: behind your own login

Your site keeps its own sign-in and sessions. Audiobly never sees your users' passwords.

1. Decide who may see an event's material. Usually: a signed-in user who booked that event.
2. Check the booking in your own records. If the bookings also reach Audiobly (Section 3.4), you can ask Audiobly instead:

```bash
curl -s "https://api.audiobly.com/v1/events/$EVENT_ID/registrations/lookup?email=dana@acme.example" \
  -H "Authorization: Bearer $KEY"
# → { "found": true, "name": "Dana Delegate", "source": "…", "status": "confirmed" }
```

   This needs `prep_manage` on the key. Treat `cancelled` and `pending` (an unpaid order) as not booked. Look up by the email your login holds, and cache the answer for the length of your session rather than calling on every page.
3. Render the pages from the Level 1 reads (Section 5) and relay downloads through your server (Sections 5.4 and 5.7).

The delegate directory and meeting requests (Section 6) work only with Audiobly delegate accounts: a person must have confirmed an Audiobly account, through the confirm email, before they can appear as available to meet or send a request. A Level 2 site that wants these features adds delegate accounts alongside its own login (Section 4), matched by email address.

### 2.3 Level 3: full delegate hub

Rules the design depends on:

1. **Server to server only.** The delegate-account endpoints refuse a signed-in Audiobly user's token with `403 API_KEY_REQUIRED`, so they can only be called with the key.
2. **Your site keeps the session.** After a successful confirm or sign-in, Audiobly returns the account. Your site sets its own session cookie holding the account `id` and an expiry, signed by your server. Audiobly does not issue delegate session tokens.
3. **Re-read the delegate on every request.** Trust nothing in the cookie except the signed account id. Read the account with `GET /v1/delegate-accounts/{ACCOUNT_ID}` and build the page from that answer (name, bookings, networking setting). Treat a `404` or `confirmed: false` as signed out.
4. **Access rule: a delegate sees an event's hub if they hold a live booking for it.** The account's `events[]` lists every booking with its `status`. A booking is live when its status is not `cancelled` or `pending` (an unpaid order). Apply this rule before you render a page or relay a file.
5. **Upcoming and past events are your site's decision.** Use the event's `starts_at`. The reference pattern: a delegate booked on an **upcoming** event sees its directory, the companies attending and meeting requests; a delegate booked on a **past** event sees its session write-ups, reports, speakers, sponsors, companies and photos; a past attendee who has not booked the next event in the same series sees only the companies attending it (organisations, never people).

---

## 3. Set-up

### 3.1 API keys

Create a dedicated key for the website (key management, expiry and rotation are in *Create a complete event via the API*, Section 1):

```bash
curl -sX POST https://api.audiobly.com/v1/api-keys \
  -H "Authorization: Bearer $ADMIN_KEY" -H "Content-Type: application/json" \
  -d '{"name": "Website", "scopes": ["read"]}'
# → 201 { "id": "…", "key": "sk_live_…", "scopes": ["read"], … }
# Level 2 with registrations/lookup, or Level 3: "scopes": ["read", "prep_manage"]
```

| Permission | Needed for |
|---|---|
| `read` | All levels: hub reads (`/hub/sessions`, `/hub/companies`, report PDF), and the delegate directory at Level 3 |
| `prep_manage` | Level 2 if you use `registrations/lookup`; Level 3 for every delegate action: confirm, sign in, reset, re-send, profile, headshot, the delegate's company, unsubscribe, meeting requests |
| `asset_view` | Only if you show transcripts |
| `org_manage` | Delegate-account settings and invitations — **keep this off the website key**; use a separate admin key from a trusted machine |

Speakers, sponsors, sessions, events and the photo feed are readable by any valid key. A scoped key calling something outside its scopes gets `403 FORBIDDEN`. Store the key in your server's environment, never in client-side code.

### 3.2 Delegate-account settings (Level 3)

Skip this at Levels 1 and 2: with delegate accounts off, Audiobly creates no accounts and sends no emails.

`GET` / `PUT /v1/delegate-accounts/settings` (organisation admins, `org_manage`). `PUT` changes only the fields you send and returns the full settings.

```bash
curl -sX PUT https://api.audiobly.com/v1/delegate-accounts/settings \
  -H "Authorization: Bearer $ADMIN_KEY" -H "Content-Type: application/json" \
  -d '{"enabled": true, "site_base_url": "https://events.example.com",
       "from_name": "Example Events", "from_address": "hello@events.example.com",
       "accent": "#0B5FFF", "auto_welcome": false}'
```

| Field | Default | Notes |
|---|---|---|
| `enabled` | `false` | Accounts work only when `enabled` is `true` **and** `site_base_url` is set; otherwise nothing is created or sent and invitations return `409 NOT_ENABLED` |
| `site_base_url` | — | Your site. Email links point here (Section 3.3). A trailing `/` is removed |
| `from_name` | your organisation's name | Sender name, and the name used in email copy |
| `from_address` | — | Sender address; its domain must be verified (Section 7.4). Without it, emails go from Audiobly's default sender |
| `logo_url` | your brand logo | Email header logo |
| `accent`, `accent_text`, `header_bg` | brand colour, `#ffffff`, — | `#RRGGBB` colours for the email button, its text and the header |
| `networking_wording`, `networking_wording_version` | built-in text, `v1` | The networking text your site shows; the version is recorded with each delegate's choice. Change the version whenever you change the words |
| `auto_welcome` | `true` | Send the confirm email automatically on each new booking (Section 7) |
| `launch_past_content` | `the material from our past events` | Up to 300 characters; what the launch invitation says an account opens |

### 3.3 Pages your site must serve (Level 3)

Audiobly builds these links from `site_base_url`:

| Link in the email | Your page |
|---|---|
| `{site_base_url}/account/confirm?token=…` | Confirm the account (Section 4.2) |
| `{site_base_url}/account/reset?token=…` | Choose a new password (Section 4.4) |
| `{site_base_url}/account/unsubscribe?token=…` | Unsubscribe from invitations (Section 4.7) |
| `{site_base_url}/events/{register_slug}/book`, or `{site_base_url}/events` | "Register Now" in the past-attendee invitation (Section 7.1) |

`site_base_url` may include a path, e.g. `https://example.com/hub` gives `https://example.com/hub/account/confirm`.

### 3.4 Where bookings come from

Bookings often live in several systems at once: one or more ticketing platforms, a registration form, a CRM, sponsor and speaker lists, guest lists kept by hand. Your site, or the agency that runs it, may already manage all of this. Audiobly does not need to become the system of record.

**When Audiobly needs the bookings at all:**

| You want | Bookings in Audiobly? |
|---|---|
| Programme, speakers, sponsors, photos, write-ups, reports on your site (Levels 1 and 2) | **No** |
| Audiobly to confirm who booked (`registrations/lookup`, Level 2) | Yes, for the events you check |
| The companies attending, audience intelligence, the delegate directory | Yes |
| Delegate accounts, sign-in emails and meeting requests (Level 3) | Yes |

**How to send bookings, if you need to.** Use whichever fits your systems; you can combine them, and records are matched by email address, so the same person arriving from two sources stays one attendee:

| How the booking arrives | Typical use | Account created and confirm email queued automatically? (Level 3) |
|---|---|---|
| A ticketing integration's sync or webhook (Part C of the [ticketing guide](/developers/guides/ticketing.md)) and other connectors | Your ticketing platform is supported | Yes |
| `POST /v1/events/{EVENT_ID}/attendees`, `PUT /v1/events/{EVENT_ID}/attendees/{ATTENDEE_ID}`, `POST /v1/events/{EVENT_ID}/attendees/import` (CSV) | Your own system pushes each booking, or you upload a list | Yes |
| `POST /v1/events/{EVENT_ID}/registrations`, `POST /v1/events/{EVENT_ID}/registrations/import`, `POST /v1/events/{EVENT_ID}/payments/confirm`, native ticket orders | Audiobly takes the registration, or you import from another platform's export | **No** |

At Level 3, "automatically" means: when accounts are enabled, the booking is not `cancelled` or `pending`, its event has not started yet, and the account has never been welcomed or confirmed. The email itself goes only when `auto_welcome` is `true`; with it off, the account is created silently. For bookings that arrive through the routes marked **No**, create the accounts with `POST /v1/delegate-accounts/ensure-accounts` and then send the launch invitation, or call `POST /v1/delegate-accounts/resend-welcome` for one person (Sections 4.5 and 7).

```bash
curl -sX POST https://api.audiobly.com/v1/delegate-accounts/ensure-accounts \
  -H "Authorization: Bearer $ADMIN_KEY" -H "Content-Type: application/json" \
  -d '{"event_id": "'$EVENT_ID'", "dry_run": false}'
# → { "dry_run": false, "event_id": "…", "bookings": 412, "existing": 380,
#     "to_create": 32, "created": 32, "sample": ["…"] }
```

`dry_run` defaults to `true` (counts only). This call never sends an email. It works for past and upcoming events.

If your ticketing checkout asks the networking question, the answer is stored on the account before it is confirmed and returned as `networking_at_booking` (Section 4.2).

---|---|
| Ticketing integration sync or webhook (Part C of the [ticketing guide](/developers/guides/ticketing.md)) and other connectors | Yes |
| `POST /v1/events/{EVENT_ID}/attendees`, `PUT /v1/events/{EVENT_ID}/attendees/{ATTENDEE_ID}`, `POST /v1/events/{EVENT_ID}/attendees/import` | Yes |
| `POST /v1/events/{EVENT_ID}/registrations`, `POST /v1/events/{EVENT_ID}/registrations/import`, `POST /v1/events/{EVENT_ID}/payments/confirm`, native ticket orders | **No** |

"Automatically" means: when accounts are enabled, the booking is not `cancelled` or `pending`, its event has not started yet, and the account has never been welcomed or confirmed. The email itself goes only when `auto_welcome` is `true`; with it off, the account is created silently.

For bookings that arrive through the routes marked **No**, create the accounts with `POST /v1/delegate-accounts/ensure-accounts` and then send the launch invitation, or call `POST /v1/delegate-accounts/resend-welcome` for one person (Sections 4.5 and 7).

```bash
curl -sX POST https://api.audiobly.com/v1/delegate-accounts/ensure-accounts \
  -H "Authorization: Bearer $ADMIN_KEY" -H "Content-Type: application/json" \
  -d '{"event_id": "'$EVENT_ID'", "dry_run": false}'
# → { "dry_run": false, "event_id": "…", "bookings": 412, "existing": 380,
#     "to_create": 32, "created": 32, "sample": ["…"] }
```

`dry_run` defaults to `true` (counts only). This call never sends an email. It works for past and upcoming events.

If your ticketing checkout asks the networking question, the answer is stored on the account before it is confirmed and returned as `networking_at_booking` (Section 4.2).

---

## 4. Accounts and sign-in (Level 3)

Levels 1 and 2 skip this section: your site, or nobody, signs people in.

All endpoints in this section need the API key (`prep_manage`). `403 API_KEY_REQUIRED` if called with a user token. Exceptions: 4.16 (What to do on Monday) is event content and takes `read` from any key or user, so Levels 1 and 2 can use it too; the two `…/build` endpoints in 4.14 and 4.15 take `prep_manage` from the API key or a signed-in organiser.

### 4.1 The account object

Confirm, sign-in, `GET`, `PATCH` and headshot calls return:

```json
{
  "id": "6f1c…", "email": "dana@acme.example", "name": "Dana Delegate",
  "confirmed": true, "confirmed_at": "2026-10-01T09:12:00Z",
  "networking": true, "networking_set_at": "2026-10-01T09:12:00Z",
  "networking_wording_version": "v1", "last_login_at": "2026-10-20T08:01:00Z",
  "directory_listed": true, "show_company": true,
  "email_preferences": { "event_reminders": true, "takeaways": true, "news": true },
  "profile": {
    "first_name": "Dana", "last_name": "Delegate", "honorific": null,
    "job_title": "Head of Data", "company": "Acme", "country": "GB",
    "company_website": "https://acme.example", "bio": null,
    "headshot_url": "/v1/media/{path}", "social_links": {"linkedin": "https://…"},
    "talk_about": "Licensing archives to AI companies"
  },
  "events": [
    { "event_id": "…", "title": "Example Summit 2026", "starts_at": "2026-11-12T08:30:00Z",
      "attendee_id": "…", "delegate_type": "Delegate", "status": "confirmed" }
  ],
  "companies": [
    { "id": "…", "name": "Acme", "website": "https://acme.example", "logo_url": "/v1/media/{path}",
      "summary": "…", "industry": "Media & Publishing", "products": ["…"], "services": [] }
  ],
  "guest_access": [],
  "guest_only": false
}
```

- `guest_access[]` and `guest_only` are for guests, people you let in without a booking (Section 4.22). Both are empty/false for a delegate.
- `events[]` lists every booking for this email, including cancelled and pending ones. Apply the live-booking rule from Section 2.
- Empty `profile` fields are filled from the delegate's newest live booking, so a first visit shows what you already hold.
- `companies[]` lists the companies the delegate's live bookings are linked to, newest booking first. These are the companies the delegate may edit (Section 4.6). A cancelled or unpaid booking gives none.
- `headshot_url` (and other image URLs) may be a relative `/v1/media/{path}` path: prefix it with `https://api.audiobly.com`.

### 4.2 Confirm the account (first visit)

The confirm email links to `{site_base_url}/account/confirm?token=…`. Your page:

1. Reads the token's owner: `GET /v1/delegate-accounts/confirm-info?token=…` → `{"name": "Dana Delegate", "networking_at_booking": true}`. `networking_at_booking` is `null` when the booking form did not ask; use it to pre-set the networking checkbox.
2. Asks for a password (twice, on your side) and the networking choice, showing `networking_wording`.
3. Posts them:

```bash
curl -sX POST https://api.audiobly.com/v1/delegate-accounts/confirm \
  -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
  -d '{"token": "'$TOKEN'", "password": "a long passphrase here", "networking": true}'
# → 200 the account (confirmed: true)
```

4. Starts your session with the returned `id`.

Confirm links last **30 days** and stop working once the account is confirmed. `400 INVALID_TOKEN` for a bad, expired or used link: offer "send me a new link" (Section 4.5).

**Password policy** (`422 WEAK_PASSWORD`, the `message` says which rule failed — show it): 12 to 128 characters; not a common password; must not contain the email's local part or the delegate's first or last name (parts of 4 characters or more); not one repeated character.

### 4.3 Sign in

```bash
curl -sX POST https://api.audiobly.com/v1/delegate-accounts/login \
  -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
  -d '{"email": "dana@acme.example", "password": "…", "client_ip": "203.0.113.7"}'
# → 200 the account
```

- `401 INVALID_CREDENTIALS` for an unknown email, an unconfirmed account or a wrong password — the same answer for all three. Tell an unconfirmed delegate to use the link in their confirmation email.
- `429 TOO_MANY_ATTEMPTS` after repeated failures (currently 10 within 15 minutes), with a `Retry-After` header in seconds.
- **Always send `client_ip`** — the delegate's IP as your server received it. Without it, every delegate shares your server's counter and one person's failures lock out others.

### 4.4 Forgotten password

1. `POST /v1/delegate-accounts/password-reset/request` with `{"email", "client_ip"}` → always `202 {"status": "ok"}`, whether or not the account exists. Only a confirmed account gets an email.
2. The email links to `{site_base_url}/account/reset?token=…`. The link expires after 60 minutes (the email states the time) and stops working once the password has changed.
3. `POST /v1/delegate-accounts/password-reset/confirm` with `{"token", "password"}` → `200 {"status": "ok"}`. This does **not** return the account, so send the delegate to your sign-in page.

Errors: `400 INVALID_TOKEN`, `422 WEAK_PASSWORD`, `429 TOO_MANY_ATTEMPTS`.

### 4.5 Re-send the confirm email

`POST /v1/delegate-accounts/resend-welcome` with `{"email", "client_ip"}` → always `202`. An unconfirmed account gets a new confirm email with a fresh 30-day link; nothing happens for unknown or already-confirmed addresses.

Reset requests and re-sends are throttled per `client_ip` (the same 10-per-15-minutes limit). Calls without `client_ip` all share one counter.

### 4.6 Profile, headshot and networking

| Action | Endpoint |
|---|---|
| Read the account | `GET /v1/delegate-accounts/{ACCOUNT_ID}` |
| Update profile and/or networking (send only what changed) | `PATCH /v1/delegate-accounts/{ACCOUNT_ID}` |
| Upload a headshot (multipart `file`, PNG, JPG or WEBP, up to 10 MB) | `POST /v1/delegate-accounts/{ACCOUNT_ID}/headshot` |
| Remove the headshot | `DELETE /v1/delegate-accounts/{ACCOUNT_ID}/headshot` |
| Edit the delegate's company (send only what changed) | `PATCH /v1/delegate-accounts/{ACCOUNT_ID}/companies/{COMPANY_ID}` |
| Upload the company logo (multipart `file`, PNG, JPG or WEBP, up to 10 MB) | `POST /v1/delegate-accounts/{ACCOUNT_ID}/companies/{COMPANY_ID}/logo` |
| Remove the company logo | `DELETE /v1/delegate-accounts/{ACCOUNT_ID}/companies/{COMPANY_ID}/logo` |

```bash
API=https://api.audiobly.com/v1

curl -sX PATCH $API/delegate-accounts/$ACCOUNT_ID \
  -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
  -d '{"job_title": "Chief Data Officer", "social_links": {"linkedin": "https://www.linkedin.com/in/dana"}, "networking": true}'

curl -sX POST $API/delegate-accounts/$ACCOUNT_ID/headshot \
  -H "Authorization: Bearer $KEY" -F "file=@dana.jpg"
```

`PATCH` fields: `networking`, `first_name`, `last_name` (100), `honorific` (30), `job_title` (200), `company` (200), `country` (100), `company_website` (500, must start `http://` or `https://`), `bio` (2,000), `social_links`, `talk_about` (500), `directory_listed`, `show_company`, `email_preferences`. A string sent empty clears the field.

**Listing.** Three choices map onto two fields:

| The delegate chooses | Send |
|---|---|
| Listed, open to connect | `{"directory_listed": true, "networking": true}` |
| Listed, no requests | `{"directory_listed": true, "networking": false}` |
| Not listed | `{"directory_listed": false}` |

Not listed takes the delegate out of every event's directory (Section 6.1) and closes them to meeting requests, whatever `networking` says; existing conversations disappear from both sides, as when networking is switched off. `show_company: false` hides the delegate's company on their directory listing and stops their booking from putting the company on the companies list (Section 5.6); a colleague's booking still does. `talk_about` ("What I want to talk about") shows on the listing.

**Email choices.** `email_preferences` takes any of `event_reminders`, `takeaways` and `news` (true or false); other names are refused (422). `news` is the organiser's invitations to future events and is the same switch as Unsubscribe (Section 4.7): `false` unsubscribes, `true` subscribes again. Booking, password and sign-in emails are not a choice. Connection request emails follow the networking setting. Audiobly keeps `event_reminders` and `takeaways` for the senders of those emails; it does not send either kind itself yet.

```bash
curl -sX PATCH $API/delegate-accounts/$ACCOUNT_ID \
  -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
  -d '{"directory_listed": true, "networking": false, "show_company": false,
       "email_preferences": {"takeaways": false}}'
```

Listing and email changes are recorded in the delegate's activity (`delegate.listing_changed`, `delegate.email_preferences_changed`).

`social_links` is a map of up to 8 links; names use `a-z`, `0-9`, `-` and `_`; each URL must start `http://` or `https://`; an empty value removes that link.

**The delegate's company.** A delegate can keep the public profile of their own company up to date: the company their live booking is linked to (`companies[]` in the account). `PATCH` takes any of `website` (500, must start `http://` or `https://`), `summary` (4,000), `industry` (200), `products` and `services` (each up to 30 items of 100 characters). An empty value clears a field. The company name is not changed here: the delegate changes who they work for with the profile's `company` field. Each call returns the company:

```bash
curl -sX PATCH $API/delegate-accounts/$ACCOUNT_ID/companies/$COMPANY_ID \
  -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
  -d '{"summary": "Acme builds data tools for publishers.", "products": ["Acme Insights"]}'
# → { "id": "…", "name": "Acme", "website": "https://acme.example", "logo_url": "/v1/media/{path}",
#     "summary": "Acme builds data tools for publishers.", "industry": "Media & Publishing",
#     "products": ["Acme Insights"], "services": [] }
```

A company that is not linked to one of the delegate's live bookings returns `404`. Fields the delegate sets are kept when Audiobly refreshes the company's profile, and they show on the company's sponsor pages too.

Profile changes and the headshot are copied to the delegate's attendee records, so your team sees the delegate's own corrections in Audiobly. When `networking` changes, Audiobly records the time and your organisation's current `networking_wording_version`.

`404 NOT_FOUND` if the account is not in your organisation. Always take `ACCOUNT_ID` from your signed session, never from the request.

### 4.7 Unsubscribe

Invitations carry a link to `{site_base_url}/account/unsubscribe?token=…` (the token lasts a year).

- `GET /v1/delegate-accounts/unsubscribe-info?token=…` → `{"email_masked": "d***@acme.example", "unsubscribed": false}` — show the masked address before asking.
- `POST /v1/delegate-accounts/unsubscribe` with `{"token"}` → `{"email_masked", "unsubscribed": true}`. Repeat calls give the same answer.

Unsubscribing stops launch and past-attendee invitations. It does not stop the confirm and password-reset emails, and it does not affect sign-in. The past-attendee invitation also carries a one-click header (`POST /v1/delegate-accounts/unsubscribe/one-click`) that works without your site; opening that URL in a browser redirects to your unsubscribe page.

---

### 4.8 Saved sessions

Let signed-in delegates save sessions to plan their day. A save belongs to the delegate account, so it shows on your site and on the Audiobly event website alike, and the organiser sees per session who saved it (Sessions › Saved sessions).

```bash
curl -s "https://api.audiobly.com/v1/delegate-accounts/<account_id>/saved-sessions?event_id=<event_id>" -H "Authorization: Bearer $KEY"
# → { "data": [ { "session_id": "…", "saved_at": "2026-11-11T09:12:00Z" } ] }   (programme order)
curl -sX PUT "https://api.audiobly.com/v1/delegate-accounts/<account_id>/saved-sessions/<session_id>?source=website" -H "Authorization: Bearer $KEY"
# → 200 { "session_id": "…", "saved_at": "…" }   (idempotent: the first saved_at is kept)
curl -sX DELETE "https://api.audiobly.com/v1/delegate-accounts/<account_id>/saved-sessions/<session_id>?source=website" -H "Authorization: Bearer $KEY"
# → 204   (also when it was not saved; the removal is kept in the delegate's activity)
```

- Show the save button only to signed-in delegates. `PUT` answers `422 NOT_BOOKED` when the delegate has no live booking at the session's event.
- Send `?source=website` on `PUT` and `merge`, so the organiser's **Saved where** figure shows the save as made on your site. Without it the save shows as not recorded.
- If your site kept saves in the browser before sign-in, send them once at sign-in: `POST /v1/delegate-accounts/{ACCOUNT_ID}/saved-sessions/merge?source=website` with `{"event_id": "…", "session_ids": [...]}`. It adds the ones not yet saved, ignores ids that are not sessions of the event, and returns the full list. Then drop the browser copy.
- Saving is not pre-registration: it never takes or holds a place (Section E3 of *Ticketing, registrations & delegate accounts*).

### 4.9 Activity

Send what a signed-in delegate does on your site, so it is kept on their account for audience intelligence (profiles, personalisation, CRM). Audiobly already records saves, pre-registrations, connections, sign-ins and profile changes itself; send the rest: sessions, speakers and companies viewed, reports downloaded, searches, outbound clicks.

```bash
curl -sX POST https://api.audiobly.com/v1/delegate-accounts/<account_id>/activity \
  -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
  -d '{"items": [
        {"type": "session.viewed", "session_id": "<session_id>", "occurred_at": "2026-11-18T09:12:00Z"},
        {"type": "report.downloaded", "event_id": "<event_id>", "payload": {"session_id": "<session_id>"}}
      ]}'
# → 202 { "accepted": 2, "dropped": 0 }
```

- Up to 50 items a call. `type` is lower-case and dotted (`area.action`, 64 characters at most); `payload` is an object of at most 4 KB. `occurred_at` is optional; a time more than a day off is replaced with the time received.
- An item that cannot be kept (a `type` that is not lower-case and dotted, a `payload` over 4 KB) is dropped and counted, not an error. An item of the wrong shape (a `type` over 64 characters, a `payload` that is not an object, an id that is not a UUID, more than 50 items) makes the whole call `422`. An `event_id` or `session_id` that is not in your organisation is cleared; a `session_id` fills in its event.
- Send only for a signed-in delegate, and never send an email address, name or free text they typed into the payload.
- 404 when the account is not in your organisation, 429 `TOO_MANY_REQUESTS` when one account sends more than 300 calls in 10 minutes (batch in the browser and send every few seconds). Activity is erased with the account.

### 4.10 Your tickets

The delegate's own tickets for an event, for a "Your ticket" page.

```bash
curl -s "https://api.audiobly.com/v1/delegate-accounts/<account_id>/tickets?event_id=<event_id>" -H "Authorization: Bearer $KEY"
# → { "data": [ { "ticket_code": "BC-…", "reference": "BC-…", "ticket_type": "Delegate", "order_id": "or_…", "issued_ticket_id": "it_…",
#                 "issued_at": "2026-10-02T14:10:00Z", "checked_in": false, "checked_in_at": null,
#                 "qr_code_url": "https://…", "barcode_url": "https://…" } ] }
```

Only tickets whose holder email is the account's, so a group booker sees their own ticket and not their colleagues'. Cancelled and unpaid tickets are left out.

The code, order, images and check-in come from **Ticket Tailor** (*Ticketing, registrations & delegate accounts*, Part C). `qr_code_url` and `barcode_url` are Ticket Tailor's own images, when it sends them. `checked_in` turns true when the ticket is scanned at the door with Ticket Tailor; on the event day, scans arrive within about 5 minutes. A booking from anywhere else (an import, a registration from your site, Audiobly ticketing) is still listed, with `ticket_type` and `issued_at`, but its `ticket_code`, `order_id`, `issued_ticket_id` and images are null and `checked_in` stays `false`, also after a scan with `POST /v1/events/{EVENT_ID}/checkins`.

### 4.11 Followed themes

The themes of an event a delegate follows, kept on their account so they follow them from device to device. A theme is your site's own key (1–64 lower-case letters, digits, `-` or `_`, starting with a letter or digit), for example `agents`.

```bash
curl -s "$API/delegate-accounts/$ACCOUNT_ID/followed-themes?event_id=$EVENT_ID" -H "Authorization: Bearer $KEY"
# → { "data": [ { "theme": "agents", "followed_at": "2026-11-12T10:02:00Z", "alerts": false } ] }   (oldest first)
curl -sX PUT "$API/delegate-accounts/$ACCOUNT_ID/followed-themes/agents?event_id=$EVENT_ID" -H "Authorization: Bearer $KEY"
# → 200 { "theme": "agents", "followed_at": "…", "alerts": false }   (idempotent: the first followed_at is kept)
curl -sX PUT "$API/delegate-accounts/$ACCOUNT_ID/followed-themes/agents?event_id=$EVENT_ID" \
  -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" -d '{"alerts": true}'
# → 200 { "theme": "agents", "followed_at": "…", "alerts": true }
curl -sX DELETE "$API/delegate-accounts/$ACCOUNT_ID/followed-themes/agents?event_id=$EVENT_ID" -H "Authorization: Bearer $KEY"
# → 204   (also when it was not followed; the unfollow is kept in the delegate's history)
```

- Themes followed in the browser before sign-in: send them once with `POST /v1/delegate-accounts/{ACCOUNT_ID}/followed-themes/merge` and `{"event_id": "…", "themes": ["agents", "payoff"]}` (up to 100). Invalid keys are skipped; the full list comes back. Then drop the browser copy.
- `422 INVALID_THEME` for a bad key, `422 TOO_MANY_THEMES` past 100 at one event.
- Follows and unfollows are recorded in the delegate's activity (`theme.followed`, `theme.unfollowed`).
- **Alerts** (`alerts`): whether the delegate wants alerts on a theme. Send `{"alerts": true|false}` as the body of the `PUT` (or `?alerts=true`; the body wins). Leave it out to keep the current choice; a new follow starts with `false`. A change is recorded as `theme.alerts`. Audiobly only stores and returns the choice: **it sends no email or other alert from it.** If your site sends theme alerts, it reads this flag and sends them itself.

### 4.12 Notes

A delegate's private notes: one free-text note for the event and one per session (kind `note`), plus typed notes, many per session: moments, quotes, questions and upvotes.

```bash
curl -sX PUT $API/delegate-accounts/$ACCOUNT_ID/notes \
  -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
  -d '{"event_id": "<event_id>", "text": "Follow up with Grace"}'
# → 200 { "id": "…", "session_id": null, "text": "Follow up with Grace", "created_at": "…", "updated_at": "…" }
curl -s "$API/delegate-accounts/$ACCOUNT_ID/notes?event_id=$EVENT_ID" -H "Authorization: Bearer $KEY"
# → { "data": [ { "id": "…", "session_id": null, "text": "…", … }, { "session_id": "…", … } ] }
curl -sX DELETE "$API/delegate-accounts/$ACCOUNT_ID/notes?event_id=$EVENT_ID&session_id=$SESSION_ID" -H "Authorization: Bearer $KEY"
# → 204
```

- Add `"session_id"` to write a session's note. Each `PUT` replaces that note (up to 10,000 characters); empty `text` deletes it (204).
- The list has the event's note first, then the sessions' notes in programme time.
- Notes are only for the delegate: show them only on their own pages. The activity row records that a note was saved and its length, never the text. Notes are erased with the account.

**Typed notes.** Every note has a `kind`: `note` (the free-text note above), `moment`, `quote`, `question` or `upvote`, plus `timestamp_seconds` and `quote_id` (both `null` when not used). The free-text note keeps its rule of one per event and per session; the other kinds are added one at a time, many per session (up to 2,000 per event).

```bash
curl -sX POST $API/delegate-accounts/$ACCOUNT_ID/notes \
  -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
  -d '{"event_id": "<event_id>", "session_id": "<session_id>", "kind": "moment", "timestamp_seconds": 754, "text": "The cost curve slide"}'
# → 201 { "id": "…", "session_id": "…", "text": "The cost curve slide", "kind": "moment",
#         "timestamp_seconds": 754, "quote_id": null, "created_at": "…", "updated_at": "…" }
curl -s "$API/delegate-accounts/$ACCOUNT_ID/notes?event_id=$EVENT_ID&kind=moment" -H "Authorization: Bearer $KEY"
# → { "data": [ { "id": "…", "kind": "moment", "timestamp_seconds": 754, … } ] }
curl -sX DELETE "$API/delegate-accounts/$ACCOUNT_ID/notes/$NOTE_ID" -H "Authorization: Bearer $KEY"
# → 204   (any kind; also when it is already gone)
```

| `kind` | What it is | Needs |
|---|---|---|
| `note` | The free-text note (as `PUT`): `POST` writes or replaces the one note for the event or session; empty text deletes it (204) | text; no `timestamp_seconds` or `quote_id` |
| `moment` | A point in a session, e.g. from the player | `session_id` (and `timestamp_seconds` if you have it); text optional |
| `quote` | A quote the delegate kept | `text` and/or `quote_id` |
| `question` | A question the delegate wants to ask (private; it is not posted to the live Q&A) | `text` |
| `upvote` | The delegate upvoted a session, quote or moment. The same upvote again returns the existing one with `200` | `session_id` or `quote_id` |

- `timestamp_seconds` (0 or more) needs a `session_id`. `quote_id` is your own reference (up to 128 characters).
- `GET …/notes` returns every kind unless you pass `?kind=`. Order: the event's own notes first, then per session in programme time; within a session the free-text note first, then by `timestamp_seconds`, then oldest first. Clients that only use `PUT`/`DELETE …/notes` see only their own `note` rows, as before, until they create typed notes.
- `DELETE …/notes?event_id=…&session_id=…` still deletes only the free-text note.
- Errors: `422 INVALID_KIND`, `422 INVALID_NOTE`, `422 TEXT_REQUIRED`, `422 NOTE_TOO_LONG`, `422 TOO_MANY_NOTES`; `404` when the account, event or session is not in your organisation.
- Activity: `note.added` with `{kind, length}` and `note.deleted` with `{kind}`, never the text.

### 4.13 Live Q&A and polls from your site

To let a signed-in delegate ask questions, upvote and vote in polls on your own session pages, use the event webpage's public endpoints (*Live translation* guide, Q&A and polls) with a webpage sign-in for that delegate:

```bash
curl -sX POST "$API/delegate-accounts/$ACCOUNT_ID/live-session?event_id=$EVENT_ID" -H "Authorization: Bearer $KEY"
# → 201 { "slug": "summit-2026", "token": "…", "expires_at": "2026-12-12T10:00:00Z", "client_id": "site-…" }
```

Then call the event webpage's Q&A and poll endpoints from your server with this `client_id`:

- `POST /v1/public/live/{slug}/sessions/{session_id}/qa`, `POST …/qa/{question_id}/vote` and `POST …/polls/{poll_id}/vote`: send the header `X-Delegate-Session: <token>` and `client_id` in the body. The questions and votes are then the delegate's.
- `GET /v1/public/live/{slug}/sessions/{session_id}/qa` and `GET …/polls`: send `?client_id=`, so `mine` and `voted` are set for the delegate. These reads do not need the header.
- In a room that needs a QR code or passcode (the webpage's `qr` or `strict` access), also send `?token=` with an attendee token from `POST /v1/public/live/{slug}/access` (*Live translation* guide, 5b), or the calls answer `401 PASSCODE_REQUIRED`. In `open` rooms no attendee token is needed.

Keep the delegate's session token on your server; it lasts 30 days and stops working when the booking is cancelled. `422 NOT_BOOKED` without a live booking, `404 NO_WEBPAGE` when the event has no event webpage.

**My questions.** The questions a delegate asked or upvoted on the event webpage while signed in (through this sign-in or the webpage's own), for a "My questions" page:

```bash
curl -s "$API/delegate-accounts/$ACCOUNT_ID/questions?event_id=$EVENT_ID" -H "Authorization: Bearer $KEY"
# → { "data": [ { "question_id": "…", "session_id": "…", "session_title": "Protein at scale",
#                 "text": "What does it cost per kilo?", "status": "answered", "vote_count": 7,
#                 "asked": true, "upvoted": false,
#                 "asked_at": "2026-11-18T10:12:00Z", "answered_at": "2026-11-18T10:31:00Z" } ] }
```

- Newest first. The delegate's own questions in every `status` (`pending`, `live`, `answered`, `dismissed`); questions they only upvoted while the room can see them (`live`, `answered`).
- `answered_at` is when a moderator marked the question answered (`null` otherwise; questions answered before 1.3.14 have none). Never an asker's name.
- Questions asked or upvoted anonymously (without a delegate sign-in) are not linked to the account and are not listed.

### 4.14 Actions for your business

Three to five actions for one delegate's business, drawn from the opportunities and takeaways of **their** sessions: the ones they saved, hold a place on or attended. They are personalised to their job title and company (their profile, else their booking), function, seniority and ticket type, their "What I want to talk about" and the themes they follow. At most 12 of their sessions are used: attended first, then places held, then saved.

```bash
curl -s "$API/delegate-accounts/$ACCOUNT_ID/actions?event_id=$EVENT_ID" -H "Authorization: Bearer $KEY"
# → { "status": "ready", "basis": "your_sessions", "generated_at": "2026-11-18T19:02:11Z",
#     "data": [ { "heading": "Mine the archive", "action": "Vectorise your archive this week …",
#                 "why": "…", "category": "technology", "session_id": "…", "session_title": "…",
#                 "source_kind": "opportunity", "source_text": "Vectorise the archive." } ] }
```

- `basis` is `"your_sessions"`, or `"event"` when none of their sessions has insights yet. In that case the event's most relevant analysed sessions are used, and you should say so on the page.
- Every action rests on one session the model was given. `source_text` is the opportunity or takeaway, verbatim. An action that cites nothing, or cites something it was not given, is dropped.
- `status` can be one of these:
  - `"not_ready"`, with an empty `data`, while no session of the event has insights (an analysis or an approved Session Report). Show your "arrives after the sessions" text. No LLM call is made.
  - `"failed"` when nothing grounded came back. It is retried after 30 minutes, or sooner when the inputs change.
- **Cost.** One LLM call, made during the delegate's first read (so that read can take several seconds), is then cached. It runs again only when their sessions, those sessions' analysis or report, or their profile or followed themes change.
- **Pre-build (optional).** Call `POST /v1/events/{EVENT_ID}/delegate-actions/build` with an optional `{"limit": 200}` (default 200, 1–1000). It needs `prep_manage` and always answers `202`: `{ "status": "queued", "delegates": 180 }`, or `{ "status": "not_ready", "delegates": 0 }` (nothing queued) while no session has insights. It builds in the background for signed-in delegates (a confirmed account with a live booking), most recently active first, up to `limit` (at most 1000). Delegates whose inputs have not changed cost nothing. In production, leave actions lazy (built on first read) unless you want them ready the moment the evening email lands.
- `403 NOT_BOOKED` without a live booking at the event.

### 4.15 Daily briefing

The next-morning briefing for one programme day. It covers what happened, the top themes, the quote of the day, three things to do and what to catch next.

```bash
curl -s "$API/delegate-accounts/$ACCOUNT_ID/briefings?event_id=$EVENT_ID&day=2026-11-18" -H "Authorization: Bearer $KEY"
# → { "status": "ready", "day": "2026-11-18", "day_number": 1, "days": ["2026-11-18", "2026-11-19"],
#     "send_at": null, "subject": "Day 1: …", "headline": "…", "what_happened": "…",
#     "top_themes": [ { "key": "agents", "name": "Agents", "summary": "…", "session_ids": ["…"] } ],
#     "actions": [ { "action": "…", "why": "…", "audience": "brand", "session_id": "…",
#                    "session_title": "…", "offset_sec": 643, "speaker": "…", "quote": "…", "verbatim": "…",
#                    "yours": true } ],
#     "quote": { "text": "…", "verbatim": "…", "speaker": "…", "session_id": "…", "offset_sec": 125 },
#     "catch_today": [ { "session_id": "…", "title": "…", "starts_at": "…", "why": "You saved this session. …" } ],
#     "next_steps": "…", "speech_text": "…", "basis": "your_sessions", "generated_at": "…",
#     "stale": false, "sessions_covered": 14, "sessions_total": 16 }
```

- `day` is a date in the event's timezone. Without it you get the latest programme day that is over by `as_of` (an ISO time, default now), which only chooses that default day. An explicit `day` is returned even if it is not over yet, so you can preview it.
- The **event-level part** is made once per day and shared by every delegate. That part is `subject`, `headline`, `what_happened`, `top_themes`, `quote`, `next_steps` and the reasons in `catch_today`.
- The **personal part** costs no LLM call.
  - `actions` are up to three of the day's What to do on Monday actions (4.16), one per session, from sessions whose actions are ready: their own sessions first (`yours: true`), then by followed theme and role.
  - `catch_today` is up to three sessions of the next programme day: their saved and placed sessions first, then sessions under a theme they follow, then the other sessions the day summary suggests.
  - `basis` says whether any of the day's sessions were theirs.
- `top_themes[].key` is the event theme's key when the day's theme is one of the event's themes; otherwise it is a slug of its name. Themes that cite no session of the day are dropped.
- The quote is a speaker's words, matched to a transcript line (most of its words must appear in that line); `offset_sec` and `speaker` come from that line. Since 1.3.16, `quote.text` and each action's `quote` are cleaned newspaper-style (false starts, fillers and repeated words removed; *Event Insights* guide), and `verbatim` keeps the words as transcribed, for the transcript link. A quote of the day that is not one complete thought after cleaning is left out (`quote` is `null`).
- `sessions_covered` is the number of the day's analysed sessions in the summary (at most 40); `sessions_total` is the number of sessions on the day.
- `speech_text` is the whole briefing as plain text, for reading aloud in the browser.
- `status` can be one of these:
  - `"building"` the first time a day is asked for, or after its inputs change (the day's analyses, approved reports or transcripts, the next day's programme, or the event's themes). One background job is queued; read again in a few minutes. While a newer summary is being built, the last one is served with `"status": "ready"` and `"stale": true`.
  - `"not_ready"` when `day` is omitted and no programme day is over by `as_of`, or when none of that day's sessions has insights.
  - `"failed"` when the day summary could not be made. It is not retried for 30 minutes unless its inputs change.
- Errors: `404 DAY_NOT_FOUND` for a day with no sessions, `403 NOT_BOOKED` without a live booking.
- **Pre-build:** `POST /v1/events/{EVENT_ID}/briefings/build`, with `{"day": "2026-11-18"}` or no body for every day already over. It needs `prep_manage` and returns `202 { "status": "queued", "days": ["2026-11-18"] }`, or `202 { "status": "not_ready", "days": [] }` when no requested day has insights; `404 DAY_NOT_FOUND` for a `day` with no sessions. An explicit `day` does not have to be over. It is idempotent.
- **No email.** Audiobly does not send or schedule briefing emails yet, so `send_at` is always `null`. If you email a briefing, send it from your own system with this content.

Field names, if you are moving from an earlier prototype's JSON files (`briefings.json`):
- `sendAt` → `send_at`
- `whatHappened` → `what_happened`
- `topThemes[].title` → `top_themes[].name`, and `.sessionIds` → `.session_ids`
- `actions[].at` → `actions[].offset_sec`
- `quote.at` → `quote.offset_sec`
- `catchToday[].reason` → `catch_today[].why`
- `nextSteps` → `next_steps`
- `day` is the date; `day_number` is the prototype's `day`.

### 4.16 What to do on Monday (per session)

Three to five practical actions from one session. Each one carries the transcript moments it rests on.

```bash
curl -s "$API/events/$EVENT_ID/sessions/$SESSION_ID/actions" -H "Authorization: Bearer $KEY"
# → { "session_id": "…", "title": "Retail media in 2027", "status": "ready", "generated_at": "…",
#     "data": [ { "action": "…", "why": "…", "audience": "all", "offset_sec": 125,
#                 "sources": [ { "offset_sec": 125, "speaker": "Dana Delegate", "quote": "…", "verbatim": "…" } ] } ] }
```

- This endpoint takes `read`, like the hub reads. It is event content, the same for every delegate, so Levels 1 and 2 can use it on a session page. Its quotes are short transcript passages, available with `read` (unlike full transcripts, Section 3.1).
- Every quote is matched to a line of the session's transcript (most of its words must appear in that line); `offset_sec` and `speaker` come from that line. An action without a matched quote is dropped.
- Since 1.3.16, `sources[].quote` is cleaned newspaper-style (*Event Insights* guide) and `sources[].verbatim` keeps the words as transcribed. A source whose quote is not one complete thought after cleaning is left out, and an action left with no source is dropped; actions built before 1.3.16 are cleaned the same way when read.
- `audience` is a short label, such as `brand`, `investor` or `retailer`, or `all`.
- One LLM call per session, made during the first read (it can take several seconds), then cached. It runs again only when the session's transcript, analysis or approved report changes.
- `status` can be one of these:
  - `"not_ready"` until the session has both a transcript and insights.
  - `"building"` while another request is making it.
  - `"failed"` when no action could be grounded in the transcript. It is retried after 30 minutes, or when the transcript, analysis or approved report changes.
- From an earlier prototype's `monday-actions.json`: `sources[].at` → `sources[].offset_sec`.

### 4.17 Recommended sessions

Sessions the delegate did not save, hold a place on or attend that match the themes they follow, or the themes of their own sessions.

```bash
curl -s "$API/delegate-accounts/$ACCOUNT_ID/recommendations?event_id=$EVENT_ID" -H "Authorization: Bearer $KEY"
# → { "data": [ { "session_id": "…", "title": "…", "starts_at": "…",
#                 "why": "Same theme (Agents) as “Agents in the newsroom”, one of your sessions.",
#                 "score": 1.0, "missed": true } ] }
```

- Up to 10, best first. `score` is 0–1 against the best match, and `missed` means the session is over by `as_of` (default now).
- The match uses the event's theme mapping when it has one. Otherwise it uses the overlap of the sessions' analysed topics and themes. No LLM call.
- Followed themes match by key. Use the event theme keys (*Event themes* guide), so that themes and sessions line up.
- `data` is empty when the delegate follows no theme and has no sessions.

**Attended sessions.** `GET /v1/delegate-accounts/{ACCOUNT_ID}/session-registrations?event_id=…` (*Ticketing, registrations & delegate accounts*, Part E) already returns `status: "attended"` for a place marked attended after the day. Ticket Tailor's check-in is a door scan for the whole event, not per session, so it does not mark sessions attended.

### 4.18 Suggested connections

People worth meeting, from what the delegate and they have in common.

```bash
curl -s "$API/delegate-accounts/$ACCOUNT_ID/suggested-connections?event_id=$EVENT_ID" -H "Authorization: Bearer $KEY"
# → { "data": [ { "attendee_id": "…", "name": "Grace Hopper", "job_title": "Director", "company": "…",
#                 "score": 1.0, "why": "You are both going to “…” and “…”. You both follow Agents.",
#                 "shared_sessions": [ { "session_id": "…", "title": "…" } ],
#                 "shared_themes": [ { "key": "agents", "name": "Agents" } ] } ] }
```

- Only delegates open to requests are suggested: a confirmed account, networking on and listed. They must also have a live booking. A delegate who chose **Not listed**, or switched networking off, is never suggested.
- The list never includes the delegate themself, or anyone they are connected with or have a request with (pending, accepted or declined) at this event, in either direction.
- What counts as shared: saved sessions, places held and followed themes. The response shows which of the delegate's sessions and themes the other person shares, so say so in your `networking_wording` (Section 3.2).
- `data` is empty when the delegate has no sessions and follows no themes. `attendee_id` is the booking id that 6.2 takes.
- No contact fields. `company` is null when they switched **Show my company** off. Send meeting requests with 6.2.
- Up to 10. `403 NOT_BOOKED` without a live booking.
- Use this instead of matching savers' names from the organiser's `GET /v1/events/{EVENT_ID}/saved-sessions`.

### 4.19 Contacts export

The delegate's **accepted** connections, as a file they can import.

```bash
curl -s "$API/delegate-accounts/$ACCOUNT_ID/contacts.vcf?event_id=$EVENT_ID" -H "Authorization: Bearer $KEY"   # text/vcard, vCard 3.0
curl -s "$API/delegate-accounts/$ACCOUNT_ID/contacts.csv" -H "Authorization: Bearer $KEY"
# → Name,Job title,Company,Email,LinkedIn
#   Ada Lovelace,Director,Analytical Engines,ada@example.com,https://linkedin.com/in/ada
```

- The fields are exactly what `connected` in `GET …/connections` reveals.
- Pending and declined requests are never included.
- `event_id` is optional; without it, the file covers every event, and the same person can appear once per event.
- A connection whose other side has since switched networking off, chosen Not listed or cancelled their booking is left out. The email is the person's account email. Each file is a download (`Content-Disposition: attachment`); with no connections the CSV has only its header row and the vCard file is empty. CSV cells that start with `=`, `+`, `-` or `@` get a leading `'`.

### 4.20 Tickets: reference, PDF and wallet passes

- `GET …/tickets` (4.10) also returns `reference`. It is the same value as `ticket_code` (Ticket Tailor's `barcode`), for sites that label it "Reference". It is not Ticket Tailor's own `reference` field.
- **No PDF and no wallet pass links.** `GET …/tickets` returns `pdf_url`, `apple_wallet_url` and `google_wallet_url`, and with Ticket Tailor they are **always `null`**: Ticket Tailor's API gives no ticket PDF, Apple Wallet or Google Wallet link. Don't show those buttons while the fields are `null`. Its issued-ticket object carries `barcode`, `barcode_url`, `qr_code_url`, `checked_in` and `reference`, and its orders have no download URL. Ticket Tailor attaches the PDF and the Apple Wallet button to its own confirmation email, and offers no Google Wallet pass.
- Show the QR code (`qr_code_url`) and the code.
- To get a ticket to someone again, use **Resend** in Ticket Tailor's Orders page.

### 4.21 Generated for you, in one shape

One read for a site's "generated for you" cards, covering both Actions for your business (4.14) and the daily briefing (4.15):

```bash
curl -s "$API/delegate-accounts/$ACCOUNT_ID/generated?event_id=$EVENT_ID&kind=briefing&day=2026-06-09" -H "Authorization: Bearer $KEY"
# → { "status": "ready",
#     "data": { "kind": "briefing", "day": "2026-06-09", "built_at": "2026-06-10T05:02:11Z",
#               "payload": { "headline": "…", "what_happened": "…", "top_themes": [ … ], "quote": { … },
#                            "catch_today": [ … ], "next_steps": "…", "speech_text": "…",
#                            "actions": [ { "title": "…", "text": "…", "audience": "brand", "session_id": "…",
#                                           "session_title": "…", "timestamp_seconds": 643, "speaker": "…",
#                                           "quote": "…", "verbatim": "…", "yours": true } ] } } }
```

- `kind` is `actions` or `briefing` (required). `day` and `as_of` work as in 4.15 and are only used for `briefing`.
- The content is the same as `GET …/actions` and `GET …/briefings`; only the shape differs. Every action has `title`, `text`, `audience`, `session_id` and `timestamp_seconds` (the moment in seconds, or `null`). For `actions`, `audience` and `timestamp_seconds` are `null`, and each action also carries `why`, `category`, `session_title` and `source_text`. `payload.basis` is there for both.
- `status` is the one from those endpoints. `data` is `null` while it is `"not_ready"` or `"failed"`, or `"building"` with no earlier version to show.
- Errors, costs and permissions as in 4.14 and 4.15.

### 4.22 Guests: access without a booking

A guest is someone the organiser lets see the event website without a booking, for example a sales prospect. The organiser adds them in Audiobly under **Event › Attendees › Guests** (or with the endpoints below). A guest signs in exactly like a delegate: the same confirm link, password, sign-in and reset calls in this section. They are not a delegate:

- They have **no booking**: `events[]` is empty for them, so a site that does not read `guest_access[]` gives them nothing.
- They are never in the attendee list, the delegate directory (Section 6), the companies attending, any count or export, and they get no delegate email. The only email they get as a guest is the invitation.
- They cannot be asked to connect and cannot ask (`403 NOT_BOOKED`), have no ticket (`tickets` is empty) and cannot take a masterclass place (`403 NOT_BOOKED`).
- Saved sessions, followed themes, notes, takeaways, briefings, Ask and activity work as for a delegate when `my_event` is on.

The account tells your site what to show:

```json
"guest_access": [
  { "event_id": "…", "title": "Example Summit 2026", "starts_at": "2026-11-12T08:30:00Z",
    "hub": true, "my_event": true, "delegate_list": false,
    "access_ends": "2026-12-31", "access_ends_at": "2027-01-01T00:00:00Z" }
],
"guest_only": true
```

- `guest_access[]` has one entry per event, **only while the access applies**. It is left out once `access_ends` has passed (the end of that day in the event's time zone; `null` means no end date), when the organiser removes the guest, and when the same email is booked on that event (the booking in `events[]` then applies). Re-read the account on every request, as for bookings, and a removed or ended guest loses access on their next page.
- `hub`: show the Insider Hub as you show it to a delegate booked on this event. `my_event`: show My event for this event, without the ticket, masterclass places, listing and networking settings, and connections. `delegate_list`: you may show the delegate directory (Section 6.1) read-only, with no Connect button. Off by default: delegates were told their listing is shown to other delegates and speakers.
- `guest_only: true` means the person holds no live booking anywhere in your organisation. For them `networking` and `directory_listed` are always `false`, `PATCH` ignores both, and the networking tick on the confirm page is ignored: do not show those settings. `GET /delegate-accounts/confirm-info` also returns `"guest": true` so the confirm page can leave the networking question out.
- Enforce all of this on your server, not only by hiding links: a guest who opens the URL of the ticket page, the people directory or Connections should be redirected.

Managing guests (a signed-in organiser, or an API key with `prep_manage`; `GET` takes `read`):

```bash
curl -s "$API/events/$EVENT_ID/guests" -H "Authorization: Bearer $TOKEN"
# → { "data": [ { "id": "…", "email": "pat@prospect.example", "name": "Pat Prospect", "company": "Prospect Co",
#                 "hub": true, "my_event": true, "delegate_list": false, "access_ends": "2026-12-31",
#                 "status": "active", "invited_at": "…", "account_confirmed": true, "last_visit_at": "…" } ], "total": 1 }
curl -sX POST "$API/events/$EVENT_ID/guests" -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d '{"email": "pat@prospect.example", "first_name": "Pat", "last_name": "Prospect", "company": "Prospect Co", "access_ends": "2026-12-31"}'
# → 201 the guest, with "invitation_sent": true
curl -sX PATCH "$API/events/$EVENT_ID/guests/$GUEST_ID" -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d '{"delegate_list": true, "access_ends": null}'
curl -sX POST "$API/events/$EVENT_ID/guests/$GUEST_ID/invitation" -H "Authorization: Bearer $TOKEN"   # send it again
curl -sX DELETE "$API/events/$EVENT_ID/guests/$GUEST_ID" -H "Authorization: Bearer $TOKEN"            # → 204
```

- `hub` and `my_event` default to `true`, `delegate_list` to `false`, `access_ends` to no end date. `send_invitation: false` adds the guest without emailing.
- `status` is `active`, `ended` (the end date has passed) or `delegate` (the email has since been booked on this event).
- `409 ALREADY_DELEGATE` when the email already holds a live booking on the event, `409 ALREADY_GUEST` when it is already a guest, `409 DELEGATE_ACCOUNTS_OFF` when delegate accounts are not switched on (Section 3.2; the guest list's `can_add` is then `false`), `422 ACCESS_ENDS_PAST` when a new guest's `access_ends` has already passed, `409 ACCESS_ENDED` when re-sending the invitation to a guest whose access has ended.
- `last_visit_at` is the guest's newest recorded activity (Section 4.9) or sign-in.

## 5. Building each page (all levels)

These reads are the same at every level. At Level 1 the pages may be public; at Levels 2 and 3 apply your access rule (Section 2) before rendering a page or relaying a file.

### 5.1 The event list

- **Levels 1 and 2:** you already know which events your site shows. Keep their Audiobly event ids in your configuration and read each with `GET /v1/events/{EVENT_ID}` for its title, dates and venue.
- **Level 3:** from the signed-in account's `events[]`, keep the live bookings, then read each event the same way. Split them into upcoming and past by `starts_at`.

An event created without dates takes them from its programme: once it has sessions with times, its date and `starts_at` are the earliest session start and `ends_at` the latest session end, and they keep following the programme until someone sets the event's dates. Dates set in Audiobly are never overwritten.

The hub endpoints and the delegate directory accept either the full event UUID or its first 8 characters (the short id used in readable event URLs). The other endpoints in this guide need the full UUID.

For the event line on a hub page (dates and venue), `GET /v1/events/{EVENT_ID}/hub/event` (read key) returns just what the organiser set on the event:

```bash
curl -s https://api.audiobly.com/v1/events/$EVENT_ID/hub/event -H "Authorization: Bearer $KEY"
# → { "id": "…", "title": "Future Food-Tech London", "starts_at": "2026-11-18T08:30:00Z",
#     "ends_at": "2026-11-19T17:30:00Z", "timezone": "Europe/London", "venue": "Kings Place",
#     "address": null, "city": "London", "country": "UK", "venue_note": null,
#     "live_slug": "fft-london", "live_url": "https://audiobly.com/live/fft-london" }
```

Every field is `null` when it is not set; nothing is guessed. `starts_at` falls back to the event date when no start time is set. `address` is always `null` for now: Audiobly does not store a street address yet, so show the venue and city. `live_url` is the Audiobly event webpage, when the event has one.

### 5.2 Sessions

```bash
curl -s https://api.audiobly.com/v1/events/$EVENT_ID/hub/sessions -H "Authorization: Bearer $KEY"
```

```json
{ "data": [
  { "id": "…", "title": "Opening keynote", "kind": "keynote",
    "starts_at": "2026-11-12T09:00:00Z", "ends_at": "2026-11-12T09:30:00Z", "position": 1,
    "speakers": [ {"id": "…", "name": "Ada Lovelace", "job_title": "CTO", "company": "Example Ltd",
                   "headshot_url": "/v1/media/{path}"} ],
    "has_insights": true, "has_report": true,
    "live_slug": "summit-2026", "live_url": "https://audiobly.com/live/summit-2026?s=…" }
] }
```

Sessions come in programme order (start time, then position, then title). `kind` is the session type as entered in Audiobly; filtering out breaks and registration slots is your site's choice. `has_insights` is `true` when the session has a completed analysis; `has_report` when it has an **approved** Session Report. `live_url` links to the session on the Audiobly event webpage (live captions, Q&A and polls during the talk, the write-up after it), and `live_slug` is that webpage's slug for the public endpoints (*Live translation* guide); both are `null` when the event has no event webpage. The session detail (5.3) carries them too.

### 5.3 Session detail and write-up

`GET /v1/events/{EVENT_ID}/hub/sessions/{SESSION_ID}` returns the same fields plus `insights` (`null` when there is nothing published yet):

| `insights` field | Source |
|---|---|
| `overview` | the approved Session Report (paragraphs separated by a blank line) |
| `takeaways[]` | the approved Session Report |
| `themes[]` (`title`, `summary`) | the latest completed session analysis |
| `opportunities[]` (`category`, `heading`, `description`) | the analysis; `heading` comes from the approved report |
| `topics[]` (`label`, `mentions`) | the analysis |
| `questions[]` | the analysis |

Report-derived text appears only after your team approves the Session Report in Audiobly, so delegates never see an unreviewed draft. `404 NOT_FOUND` if the session is not part of the event. Session analysis and Session Reports are produced in Audiobly by your team.

### 5.4 Session Report PDF

`GET /v1/events/{EVENT_ID}/hub/sessions/{SESSION_ID}/report.pdf` returns the approved PDF with a `Content-Disposition` file name in the form "Event - Session Report - Session.pdf". `404 NOT_FOUND` when no approved report exists; a draft is never served. Show the download link only when `has_report` is `true`.

Relay the file through your server after checking access, with `Cache-Control: private, no-store`. Do not link the browser to Audiobly.

### 5.5 Speakers and sponsors

| Page | Endpoint | Notes |
|---|---|---|
| Speakers | `GET /v1/events/{EVENT_ID}/speakers?limit=200` | Name, job title, company, country, bio, headshot, social links and their sessions. See [Fetch a complete event](/developers/guides/fetch-a-complete-event.md), Step 3 |
| Sponsors | `GET /v1/events/{EVENT_ID}/sponsors?limit=200` (`&kind=exhibitor` for exhibitors) | Name, tier, logo, website, blurb, summary, industry, products, services |

Both are paged (`limit` up to 200, `offset`); the list is in `data`. Leave out speakers with `is_draft: true`: they were suggested automatically from a recording and are still waiting for your team's review. `headshot_url` is a relative `/v1/media/{path}` path (Section 5.7 explains these image URLs); show initials when it is empty. The sponsor record also carries `sponsorship_value`, `sponsorship_paid`, `objectives` and other commercial fields: **do not show these** on the hub.

### 5.6 Companies attending

```bash
curl -s https://api.audiobly.com/v1/events/$EVENT_ID/hub/companies -H "Authorization: Bearer $KEY"
# → { "data": [ { "id", "name", "industry", "summary", "website", "logo_url", "services": [] } ] }
```

The distinct companies of the event's live bookings, those with a summary first, then by name. Companies only: no people and no counts. A booking whose company was never matched to a company profile is not listed, and neither is a booking whose delegate switched **Show my company** off (Section 4.6), unless a colleague's booking brings the company.

For a company page, `GET /v1/events/{EVENT_ID}/companies/{COMPANY_ID}` returns the full profile **and the named delegates and speakers from that company**. This is the organiser's record and does not apply the delegates' listing choices: to show people on a public or delegate page, take them from the directory (Section 6.1), which does. If a viewer may only see organisations (for example a past attendee looking at an upcoming event), do not show the people from this response.

### 5.6a Counts for session pages and people tiles

Figures without names, for "in the room" panels and summary tiles:

```bash
curl -s https://api.audiobly.com/v1/events/$EVENT_ID/hub/session-counts -H "Authorization: Bearer $KEY"
# → { "data": [ { "session_id": "…", "saved": 18, "questions": 23, "questions_answered": 9,
#                 "upvotes": 140, "polls": 2, "poll_votes": 310 } ],
#     "totals": { "saved": 412, "questions": 96, … }, "as_of": "2026-11-18T10:41:00Z" }
```

- One row per session, in programme order. `saved` counts delegates with a live booking who saved the session, on your site or the event webpage. `questions` counts the questions the room sees on the event webpage (live and answered, not those waiting for a moderator or dismissed). `polls` counts polls that were opened.
- Masterclass places are not here: use `GET /v1/delegate-accounts/session-places` for whether a place is left, and do not show the numbers to delegates.
- For "how many are coming", `GET /v1/events/{EVENT_ID}/networking-stats` gives `registered` (live bookings, one per person), `confirmed`, `networking_on` and `networking_off`, as counts only. The directory's length is not the booked count, because delegates can choose Not listed.

### 5.7 Photos

```bash
curl -s "https://api.audiobly.com/v1/events/$EVENT_ID/photos?public=true" -H "Authorization: Bearer $KEY"
```

`public=true` returns only the photos your team published, in the order they were taken, with only the tags cleared for public display. Each photo has `id`, `web_url` (2000 px viewer copy), `thumb_url` (800 px), `width`, `height`, `taken_at`, `tags[]` (`kind`, `speaker_id`, `name`, `role`, `company`, `headshot_url`, `public`) and `session` (`id`, `title`, `starts_at`, or `null`) — the session chosen by an editor, otherwise matched from the time taken. Full field list: [Transcripts & photos](/developers/guides/transcripts-and-photos.md), Section 4.

- **Image URLs** are relative `/v1/media/{path}` paths. Prefix them with the API base. They do not need a key: anyone with the URL can load the image. Hiding a photo removes it from the feed but does not revoke a URL someone has already copied.
- **Numbering:** to give photos short addresses (`/photos/12`), number them by their position in the feed. Numbers change when a photo is added or hidden earlier in the order; keep accepting the photo `id` as well.
- **Downloads:** a browser cannot be forced to save a cross-origin image, so relay it: your server checks access, fetches `web_url`, and returns it with `Content-Disposition: attachment; filename="example-summit-photo-012.jpg"`.

### 5.8 Transcripts (optional)

The reference hubs show write-ups and reports, not transcripts. To add them, use `GET /v1/events/{EVENT_ID}/transcripts` (needs `asset_view`) and show only sessions whose editorial `status` is `published`. Download a session as a document with `GET /v1/events/{EVENT_ID}/transcripts/{SESSION_ID}/download?format=pdf`, relayed through your server. See [Transcripts & photos](/developers/guides/transcripts-and-photos.md), Sections 1 and 2. The transcript endpoints allow downloads at any status, so the `published` check is your site's job.

### 5.9 eBooks and event-level reports

Audiobly has no eBook endpoint. Keep the file on your server outside any public folder and serve it from a route that checks access first. Event- and day-level reports built in Audiobly are listed with `GET /v1/events/{EVENT_ID}/content-reports?scope=event`; see [Fetch a complete event](/developers/guides/fetch-a-complete-event.md), Step 10 and Step 11 for their download links, which expire.

### 5.10 Caching

| Data | Recommendation (what the reference sites do) |
|---|---|
| Event material: sessions, write-ups, companies, speakers, sponsors, photos | The same for every delegate. Cache it in your server's data cache for about 60 seconds, tagged per event so you can refresh it on demand |
| The account, the directory, meeting requests | Per delegate. Never cache (`no-store`) |
| Hub pages | Render per request, because they read the session cookie. Never put directory data into a statically generated page, where it would be readable in the page source |
| Relayed files (report PDF, photo downloads, eBook) | `Cache-Control: private, no-store` |

If an Audiobly read fails, hide that section rather than showing an empty or stand-in one.

### 5.11 Readable URLs (recommended)

- Make page addresses from names: `/hub/example-summit-2026/sessions/opening-keynote`. Build the slug from the title, lower-case, ASCII, words joined by `-`.
- When two items share a slug, number them `-2`, `-3` in id order, so an address stays the same as long as the name does.
- Keep accepting the id form of an address and redirect it permanently to the readable one.
- Do not put delegates' names in addresses: page addresses end up in analytics and logs. Use a short code instead, such as the last 8 characters of the `attendee_id`.

---

## 6. Delegate directory and meeting requests (Level 3)

### 6.1 The directory

```bash
curl -s https://api.audiobly.com/v1/events/$EVENT_ID/delegate-directory -H "Authorization: Bearer $KEY"
```

```json
[ { "attendee_id": "…", "name": "Dana Delegate", "first_name": "Dana", "last_name": "Delegate",
    "honorific": null, "job_title": "Head of Data", "company": "Acme", "company_id": "…",
    "country": "GB", "delegate_type": "Delegate", "seniority": "Director", "function": "Engineering / R&D",
    "bio": null, "headshot_url": null, "social_links": {}, "talk_about": null,
    "networking": true, "speaker_id": null } ]
```

- Lists **everyone with a live booking** at the event, sorted by name, with the delegate's own profile taking precedence over the organiser's record. Delegates who chose **Not listed** (`directory_listed: false`, Section 4.6) are left out.
- `company` and `company_id` are empty for a delegate who switched **Show my company** off. `talk_about` is what the delegate wants to talk about.
- `networking` is `true` when the person can be sent a meeting request: a confirmed account with networking switched on.
- `speaker_id` is set when the booking belongs to one of the event's speakers.
- Email addresses and phone numbers are never included. `social_links` **is** included; in meeting requests LinkedIn is treated as a contact detail and shown only after both sides agree, so do not show `social_links` from the directory.
- Make sure your `networking_wording` matches this behaviour: being listed depends on the booking; the setting controls who can be asked to meet.
- Show the directory only to delegates booked on that event (your site's access rule).

### 6.2 Meeting requests

All take the API key and act for the signed-in delegate (`ACCOUNT_ID` from your session). A request can carry a `subject` (up to 120 characters) and a `message` (up to 2,000). With a message, Audiobly emails the recipient from `connect@` your sending domain, with buttons that open `{site_base_url}/connections?c={CONNECTION_ID}`. Either delegate can then reply, and each reply is emailed to the other. Neither email address is shared until the request is accepted. A request without a message sends nothing, as before.

| Action | Endpoint |
|---|---|
| Ask to meet | `POST /v1/delegate-accounts/{ACCOUNT_ID}/connections` with `{"event_id", "attendee_id", "subject"?, "message"?}` → `201` |
| List requests (optionally for one event) | `GET /v1/delegate-accounts/{ACCOUNT_ID}/connections?event_id=…` |
| Open one conversation | `GET /v1/delegate-accounts/{ACCOUNT_ID}/connections/{CONNECTION_ID}` |
| Reply (either side) | `POST /v1/delegate-accounts/{ACCOUNT_ID}/connections/{CONNECTION_ID}/messages` with `{"body"}` → `201` |
| Mark as read | `POST /v1/delegate-accounts/{ACCOUNT_ID}/connections/{CONNECTION_ID}/read` → `204` |
| Accept | `POST /v1/delegate-accounts/{ACCOUNT_ID}/connections/{CONNECTION_ID}/accept` |
| Decline | `POST /v1/delegate-accounts/{ACCOUNT_ID}/connections/{CONNECTION_ID}/decline` |

```bash
API=https://api.audiobly.com/v1

curl -sX POST $API/delegate-accounts/$ACCOUNT_ID/connections \
  -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
  -d '{"event_id": "'$EVENT_ID'", "attendee_id": "'$ATTENDEE_ID'", "subject": "Coffee at the Forum?", "message": "Hi Jane, …"}'
# → 201 { "id", "status": "pending", "event_id", "from_attendee_id", "attendee_id", "created_at", "responded_at": null }
```

`event_id` here must be the full UUID; `attendee_id` is the directory entry's `attendee_id`. Asking again for the same person returns the existing request (same id, current status) and sends nothing. The subject defaults to "Request to connect" when a message is given without one. A delegate can send up to 20 new requests a day (`429 TOO_MANY_REQUESTS` after that).

The list:

```json
{ "outgoing":  [ { "id", "event_id", "attendee_id", "status", "created_at", "subject", "message", "replies", "last_activity_at", "unread", "to": { …directory entry, without LinkedIn… } } ],
  "incoming":  [ { "id", "event_id", "status", "created_at", "subject", "message", "replies", "last_activity_at", "unread", "from": { …directory entry, without LinkedIn… } } ],
  "connected": [ { "attendee_id", "name", "job_title", "company", "email", "linkedin", "connection_id" } ],
  "unread_count": 1 }
```

`unread_count` is the number of conversations with something the delegate has not opened yet (a new request, or a reply). Show it next to your Connections link, and call `/read` when the delegate opens a conversation.

One conversation:

```json
{ "id", "event_id", "status", "direction": "incoming", "subject", "created_at", "responded_at",
  "other": { …directory entry, without LinkedIn… },
  "contact": null,
  "messages": [ { "id", "from_me": false, "body", "created_at" } ],
  "can_reply": true, "can_answer": true }
```

`contact` (`email`, `linkedin`) is set only once the request is accepted. `can_answer` is true for the recipient of a pending request. Replies are refused once the request is declined (`409 DECLINED`).

**Consent rules Audiobly enforces:**

- The sender must have a confirmed account, networking on, and a live booking at the event.
- The recipient must have a live booking and a confirmed account with networking on. Otherwise the answer is `404 NOT_FOUND` — the same as for someone not at the event, so whether a non-networking delegate is attending is not revealed.
- Only the recipient can accept or decline. `status` is `pending`, `accepted` or `declined`. A declined request can still be accepted later; an accepted one cannot be declined (`409 ALREADY_ACCEPTED`).
- Email and LinkedIn appear **only** in `connected`, after the recipient accepts. Each side then sees the other's.
- If either person later switches networking off or their booking is cancelled, they disappear from the other's `incoming` and `connected` lists.

| Error | Meaning |
|---|---|
| `403 ACCOUNT_NOT_CONFIRMED` | the sender has not confirmed their account |
| `403 NETWORKING_OFF` | the sender has networking switched off — offer the switch in the hub |
| `403 NOT_BOOKED` | the sender has no live booking at this event |
| `403 NOT_RECIPIENT` | the sender tried to answer their own request |
| `404 NOT_FOUND` | the recipient is not available to connect with, or the request does not exist |
| `409 SELF_CONNECTION` | the delegate tried to connect with themselves |
| `409 ALREADY_ACCEPTED` | declining a request that was already accepted |
| `409 DECLINED` | replying in a conversation whose request was declined |
| `429 TOO_MANY_REQUESTS` | more than 20 new requests from this delegate in 24 hours |

Show the "Ask to meet" button only when the viewer has networking on and the directory entry has `networking: true`. Never show the other person's contact details before they accept.

The organiser sees every request at an event (who asked whom, the subject, how many replies and the status) at `GET /v1/events/{EVENT_ID}/connections` (Audiobly: **Engagement › Connections**). Requests made before 10 Nov 2026 have no subject or message.

```bash
curl -s $API/events/$EVENT_ID/connections -H "Authorization: Bearer $KEY"
```

```json
{ "data": [ { "id": "…", "created_at": "2026-11-08T09:14:00Z", "status": "accepted", "responded_at": "2026-11-08T11:02:00Z",
    "subject": "Bundles for regional titles", "has_message": true, "replies": 2,
    "from": { "attendee_id": "…", "name": "Maya Lindgren", "company": "Brightline Media" },
    "to":   { "attendee_id": "…", "name": "Felix Bauer", "company": "Lumen Publishing Group" },
    "messages": [] } ] }
```

Newest first. `has_message` is `false` for requests made before messages existed. What delegates write to each other is private: `messages` is always empty for organisers, their admins and API keys. Only Audiobly system admins get the conversation there (the request itself, then each reply, each with `from_name`, `body`, `created_at` and `emailed_at`, when that email was delivered or `null` if it was not sent). Any signed-in user of the organisation (Read) or an API key can read it; it is read-only.

Networking uptake for the event (the figures above the list on Engagement › Connections), from `GET /v1/events/{EVENT_ID}/networking-stats`, with the same access:

```json
{ "registered": 132, "confirmed": 55, "networking_on": 54, "networking_off": 1, "not_confirmed": 77,
  "bookings_by_day": [ { "day": "2026-10-23", "count": 113 }, { "day": "2026-10-24", "count": 2 } ],
  "first_day_imported": true, "last_invite_at": "2026-11-10T09:00:00Z",
  "connections": { "sent": 3, "pending": 2, "accepted": 1, "declined": 0 },
  "as_of": "2026-11-10T19:35:00Z" }
```

`registered` counts live bookings, one per person; cancelled and unpaid bookings are left out. `confirmed` is the share of those whose account has a password set, split by their networking setting; `not_confirmed` is everyone else. `bookings_by_day` is how many of today's live bookings were added on each UTC day, oldest first. `last_invite_at` is when the newest launch invitation for this event was sent (`null` if none).

---

## 7. Emails Audiobly sends for you (Level 3)

At Levels 1 and 2, Audiobly sends no emails to your attendees.

### 7.1 The emails

| Email | When it is sent | Unsubscribed accounts |
|---|---|---|
| **Confirm your account** | Once per account, on the first live booking that reaches Audiobly through a route marked "Yes" in Section 3.4, for an event that has not started yet, when `auto_welcome` is `true`; and on each `resend-welcome`. A booking for an event that has already started never triggers it, however often the booking is synced | still sent |
| **Launch invitation** | When an admin calls `POST /v1/delegate-accounts/launch-invites` with `dry_run: false` | never sent |
| **Past-attendee invitation** | When an admin calls `POST /v1/delegate-accounts/past-invites` with `dry_run: false` | never sent |
| **Password reset** | On `password-reset/request` for a confirmed account | still sent |
| **Request to connect** | When a delegate sends a request with a message (Section 6.2), to the recipient, from `connect@` your sending domain | still sent; never sent while the recipient has networking off |
| **Reply** | When either delegate replies in a conversation, to the other | still sent; never sent while the recipient has networking off |
| **Guest invitation** | When an organiser adds a guest (Section 4.22) or sends the invitation again; and on `resend-welcome` for a guest with no booking. A confirm link for a new account, a sign-in link for an existing one. Never mentions a booking or ticket. Not resent after a bounce | still sent |

Nothing is sent while accounts are not enabled with a `site_base_url`. Each email uses your `from_name`, logo and colours, and its button links to your site (Section 3.3). The confirm and launch emails thank the delegate for attending when their booked event has already taken place.

**Launch invitation** — for the bookings that existed before you switched accounts on. It goes to accounts that are not confirmed, never welcomed, not unsubscribed and hold a live booking: at `event_id` if you give one, otherwise at any upcoming event. It first creates missing accounts (as `ensure-accounts` does). Response: `{dry_run, recipients, sample}`.

**Past-attendee invitation** — for people booked (status `confirmed`) on `event_id`, last year's event, who have not confirmed an account and have not booked an upcoming event. Body: `{"event_id", "dry_run", "short_name", "register_slug"}`. `short_name` (up to 80 characters) names the past event in the subject and list; always set it, because the built-in default will not match your event. `register_slug` sets the "Register Now" link (Section 3.3). The email lists up to two upcoming events. Response: `{dry_run, recipients, sample, excluded: {confirmed, already_booked_upcoming, unsubscribed, already_invited}, no_account}` — `no_account` counts bookings without an account yet; run `ensure-accounts` first. The wording of what the account opens is fixed in this version.

### 7.2 Bounces: one resend the next day

Audiobly records which email each delegate was sent. When the confirm email, the launch
invitation or the masterclass invitation bounces, Audiobly:

- **sends the same email once more, on its own, 24 hours after the bounce**, when the
  receiving server gave a general or temporary reason (for example a company filter or a
  full mailbox). The address is not marked undeliverable at this point;
- **marks the address undeliverable straight away** when the mailbox does not exist or the
  provider has suppressed the address;
- **marks the address undeliverable** when the resend bounces too. Nobody is tried a third time.

A spam complaint marks the address undeliverable at once, whatever the email. A bounce of any
other email (the past-attendee invitation, password reset and connection emails) marks the
address undeliverable at once, with no resend.

Bounces are read from the mail provider every hour, whether or not the bounce webhook is set
up; the webhook only makes them arrive sooner. To catch up at once, an admin can call
`POST /v1/email-suppressions/sync` with `{"days": 30}` (1 to 90) →
`{checked, recorded, retries_scheduled}`; `retries_scheduled` counts the bounced emails given
their one resend. Nothing is resent to an unsubscribed account
or an undeliverable address; the confirm and launch emails are not resent to an account that
has confirmed since; the masterclass invitation is not resent for a cancelled or unpaid
booking, or once the event has started. Undeliverable
addresses show on the attendee in the admin, where an organiser can clear them.

**Resend one email now.** `POST /v1/delegate-accounts/resend-email` (organisation admins,
`org_manage`). It sends one email again, at once, to one booking.

```bash
curl -sX POST https://api.audiobly.com/v1/delegate-accounts/resend-email \
  -H "Authorization: Bearer $ADMIN_KEY" -H "Content-Type: application/json" \
  -d '{"attendee_id": "3f2c9a4e-…", "kind": "masterclass_invite", "dry_run": true}'
# → 200 { "dry_run": true, "would_send": true, "sent": false, "reason": null }
# with "dry_run": false →
# → 200 { "dry_run": false, "would_send": true, "sent": true, "reason": null }
```

| Field | Default | Notes |
|---|---|---|
| `attendee_id` | — | The booking (attendee id). For `welcome` it picks the account by the booking's email |
| `kind` | — | `masterclass_invite` or `welcome` (the confirm email) |
| `dry_run` | `true` | Only say whether it would go, and why not; nothing is sent or cleared |
| `clear_undeliverable` | `false` | Clear the address's undeliverable record first, for example after the delegate fixed their mailbox. On a real run the record is cleared even if the email then cannot go for another reason |

Response: `{dry_run, would_send, sent, reason}`. `reason` says why it did not go:
`no_account`, `unsubscribed`, `undeliverable`, `already_confirmed`, `no_booking`,
`booking_cancelled`, `event_over` or `send_failed`. `404 NOT_FOUND` for a booking outside your
organisation; `422` for any other `kind`.

### 7.3 Previews and dry runs

| Check | Endpoint |
|---|---|
| Launch invitation as the first recipient would get it (HTML) | `GET /v1/delegate-accounts/launch-invites/preview?event_id=…` |
| Past-attendee invitation (HTML) | `GET /v1/delegate-accounts/past-invites/preview?event_id=…&short_name=…&register_slug=…` |
| Count recipients without sending | the send calls with `"dry_run": true` (the default) |

Previews send nothing. `404 NO_RECIPIENTS` when nobody is waiting; `409 NOT_ENABLED` when accounts are off. Sending happens in the background after the call returns.

### 7.4 Sender address

Set `from_address` to an address on your own domain. **Contact Audiobly to verify your sending domain** before you go live; until it is verified, emails from that address cannot be delivered reliably.

### 7.5 Recommended go-live order

1. Turn accounts on with `site_base_url` and `auto_welcome: false`.
2. Import or sync existing bookings; run `ensure-accounts` per event.
3. Preview, then dry-run the launch invitation (and the past-attendee invitation for last year's event).
4. Send each invitation once.
5. Switch `auto_welcome` back to `true` so new bookings get the confirm email.

---

## 8. Analytics (optional)

Audiobly does not record hub page views or downloads. If you want them, record them on your site: page views per hub page, sign-ins, report, photo and eBook downloads (record them in the server route that relays the file). Use slugs and short codes in the recorded addresses, never delegates' names or emails.

---

## 9. Checklists

### 9.1 Security and privacy

All levels: the first item, and the items on downloads, sponsor fields, company people and photo URLs. Level 2 adds the access-rule items. Level 3: everything.

- [ ] The API key is only in your server's environment; it never reaches a browser, a static page or a client bundle.
- [ ] The website key has `read` and `prep_manage` (plus `asset_view` only if you show transcripts), not `org_manage`.
- [ ] The session cookie is signed by your server, `HttpOnly`, `Secure`, `SameSite=Lax`, and holds only the account id and an expiry.
- [ ] Every hub page and every relayed download re-reads the account and applies the live-booking rule before returning anything.
- [ ] `ACCOUNT_ID` always comes from the session, never from a form field or URL.
- [ ] `client_ip` is sent on sign-in, reset and re-send.
- [ ] Error messages do not say whether an email has an account (sign-in, reset and re-send already answer the same way).
- [ ] Redirects after sign-in go only to paths on your own site.
- [ ] Directory and meeting-request data is fetched per request with `no-store`, only for delegates booked on that event.
- [ ] `social_links` from the directory are not shown; contact details appear only in `connected`.
- [ ] Sponsor commercial fields (`sponsorship_value`, `sponsorship_paid`, `objectives`) are not shown.
- [ ] The people in a company profile are not shown to viewers who may only see organisations.
- [ ] You accept that published photo URLs can be opened by anyone who has them.

### 9.2 Go-live (Level 3)

At Levels 1 and 2, go live when your pages show the right event and Session Reports are approved.

- [ ] Settings: `enabled`, `site_base_url`, `from_name`, `from_address` (domain verified by Audiobly), branding, `networking_wording` and its version.
- [ ] Your site serves `/account/confirm`, `/account/reset` and `/account/unsubscribe` under `site_base_url`.
- [ ] Bookings reach Audiobly by a route that creates accounts, or you run `ensure-accounts` (Section 3.4).
- [ ] A test booking on a test address: confirm email received, confirm page works, sign-in works, reset works, unsubscribe works.
- [ ] Session Reports for the event are approved, so `has_report` is `true` where you expect a download.
- [ ] Photos are published and their tags cleared for public display where intended.
- [ ] Invitations previewed and dry-run before the real send; `auto_welcome` switched back on afterwards.

---

## 10. Troubleshooting

| Symptom / error | Cause and fix |
|---|---|
| `403 API_KEY_REQUIRED` | A delegate endpoint was called with a user token. Use the API key |
| `403 FORBIDDEN` | The key's scopes do not include the permission (Section 3.1) |
| `409 NOT_ENABLED` | Accounts are off or `site_base_url` is empty |
| No confirm email after a booking | `auto_welcome` is `false`; the booking is `pending` or `cancelled`; it came in through `/registrations` (Section 3.4); the account was already welcomed or confirmed; or the sending domain is not verified |
| `400 INVALID_TOKEN` on confirm | The link is over 30 days old or the account is already confirmed. Re-send the confirm email, or ask the delegate to sign in |
| `400 INVALID_TOKEN` on reset | The link is over 60 minutes old or the password has already been changed. Request a new one |
| `401 INVALID_CREDENTIALS` | Wrong password, unknown email, or the account is not confirmed yet |
| `422 WEAK_PASSWORD` | Show the `message`; see the policy in Section 4.2 |
| `429 TOO_MANY_ATTEMPTS` | Wait for `Retry-After` seconds. If it happens to everyone at once, you are not sending `client_ip` |
| `404 NOT_FOUND` on `GET /v1/delegate-accounts/{ACCOUNT_ID}` | The account is not in your organisation (a cookie from another environment); sign the person out |
| Delegate signed in but sees no events | No live booking: check `events[].status`, and that your site maps the Audiobly `event_id` to its own event pages |
| `has_insights` true but no overview or takeaways | The Session Report has not been approved yet; themes, topics and questions show from the analysis alone |
| Report PDF `404 NOT_FOUND` | No approved Session Report for that session |
| Company missing from the companies list | The booking's company was never matched to a company profile |
| Headshot or photo shows a broken image | The URL is a relative `/v1/media/{path}` path; prefix it with the API base |
| Meeting request `404 NOT_FOUND` | The recipient has networking off, has not confirmed, or has no live booking at the event |
