# Ticketing, registrations & delegate accounts

How to sell and register places for an event, check people in, run promo and comp codes, sign delegates up for individual talks, and give delegates their own sign-in on **your** event website — all over the API.

- **Base URL:** `https://api.audiobly.com` — all paths are under `/v1`.
- **Auth:** `Authorization: Bearer <API_KEY>`. Most write calls need the `prep_manage` permission; delegate-account settings and invitations need `org_manage`. Unscoped keys have both.
- Every booking becomes an **attendee** on the event (see *Fetch a complete event via the API*, Step 5), so registrations feed the same roster, audience intelligence and reports as an imported list.

## Which parts need the Experience module

API keys come with the Enterprise plan, which includes the Experience module, so with a key every row below answers. The table matters for a signed-in user of an organisation without Experience.

| Area | Experience module needed? |
|---|---|
| Native ticketing — ticket types, orders, check-in, ticket assignment/transfer, invoices, checkout, `POST`/`GET` promo codes | **Yes** — otherwise `403 MODULE_DISABLED` |
| Talk sign-up — `sessions/{session_id}/register`, `/registrations`, `/attended`, `/attendance` | **Yes** |
| Contact export — `GET /v1/contacts/export` | **Yes** |
| Self-service registrations, payments status, registration form, invite (comp) codes, bulk promo codes and promo validation/redemption, registration imports | No |
| Delegate accounts and the delegate directory | No |
| Ticket Tailor connection | No |

The Experience module is switched on per organisation by Audiobly.

---

## Part A — Native ticketing *(Experience)*

### A1. Ticket types

`POST /v1/events/{EVENT_ID}/ticket-types`

| Field | Notes |
|---|---|
| `name` | **required** |
| `description` | |
| `price` | default `0` |
| `currency` | default `EUR` |
| `tax_rate` | e.g. `20` for 20 % |
| `quantity_available` | stock; omit for unlimited |
| `min_per_order`, `max_per_order` | per-order limits (min defaults to 1) |
| `visibility` | default `public` |
| `position` | display order |

```bash
curl -sX POST https://api.audiobly.com/v1/events/$EVENT_ID/ticket-types \
  -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
  -d '{"name":"Delegate pass","price":495,"currency":"GBP","tax_rate":20,"quantity_available":800}'
```

`GET /v1/events/{EVENT_ID}/ticket-types` lists them in display order, with `quantity_sold` and `status`.

### A2. Orders

`POST /v1/events/{EVENT_ID}/orders` issues tickets for each line, assigns the named people, applies an optional promo code and totals the order — all or nothing.

```bash
curl -sX POST https://api.audiobly.com/v1/events/$EVENT_ID/orders \
  -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
  -d '{
    "items": [ { "ticket_type_id": "'$TT_ID'", "quantity": 2,
                 "attendees": [ {"email": "dana@acme.example", "name": "Dana Delegate", "company": "Acme"},
                                {"email": "lee@acme.example",  "name": "Lee Larson"} ] } ],
    "billing_email": "accounts@acme.example",
    "po_number": "PO-7781",
    "promo_code": "EARLYBIRD"
  }'
# → 201 { "id", "order_number", "subtotal", "discount_total", "tax_total", "total", "currency", "payment_status", "ticket_count" }
```

Other order fields: `payment_status` (default `pending`), `payment_gateway`, `payment_reference`. Errors: `404 TICKET_TYPE_NOT_FOUND`; `422 ORDER_INVALID` (per-order limits, stock, or an invalid promo code).

| Also available | Endpoint |
|---|---|
| List orders (newest first) | `GET /v1/events/{EVENT_ID}/orders` |
| Invoice data (number, billing contact, PO, lines, totals) | `GET /v1/events/{EVENT_ID}/orders/{ORDER_ID}/invoice` |
| Start a hosted checkout for an order | `POST /v1/events/{EVENT_ID}/orders/{ORDER_ID}/checkout?provider=…` → `{provider, reference, checkout_url, amount_minor, currency, status}` — supported providers are listed in the API reference |
| Assign a ticket to a person (creates their attendee record) | `POST /v1/events/{EVENT_ID}/tickets/{TICKET_ID}/assign` with `{"email", "name", "first_name", "last_name", "company", "job_title"}` |
| Transfer a ticket (new QR code; the old one stops working) | `POST /v1/events/{EVENT_ID}/tickets/{TICKET_ID}/transfer` (same body) |

Each ticket has a `qr_code`, a `status` and a `transfer_history`.

### A3. Check-in

| Action | Endpoint |
|---|---|
| Scan one ticket | `POST /v1/events/{EVENT_ID}/checkins` with `{"qr_code": "…"}` → `{ticket_id, status, already, checked_in_at}` |
| Scan many (a group, a batch) | `POST /v1/events/{EVENT_ID}/checkins/bulk` with `{"qr_codes": ["…", "…"]}` |
| Totals | `GET /v1/events/{EVENT_ID}/checkins/summary` → `{registered, checked_in, no_show, attendance_pct}` |

Check-in is idempotent: a repeat scan returns `already: true` instead of counting twice. `404 TICKET_NOT_FOUND`; `422 TICKET_INVALID` (e.g. a cancelled ticket).

### A4. Promo codes

| Action | Endpoint | Experience? |
|---|---|---|
| Create one code | `POST /v1/events/{EVENT_ID}/promo-codes` | yes |
| List codes (with `redemptions`, `active`) | `GET /v1/events/{EVENT_ID}/promo-codes` | yes |
| Create many (an explicit `codes` list, or `count` generated with an optional `prefix`) | `POST /v1/events/{EVENT_ID}/promo-codes/bulk` | no |
| Price a code against an amount, without using it | `POST /v1/events/{EVENT_ID}/promo-codes/validate` | no |
| Use a code (counts a redemption) | `POST /v1/events/{EVENT_ID}/promo-codes/redeem` | no |

Code fields: `code`, `discount_type` (`percentage` or `fixed`), `discount_value`, optional `ticket_type_id`, `valid_from`, `valid_until`, `max_redemptions` (bulk defaults to `1`, i.e. single-use). Creating a code that already exists returns `409 DUPLICATE_CODE`; the bulk call skips existing codes and lists them in `skipped`, so a partly-applied batch can be re-run.

Validate and redeem take `{"code": "EARLYBIRD", "amount": 495, "ticket_type_id": "…"}` (`amount` in major units, e.g. pounds) and return:

```json
{ "valid": true, "code": "EARLYBIRD", "discount_type": "percentage", "discount_value": 20,
  "original_amount": 495.0, "discount_amount": 99.0, "final_amount": 396.0, "reason": null }
```

When `valid` is `false`, `reason` says why (for example `not_found`, `revoked`, `exhausted`).

---

## Part B — Registrations from your own site

Use these when your website takes the booking (and, for paid places, the payment) and Audiobly keeps the roster.

### B1. Register a delegate

`POST /v1/events/{EVENT_ID}/registrations` — call it from your **site's server** with your API key.

| Field | Notes |
|---|---|
| `email` | **required** |
| `name` or `first_name` + `last_name` | a name is required |
| `company`, `company_website`, `job_title`, `honorific`, `role`, `notes` | `role` defaults to `Delegate` |
| `marketing_consent` | lead-sharing opt-in |
| `invite_code` | **comp place**: a valid code confirms the registration at once and is used up |
| `payment_reference` | **paid place**: required when there is no `invite_code`; the registration is stored as `pending` until payment is confirmed |
| `amount_paid`, `list_price`, `currency`, `discount_code` | payment detail; amounts in minor units (cents) |
| `channel`, `utm_source`, `utm_campaign`, `utm_medium` | attribution |

```bash
curl -sX POST https://api.audiobly.com/v1/events/$EVENT_ID/registrations \
  -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
  -d '{"first_name":"Dana","last_name":"Delegate","email":"dana@acme.example","company":"Acme","payment_reference":"pi_123","amount_paid":49500,"currency":"GBP"}'
# → 201 { "comped": false, "attendee": { …, "source": "paid", "registration_status": "pending" } }
```

Registrations are **idempotent per event and email** — a re-submit updates the same attendee. `409 INVALID_INVITE_CODE` if the comp code is not valid for this event or already used; `422 VALIDATION_ERROR` if neither `invite_code` nor `payment_reference` is given.

### B2. Payment status

From your payment provider's webhook handler:

- `POST /v1/events/{EVENT_ID}/payments/confirm` with `{"payment_reference": "pi_123"}` → marks it `confirmed`.
- `POST /v1/events/{EVENT_ID}/payments/status` with `{"payment_reference": "pi_123", "status": "refunded"}` — `status` is one of `pending`, `confirmed`, `declined`, `refunded`, `cancelled`.

Both are idempotent: an unknown reference returns `confirmed: false` / `updated: false` rather than an error, so replayed webhooks are harmless.

### B3. Comp (invite) codes

| Action | Endpoint |
|---|---|
| Create codes — an explicit `codes` list, or `count` (+ optional `prefix`, `label`, `max_redemptions`, default single-use) | `POST /v1/events/{EVENT_ID}/invite-codes` |
| List codes (paginated) | `GET /v1/events/{EVENT_ID}/invite-codes` |
| Check a code without using it | `POST /v1/events/{EVENT_ID}/invite-codes/validate` with `{"code": "…"}` |
| Revoke a code | `DELETE /v1/events/{EVENT_ID}/invite-codes/{CODE_ID}` |

Codes are locked to their event.

### B4. Form, lookup and funnel

| What | Endpoint |
|---|---|
| Save / read the registration form definition (an ordered list of field configs) | `PUT` / `GET /v1/events/{EVENT_ID}/registration-form` |
| Is this email registered, and how? | `GET /v1/events/{EVENT_ID}/registrations/lookup?email=…` → `{found, name, source, status}` |
| Funnel and revenue | `GET /v1/events/{EVENT_ID}/registrations/summary` → `paid_confirmed`, `paid_pending` (reached payment but didn't finish), `comp`, `refunded`, `declined`, `cancelled`, `total`, `gross_revenue_eur` |

Checkout answers are stored verbatim on each attendee's `answers`.

### B5. Import registrations from another platform

`POST /v1/events/{EVENT_ID}/registrations/import?source=csv` with a raw CSV body, or `?source=<platform>` with a raw JSON array of that platform's own records (supported platforms, including `ticket_tailor`, are listed in the API reference; an unsupported value returns `422 UNSUPPORTED_SOURCE`). Idempotent — de-duplicated by email. Returns `total`, `contacts_created`, `attendees_created`, `attendees_updated`, `skipped` and `errors`.

---

## Part C — Ticket Tailor

If you sell through your own **Ticket Tailor** account, connect it so every ticket sold lands on the event's attendees — one attendee per issued ticket, with the ticket type as delegate type, the price paid and the checkout answers.

1. `POST /v1/integrations` with `{"provider": "ticket_tailor", "display_name": "Ticket Tailor", "credentials": {"api_key": "…", "webhook_secret": "…"}}`. `POST /v1/integrations/{INTEGRATION_ID}/test` checks the connection.
2. Link each Ticket Tailor event (or event series) to its Audiobly event: `GET /v1/integrations/{INTEGRATION_ID}/remote-events` lists them; `PUT /v1/integrations/{INTEGRATION_ID}/event-links` with `{"links": [{"remote_event_id": "ev_123", "event_id": "<EVENT_ID>"}]}`. Events are linked, never created; tickets for unlinked events are not read.
3. Pull sales: `POST /v1/integrations/{INTEGRATION_ID}/sync` with `{"entity": "attendee"}` (add `"preview": true` for a dry run). History: `GET /v1/integrations/{INTEGRATION_ID}/syncs`.
4. For near-real-time updates, add a webhook in Ticket Tailor pointing at `https://api.audiobly.com/v1/integrations/ticket-tailor/webhook/{INTEGRATION_ID}`, signed with the same `webhook_secret`.

Attendees from Ticket Tailor have `source: "ticket_tailor"` and the platform's IDs in `external_ids`.

**Door check-ins.** When a ticket is scanned with Ticket Tailor, the import keeps it on the attendee's `external_ids`: `tt_checked_in` (true or false) and `tt_checked_in_at`, with Ticket Tailor's ticket images `tt_qr_code_url` and `tt_barcode_url` and `tt_issued_at` when it sends them. On the event day (in the event's time zone), Audiobly reads the linked Ticket Tailor events every 5 minutes, so scans arrive while the event is on; the webhook (step 4) brings them sooner. A delegate sees their own ticket and whether it was scanned with `GET /v1/delegate-accounts/{ACCOUNT_ID}/tickets?event_id=…` (*Use Audiobly on your own website*, Section 4.10). Ticket Tailor scans are separate from Audiobly ticketing's check-in (A3).

---

## Part D — Talk sign-up and attendance *(Experience)*

| Action | Endpoint |
|---|---|
| Sign someone up for a talk | `POST /v1/events/{EVENT_ID}/sessions/{SESSION_ID}/register` with `{"email", "name", "first_name", "last_name", "company", "job_title"}` → `{attendee_id, name, email, status}` |
| Who signed up | `GET /v1/events/{EVENT_ID}/sessions/{SESSION_ID}/registrations` |
| Mark someone as attended | `POST /v1/events/{EVENT_ID}/sessions/{SESSION_ID}/attended` (same body) |
| Totals | `GET /v1/events/{EVENT_ID}/sessions/{SESSION_ID}/attendance` → `{total, registered, attended, no_show}` |

---

## Part E — Delegate accounts

Delegate accounts give your delegates a sign-in on **your own event website**: a booking creates the attendee and, when accounts are on, one branded "confirm your account" email. The link opens your site, where the delegate sets a password and chooses whether to appear in the delegate directory. Returning visits are email + password; "forgot password" sends a branded reset link.

> **The delegate actions must be called with your organisation's API key, from your site's server.** A browser never calls them, and a signed-in Audiobly user's token is refused with `403 API_KEY_REQUIRED` — so nobody in your team can confirm, sign in as, or reset a delegate. Your site keeps the delegate's own session after a successful sign-in.

### E1. Settings and invitations (organisation admin)

| Action | Endpoint |
|---|---|
| Read / change settings | `GET` / `PUT /v1/delegate-accounts/settings` |
| Give every booking at an event an account, without emailing anyone (`dry_run` defaults to `true` — counts only) | `POST /v1/delegate-accounts/ensure-accounts` with `{"event_id": "…", "dry_run": false}` |
| Preview the launch invitation (HTML of exactly what the first recipient gets) | `GET /v1/delegate-accounts/launch-invites/preview?event_id=…` |
| Send the launch invitation to existing registrations (`dry_run` defaults to `true`) | `POST /v1/delegate-accounts/launch-invites` with `{"event_id": "…", "dry_run": false}` → `{dry_run, recipients, sample}` |
| Invite last year's delegates who haven't booked yet — preview, then send | `GET /v1/delegate-accounts/past-invites/preview?event_id=…` · `POST /v1/delegate-accounts/past-invites` with `{"event_id": "…", "dry_run": false, "short_name": "…", "register_slug": "…"}` |

| Event reminder to everyone booked on an event (`dry_run` defaults to `true`; preview first) | `POST /v1/delegate-accounts/event-reminders/preview` · `POST /v1/delegate-accounts/event-reminders` |
| Invitation to the event's speakers (`dry_run` defaults to `true`) | `GET /v1/delegate-accounts/speaker-invites/preview?event_id=…` · `POST /v1/delegate-accounts/speaker-invites` |

**Event reminder.** Body `{"event_id": "…", "dry_run": false, "content": {…}}`. One email, up to three steps, each with its own button and each shown only when you give it content: choose your masterclasses, the content hub (`hub_text`, `hub_path`, `hub_title`, `hub_image_url`) and the delegate's own event page (`my_event_path`, `my_event_image_url`). `content` also takes `banner_url` (1200 × 600) and `masterclass_image_url`; image addresses are absolute `https://`. It goes once per person and event, never to an unsubscribed account or one that switched event reminders off, and only before the event starts. A real run sends in the background. The preview renders exactly what the first recipient gets and sends nothing. Errors: `409 NOT_ENABLED`, `409 EVENT_STARTED`, `409 NOTHING_TO_SEND`; the preview also answers `404 NO_RECIPIENTS`.

**Speaker invitation.** Body `{"event_id": "…", "dry_run": false}` → `{dry_run, recipients, sample, excluded: {already_has_account, no_email, undeliverable}}`. Every speaker is an attendee too, but the automatic booking welcome never goes to speakers: this is their own invitation to confirm their account, sent only when you choose. It reaches speakers without a booking whose account is neither confirmed nor already welcomed. Errors: `409 NOT_ENABLED`, `409 EVENT_STARTED`; the preview answers `404 NO_RECIPIENTS` when nobody is waiting.

Settings: `enabled`, `site_base_url` (your site — confirm and reset links point here), `from_name`, `from_address`, `logo_url`, `accent`, `accent_text`, `header_bg`, `networking_wording` and `networking_wording_version` (the directory opt-out text and its version), `auto_welcome` (send the confirm email automatically on each new booking; default `true`), `launch_past_content`. Invitations and account creation return `409 NOT_ENABLED` until accounts are switched on with a site URL.

Recommended go-live: import existing registrations with `auto_welcome` off, preview, dry-run, send the launch invitation once, then switch `auto_welcome` back on for new bookings.

### E2. The delegate flow (your site's server, API key only)

| Step | Endpoint |
|---|---|
| Confirm page: who is this link for? | `GET /v1/delegate-accounts/confirm-info?token=…` → `{name, networking_at_booking}` |
| Confirm: set a password and the directory choice | `POST /v1/delegate-accounts/confirm` with `{"token", "password", "networking": true}` |
| Sign in | `POST /v1/delegate-accounts/login` with `{"email", "password", "client_ip"}` |
| Forgot password (always `202`) | `POST /v1/delegate-accounts/password-reset/request` with `{"email", "client_ip"}` |
| Set a new password from the reset link | `POST /v1/delegate-accounts/password-reset/confirm` with `{"token", "password"}` |
| Re-send the confirm email | `POST /v1/delegate-accounts/resend-welcome` with `{"email"}` |
| Read / update the delegate's profile | `GET` / `PATCH /v1/delegate-accounts/{ACCOUNT_ID}` — `PATCH` takes any of `networking`, `first_name`, `last_name`, `honorific`, `job_title`, `company`, `country`, `company_website`, `bio`, `social_links`, `talk_about`, and the listing and email choices `directory_listed`, `show_company`, `email_preferences` (*Use Audiobly on your own website*, Section 4.6) |
| Headshot | `POST /v1/delegate-accounts/{ACCOUNT_ID}/headshot` (multipart `file`) · `DELETE` to remove |
| The delegate's company profile | `PATCH /v1/delegate-accounts/{ACCOUNT_ID}/companies/{COMPANY_ID}` — any of `website`, `summary`, `industry`, `products`, `services`; an empty value clears one |
| Company logo | `POST /v1/delegate-accounts/{ACCOUNT_ID}/companies/{COMPANY_ID}/logo` (multipart `file`) · `DELETE` to remove |
| Unsubscribe page | `GET /v1/delegate-accounts/unsubscribe-info?token=…` · `POST /v1/delegate-accounts/unsubscribe` with `{"token"}` |
| The delegate's own things | Followed themes, private notes, their own tickets, activity on your site, and a sign-in for live Q&A and polls: `/v1/delegate-accounts/{ACCOUNT_ID}/followed-themes`, `/notes`, `/tickets`, `/activity`, `/live-session` (*Use Audiobly on your own website*, Sections 4.9 to 4.13) |

Pass the delegate's IP as `client_ip` on sign-in and reset so repeated failures are throttled per person rather than per your server. Sign-in and confirm return the account; reset returns `{"status": "ok"}`, after which the delegate signs in with the new password:

```json
{ "id": "…", "email": "dana@acme.example", "name": "Dana Delegate", "confirmed": true,
  "networking": true, "last_login_at": "…", "profile": { … }, "events": [ … ],
  "companies": [ { "id": "…", "name": "Acme", "website": "…", "logo_url": "…", "summary": "…",
                   "industry": "…", "products": [ … ], "services": [ … ] } ] }
```

`companies` lists the company profiles the delegate may edit: the ones their live bookings are linked to (a cancelled or unpaid booking grants none). An edit to any other company answers `404`. A delegate's edit follows the same rules as the company panel in the admin: every field set is kept when the profile is re-enriched, and it is copied to the company's sponsor records at every event (the sponsor's own blurb and tier are not touched). The company name cannot be changed here; the delegate changes which company they work for through their own profile's `company`. Every company edit is recorded in your organisation's audit log with the delegate's email address.

| Error | Meaning |
|---|---|
| `400 INVALID_TOKEN` | the confirm, reset or unsubscribe link is invalid or expired (confirm links last 30 days and stop working once used; reset links stop working once the password changes) |
| `401 INVALID_CREDENTIALS` | wrong email or password |
| `403 API_KEY_REQUIRED` | called with a user token instead of the API key |
| `422 WEAK_PASSWORD` | the password does not meet the password policy |

The past-attendee invitation also carries a one-click unsubscribe link (`/v1/delegate-accounts/unsubscribe/one-click`) that works without your site. The launch invitation has no unsubscribe link, but it is never sent to an account that has unsubscribed. The confirm and reset emails are service emails and are always sent.

### E3. Session pre-registration (masterclasses and roundtables)

A session with a `capacity` (set in Audiobly with **Delegates can pre-register** and **Places** in **Edit session**, or on `POST /v1/events/{EVENT_ID}/sessions` or `PUT /v1/events/{EVENT_ID}/sessions/{SESSION_ID}`, from 1 to 100000; send `null` to switch it off: places already held are kept, not cancelled) takes pre-registrations from delegates with a live booking at its event. Places go in the order requests arrive. This does not need the Experience module.

| Step | Endpoint |
|---|---|
| Places on each pre-registerable session | `GET /v1/delegate-accounts/session-places?event_id=…` → `{"data": [{session_id, capacity, taken, remaining}]}` |
| The delegate's places | `GET /v1/delegate-accounts/{ACCOUNT_ID}/session-registrations?event_id=…` → `{"data": [{session_id, status, registered_at}]}` |
| Take a place | `POST /v1/delegate-accounts/{ACCOUNT_ID}/session-registrations` with `{"session_id": "…"}` → `201 {session_id, status, registered_at, remaining}` (`200` with the same body if the place is already held) |
| Give a place back | `DELETE /v1/delegate-accounts/{ACCOUNT_ID}/session-registrations/{SESSION_ID}` → `204` |

| Error | Meaning |
|---|---|
| `403 NOT_BOOKED` | the delegate has no live booking at the session's event (cancelled and unpaid bookings do not count) |
| `422 NOT_PREREGISTERABLE` | the session has no capacity set |
| `409 FULL` | no places remain |
| `409 CLASH` | the delegate already holds a place on a session at an overlapping time; the error's `session_id` names it |

For the organiser (admin): `GET /v1/delegate-accounts/session-registrations?event_id=…` lists each session with its capacity, places taken and the people holding them (name, email, company, job title, registration time); add `&format=csv` for a CSV file.

Any signed-in user of the organisation (Read): `GET /v1/events/{EVENT_ID}/preregistrations` → `{"data": [{session_id, title, format, starts_at, ends_at, capacity, taken, remaining, status, leads: [{name, company}], registrants: [{attendee_id, name, email, company, job_title, status, registered_at}]}]}`, one entry per session with places set, in programme order. `format` is `Masterclass` or `Roundtable`: `Roundtable` when the session's `session_type` contains "roundtable", otherwise `Masterclass`. Both take places and pre-registration the same way. `status` is `open` or `fully_booked`.

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

```json
{ "data": [ { "session_id": "…", "title": "Pricing a paywall readers accept", "format": "Masterclass",
    "starts_at": "2026-11-18T11:00:00Z", "ends_at": "2026-11-18T11:45:00Z",
    "capacity": 6, "taken": 6, "remaining": 0, "status": "fully_booked",
    "leads": [ { "name": "Daniel Okafor", "company": "Brightline Media" } ],
    "registrants": [ { "attendee_id": "…", "name": "Hannah Moore", "email": "hannah.moore@example.com",
        "company": "Brightline Media", "job_title": "Head of Marketing", "status": "registered",
        "registered_at": "2026-11-06T09:10:00Z" } ] } ] }
``` This is what Audiobly shows under **Sessions** › **Pre-registrations**; an empty list means the event takes no pre-registrations.

The figures above that table (Read): `GET /v1/events/{EVENT_ID}/preregistration-stats` → `{places, taken, taken_since_invite, open, fully_booked, closest_to_full, signed_up, holders_without_account, confirmed, invitation_sent_at, sessions: [{session_id, title, starts_at, capacity, taken, remaining, status}], as_of}`. `places` and `taken` add up the sessions with places; `confirmed` counts the live bookings with a confirmed account, and `signed_up` those of them holding at least one place (one per person, so never more than `confirmed`); `holders_without_account` counts the people holding a place without a confirmed account (for example a delegate who pre-registered after signing in by code without setting a password), who are not in `signed_up`; `invitation_sent_at` is the latest masterclass invitation, and `taken_since_invite` the places taken after it (`null` when none was sent); `closest_to_full` is the open session with the fewest places left. Cancelled places and cancelled or unpaid bookings are not counted. `sessions` is empty when the event takes no pre-registrations.

```bash
curl -s $API/events/$EVENT_ID/preregistration-stats -H "Authorization: Bearer $KEY"
# → { "places": 14, "taken": 12, "taken_since_invite": 6, "open": 1, "fully_booked": 1,
#     "closest_to_full": { "session_id": "…", "title": "Newsletters that readers open", "starts_at": "2026-11-18T10:00:00Z",
#                          "capacity": 8, "taken": 6, "remaining": 2, "status": "open" },
#     "signed_up": 10, "holders_without_account": 0, "confirmed": 11, "invitation_sent_at": "2026-11-05T09:00:00Z",
#     "sessions": [ { "session_id": "…", "title": "Events as a media business", "starts_at": "2026-11-18T10:00:00Z",
#                     "capacity": 6, "taken": 6, "remaining": 0, "status": "fully_booked" }, … ],
#     "as_of": "2026-11-10T22:57:02Z" }
```

**Invitation to pre-register.** The invitation names what the event offers, from the sessions' type: "masterclasses", "roundtables", or "masterclasses and roundtables" (subject, heading, list and button). With both kinds on offer, each line in the list says which it is ("Roundtable · Led by …"). Set `masterclass_path` in the settings to the site page that lists the masterclasses (for example `/events/your-event/programme?view=masterclasses`). Preview with `GET /v1/delegate-accounts/masterclass-invites/preview?event_id=…`, then send once to everyone already booked with `POST /v1/delegate-accounts/masterclass-invites` and `{"event_id": "…", "dry_run": false}` (`dry_run` defaults to `true`) → `{dry_run, recipients, sample, excluded: {unsubscribed, already_sent, no_account}}`. Each booking gets it once, only before the event starts, never after unsubscribing. A delegate who has not yet confirmed their account gets the confirm link with a `next` parameter carrying the masterclass page, so your confirm page can send them there afterwards. To invite new bookings automatically, set `masterclass_invite_auto: true` and `masterclass_invite_event_id`; each booking is then invited `masterclass_invite_delay_hours` (default 24) after it was made. The automatic send is off by default. `masterclass_short_name` sets how the subject names the event. Errors: `409 NOT_ENABLED`, `MASTERCLASS_PATH_REQUIRED`, `NO_MASTERCLASSES`, `EVENT_STARTED`.

### E4. Delegate directory

`GET /v1/events/{EVENT_ID}/delegate-directory` lists the delegates who chose to appear (name, job title, company, delegate type, seniority, function, country, bio, headshot, social links, what they want to talk about) — for your site's networking page. Delegates who chose not to be listed (`directory_listed: false`) are left out, and the company is empty for a delegate who chose not to show it (`show_company: false`). Email addresses and phone numbers are never included.

### E5. Saved sessions

A delegate's saved sessions belong to their account (one save per delegate per session), so a session saved on your site also shows as saved on the Audiobly event website, and the other way round. Saving is for delegates with a live booking at the session's event; it never takes or holds a place. Show saving only to signed-in delegates. Organisation API key (`prep_manage`), like the other delegate endpoints.

| Step | Endpoint |
|---|---|
| The delegate's saves | `GET /v1/delegate-accounts/{ACCOUNT_ID}/saved-sessions?event_id=…` → `{"data": [{session_id, saved_at}]}`, in programme order |
| Save a session | `PUT /v1/delegate-accounts/{ACCOUNT_ID}/saved-sessions/{SESSION_ID}` → `200 {session_id, saved_at}`; saving again answers the same, with the first `saved_at` |
| Remove a save | `DELETE /v1/delegate-accounts/{ACCOUNT_ID}/saved-sessions/{SESSION_ID}` → `204`, also when it was not saved. The removal is kept in the delegate's history; it no longer counts anywhere |
| Add the saves made on a phone before signing in | `POST /v1/delegate-accounts/{ACCOUNT_ID}/saved-sessions/merge` with `{"event_id": "…", "session_ids": ["…"]}` (up to 500) → the full list, as `GET` |

Add `?source=website` to `PUT`, `merge` and `DELETE` from your own event site (`webpage` is the Audiobly event website, which sends it itself). On `PUT` and `merge` it records where a save was first made, for the organiser's **Saved where** figure (on `DELETE`, where it was removed); saving again elsewhere keeps the first. Leave it out and the save shows as not recorded. Any other value answers `422`.

| Error | Meaning |
|---|---|
| `404 NOT_FOUND` | the account, event or session is not in your organisation |
| `422 NOT_BOOKED` | (`PUT`) the delegate has no live booking at the session's event (cancelled and unpaid bookings do not count) |

`merge` ignores ids that are not sessions of the event, and adds nothing when the delegate has no live booking there; sessions already saved keep their first `saved_at`.

```bash
curl -sX PUT "$API/delegate-accounts/$ACCOUNT_ID/saved-sessions/$SESSION_ID?source=website" -H "Authorization: Bearer $KEY"
# → { "session_id": "…", "saved_at": "2026-11-11T09:12:00Z" }
curl -sX POST "$API/delegate-accounts/$ACCOUNT_ID/saved-sessions/merge?source=website" -H "Authorization: Bearer $KEY" \
  -H "Content-Type: application/json" -d '{"event_id": "'$EVENT_ID'", "session_ids": ["…", "…"]}'
# → { "data": [ { "session_id": "…", "saved_at": "…" } ] }
```

For the organiser (any signed-in user of the organisation, Read): `GET /v1/events/{EVENT_ID}/saved-sessions` → `{"totals": {sessions, saves}, "data": [{session_id, title, starts_at, ends_at, session_type, leads: [{name, company}], saves, savers: [{account_id, name, company, job_title, email, saved_at}]}]}`, one entry per session with at least one save, in programme order; savers earliest first, named from their booking. Saves of cancelled or unpaid bookings are left out. Add `?format=csv` for a CSV file, one row per save (`session, starts_at, ends_at, type, name, email, company, job_title, saved_at`). This is what Audiobly shows under **Sessions** › **Saved sessions**.

The figures above that table (Read): `GET /v1/events/{EVENT_ID}/saved-session-stats` → `{saves, delegates, sessions, saves_since, since, saves_by_day: [{day, count}], most_saved: [{session_id, title, starts_at, saves}], saved_by, savers_without_account, confirmed, where: {webpage, website, not_recorded}, as_of}`. Each delegate counts once per session and only live bookings count, as in the list; `saves_since` counts the saves made since `since` (the start of the day before, in the event's time zone; UTC when the event has none); `most_saved` gives up to five, most first; `confirmed` is the live bookings with a confirmed account (one per person), and `saved_by` those of them who saved at least one session (so never more than `confirmed`; `delegates` also counts savers without a confirmed account, and `savers_without_account` says how many); `where` splits the saves by where each was first made.

```bash
curl -s $API/events/$EVENT_ID/saved-session-stats -H "Authorization: Bearer $KEY"
# → { "saves": 34, "delegates": 11, "sessions": 6, "saves_since": 7, "since": "2026-11-09T00:00:00Z",
#     "saves_by_day": [ { "day": "2026-11-01", "count": 2 }, … ],
#     "most_saved": [ { "session_id": "…", "title": "Audiences first: rebuilding trust in news", "starts_at": "2026-11-17T09:15:00Z", "saves": 9 }, … ],
#     "saved_by": 10, "savers_without_account": 1, "confirmed": 11, "where": { "webpage": 22, "website": 8, "not_recorded": 4 }, "as_of": "2026-11-10T22:58:00Z" }
```
---

## Part F — Exports

| Export | Endpoint |
|---|---|
| Attendees CSV | `GET /v1/events/{EVENT_ID}/exports/attendees.csv` |
| Orders CSV | `GET /v1/events/{EVENT_ID}/exports/orders.csv` |
| Sales CSV | `GET /v1/events/{EVENT_ID}/exports/sales.csv` |
| Contacts across events (`?consented=true` for marketing-consented only) *(Experience)* | `GET /v1/contacts/export` |
