# Sponsors

Sponsors and exhibitors, and each sponsor's analytics.

Base URL: https://api.audiobly.com

### POST /v1/events/{event_id}/sponsors

Create sponsor

Add a sponsor (or, with `kind=exhibitor`, an exhibitor) to an event. An existing
company profile is reused when it matches; otherwise a sponsor with a website is enriched
in the background. Requires prep-management permission.

Scope: prep_manage

Parameters:

- `event_id` (path, string (uuid), required)
- `kind` (query, string)

Body (JSON):

- `name` (string, required): The sponsor's name.
- `country` (string): The country, as a name or two-letter code.
- `tier` (string): The sponsorship level, such as Gold or Silver.
- `category` (string): The group this item belongs to, used for filtering and comparison.
- `sponsorship_value` (number or string): The agreed value of the sponsorship, in sponsorship_currency.
- `sponsorship_paid` (number or string): The amount paid so far, in sponsorship_currency.
- `sponsorship_currency` (string): Three-letter currency code for the sponsorship amounts, for example EUR.
- `website` (string): The sponsor's website address.
- `logo_url` (string): Address of the sponsor's logo.
- `blurb` (string): A short promotional line shown on the public page.
- `highlight_stats` (array of SponsorStat): Headline figures for the profile, each with a value and a label.
- `products` (array of string): Names of the products or offerings.
- `objectives` (string): What the sponsor wants to achieve at the event, in plain text.
- `ctas` (array of SponsorCta): Calls to action shown on the profile, each with a label and an optional link.

Responses:

- 201: Successful Response
- 422: The request did not validate.
- 401: The key is missing, unknown, revoked or expired.
- 403: The key lacks the scope this call needs, or the organisation is not on Enterprise.
- 429: Over the request rate. Wait for Retry-After seconds.

### GET /v1/events/{event_id}/sponsors

List sponsors

List an event's sponsors (or exhibitors, with `kind=exhibitor`), sorted by name and
paginated. Any member of the organisation or an API key can read the list.

Scope: any key

Parameters:

- `event_id` (path, string (uuid), required)
- `limit` (query, integer)
- `offset` (query, integer)
- `kind` (query, string)

Responses:

- 200: Successful Response
- 422: The request did not validate.
- 401: The key is missing, unknown, revoked or expired.
- 403: The key lacks the scope this call needs, or the organisation is not on Enterprise.
- 429: Over the request rate. Wait for Retry-After seconds.

### POST /v1/events/{event_id}/sponsors/refresh

Refresh all sponsors

Re-enrich all of this event's sponsors (or exhibitors, per `kind`). Rows imported from an
event website carry a name (+ logo) but no website — the enrichment worker self-resolves the
official site from the name, so we must NOT filter these out or website-less importer rows can
never enrich.

Scope: prep_manage

Parameters:

- `event_id` (path, string (uuid), required)
- `kind` (query, string)

Responses:

- 200: Successful Response
- 422: The request did not validate.
- 401: The key is missing, unknown, revoked or expired.
- 403: The key lacks the scope this call needs, or the organisation is not on Enterprise.
- 429: Over the request rate. Wait for Retry-After seconds.

### POST /v1/events/{event_id}/sponsors/{sponsor_id}/refresh

Refresh sponsor

Re-enrich one sponsor. A website is NOT required — the worker resolves the official site
from the sponsor name when none is set (as with website-importer sponsors).

Scope: prep_manage

Parameters:

- `event_id` (path, string (uuid), required)
- `sponsor_id` (path, string (uuid), required)

Responses:

- 200: Successful Response
- 422: The request did not validate.
- 401: The key is missing, unknown, revoked or expired.
- 403: The key lacks the scope this call needs, or the organisation is not on Enterprise.
- 429: Over the request rate. Wait for Retry-After seconds.

### POST /v1/events/{event_id}/sponsors/import

Import sponsors

Import sponsors for THIS event from a CSV (Name / Website / Tier — from the Download
Template) or a pasted list of names/URLs. Each links to the central Company (reusing its
enrichment) or enriches once.

Scope: prep_manage

Parameters:

- `event_id` (path, string (uuid), required)
- `kind` (query, string)

Responses:

- 200: Successful Response
- 422: The request did not validate.
- 401: The key is missing, unknown, revoked or expired.
- 403: The key lacks the scope this call needs, or the organisation is not on Enterprise.
- 429: Over the request rate. Wait for Retry-After seconds.

### PUT /v1/events/{event_id}/sponsors/{sponsor_id}

Update sponsor

Update a sponsor's or exhibitor's fields (only the fields sent change), including
its logo. Returns 404 if the sponsor is not on this event. Requires prep-management
permission.

Scope: prep_manage

Parameters:

- `event_id` (path, string (uuid), required)
- `sponsor_id` (path, string (uuid), required)

Body (JSON):

- `name` (string): The sponsor's name.
- `country` (string): The country, as a name or two-letter code.
- `tier` (string): The sponsorship level, such as Gold or Silver.
- `category` (string): The group this item belongs to, used for filtering and comparison.
- `sponsorship_value` (number or string): The agreed value of the sponsorship, in sponsorship_currency.
- `sponsorship_paid` (number or string): The amount paid so far, in sponsorship_currency.
- `sponsorship_currency` (string): Three-letter currency code for the sponsorship amounts, for example EUR.
- `website` (string): The sponsor's website address.
- `logo_url` (string): Address of the sponsor's logo.
- `blurb` (string): A short promotional line shown on the public page.
- `highlight_stats` (array of SponsorStat): Headline figures for the profile, each with a value and a label.
- `products` (array of string): Names of the products or offerings.
- `objectives` (string): What the sponsor wants to achieve at the event, in plain text.
- `ctas` (array of SponsorCta): Calls to action shown on the profile, each with a label and an optional link.
- `summary` (string): A short plain-text summary.
- `industry` (string): The industry the company works in.
- `tags` (array of string): Labels used to group or filter these records.
- `services` (array of string): Names of the services offered.
- `technologies` (array of string): Technologies the company uses or sells.

Responses:

- 200: Successful Response
- 422: The request did not validate.
- 401: The key is missing, unknown, revoked or expired.
- 403: The key lacks the scope this call needs, or the organisation is not on Enterprise.
- 429: Over the request rate. Wait for Retry-After seconds.

### DELETE /v1/events/{event_id}/sponsors/{sponsor_id}

Delete sponsor

Delete a sponsor or exhibitor from an event. Returns 204, or 404 if it is not on
this event. Requires prep-management permission.

Scope: prep_manage

Parameters:

- `event_id` (path, string (uuid), required)
- `sponsor_id` (path, string (uuid), required)

Responses:

- 204: Successful Response
- 422: The request did not validate.
- 401: The key is missing, unknown, revoked or expired.
- 403: The key lacks the scope this call needs, or the organisation is not on Enterprise.
- 429: Over the request rate. Wait for Retry-After seconds.

### GET /v1/events/{event_id}/sponsors/{sponsor_id}/attachments

List sponsor attachments

A sponsor's files, in display order.

Scope: any key

Parameters:

- `event_id` (path, string (uuid), required)
- `sponsor_id` (path, string (uuid), required)

Responses:

- 200: Successful Response
- 422: The request did not validate.
- 401: The key is missing, unknown, revoked or expired.
- 403: The key lacks the scope this call needs, or the organisation is not on Enterprise.
- 429: Over the request rate. Wait for Retry-After seconds.

### POST /v1/events/{event_id}/sponsors/{sponsor_id}/attachments

Upload sponsor attachment

Upload a file and give it the name the website will show.

The label is required and separate from the filename: sponsors send documents called
`WP_final_v3_APPROVED.pdf`, and that is not what a delegate should be asked to click.

Scope: prep_manage

Parameters:

- `event_id` (path, string (uuid), required)
- `sponsor_id` (path, string (uuid), required)

Body (multipart form):

- `label` (string, required): The text shown for this item.
- `file` (string, required): The file to upload.

Responses:

- 201: Successful Response
- 422: The request did not validate.
- 401: The key is missing, unknown, revoked or expired.
- 403: The key lacks the scope this call needs, or the organisation is not on Enterprise.
- 429: Over the request rate. Wait for Retry-After seconds.

### PATCH /v1/events/{event_id}/sponsors/{sponsor_id}/attachments/{attachment_id}

Update sponsor attachment

Rename or reorder. The stored file is never replaced — re-upload for that.

Scope: prep_manage

Parameters:

- `event_id` (path, string (uuid), required)
- `sponsor_id` (path, string (uuid), required)
- `attachment_id` (path, string (uuid), required)

Body (JSON):

- `label` (string): The file's display name.
- `sort_order` (integer): Where this item appears in its list; lower numbers come first.

Responses:

- 200: Successful Response
- 422: The request did not validate.
- 401: The key is missing, unknown, revoked or expired.
- 403: The key lacks the scope this call needs, or the organisation is not on Enterprise.
- 429: Over the request rate. Wait for Retry-After seconds.

### DELETE /v1/events/{event_id}/sponsors/{sponsor_id}/attachments/{attachment_id}

Delete sponsor attachment

Remove the record and the stored object.

Losing the object is not a failure worth blocking the delete over — the row is gone, which
is what the operator asked for, and an orphan in the bucket costs storage rather than
correctness.

Scope: prep_manage

Parameters:

- `event_id` (path, string (uuid), required)
- `sponsor_id` (path, string (uuid), required)
- `attachment_id` (path, string (uuid), required)

Responses:

- 204: Successful Response
- 422: The request did not validate.
- 401: The key is missing, unknown, revoked or expired.
- 403: The key lacks the scope this call needs, or the organisation is not on Enterprise.
- 429: Over the request rate. Wait for Retry-After seconds.

### GET /v1/events/{event_id}/sponsors/{sponsor_id}/analytics

Sponsor analytics

One sponsor's analytics at one event: the data window, headline KPIs (each with `kind`
counted / ai_inferred / forecast and a `method` sentence), hourly series on event days,
reach per session where the sponsor was on stage, the k-anonymous audience (k = 5) of the
delegates reached, a category benchmark (only with 3+ sponsors in the category), speaking
time and intent by event theme, topic interest by pass type, and the questions asked in
the sponsor's sessions grouped by theme (text and counts, never who asked). No AI call:
every figure is computed from stored records. `event_id` may be the short id fragment.
A signed-in user whose only role is `sponsor` reads their own sponsor only (matched by work
email domain); any other sponsor answers 404.

Scope: read

Parameters:

- `event_id` (path, string, required)
- `sponsor_id` (path, string (uuid), required)
- `as_of` (query, string (date-time)): Replay the event as it stood at this moment (ISO 8601). Default: now. Nothing after it counts.

Responses:

- 200: Successful Response
- 422: The request did not validate.
- 401: The key is missing, unknown, revoked or expired.
- 403: The key lacks the scope this call needs, or the organisation is not on Enterprise.
- 429: Over the request rate. Wait for Retry-After seconds.

### GET /v1/events/{event_id}/sponsors/{sponsor_id}/mentions

Sponsor mentions

Every time the sponsor's name or products were said on stage, in time order: the
session, the second into it, who said it and their company, whether it was owned (the
sponsor's own people) or earned, the matched term and the sentence around it. Read from
content tagging's resolved entity mentions; a session never tagged is scanned with the same
dictionary (`source` says which). A sponsor-role user reads their own sponsor only (404
otherwise).

Scope: read

Parameters:

- `event_id` (path, string, required)
- `sponsor_id` (path, string (uuid), required)
- `as_of` (query, string (date-time)): Replay the event as it stood at this moment (ISO 8601). Default: now. Nothing after it counts.
- `owned` (query, boolean): true: only your own people's mentions; false: only earned ones.

Responses:

- 200: Successful Response
- 422: The request did not validate.
- 401: The key is missing, unknown, revoked or expired.
- 403: The key lacks the scope this call needs, or the organisation is not on Enterprise.
- 429: Over the request rate. Wait for Retry-After seconds.

### GET /v1/events/{event_id}/sponsors/{sponsor_id}/recommendation

Sponsor recommendation

A next-edition recommendation for the sponsor, by a fixed rule stated in `rule`: of the
event themes that make up at least 10% of the sponsor's stage presence, the one with the
highest intent index. Returns the evidence behind it, a labelled forecast of reach
(delegates on that theme this edition) and their pass-type mix (k-anonymous). `theme` is
null, with a `reason`, until the event has themes mapped to its sessions. A sponsor-role user
reads their own sponsor only (404 otherwise).

Scope: read

Parameters:

- `event_id` (path, string, required)
- `sponsor_id` (path, string (uuid), required)
- `as_of` (query, string (date-time)): Replay the event as it stood at this moment (ISO 8601). Default: now. Nothing after it counts.

Responses:

- 200: Successful Response
- 422: The request did not validate.
- 401: The key is missing, unknown, revoked or expired.
- 403: The key lacks the scope this call needs, or the organisation is not on Enterprise.
- 429: Over the request rate. Wait for Retry-After seconds.

### GET /v1/events/{event_id}/sponsor-topics

Sponsor topics

The event's themes as topics a sponsor can own, for a partner or sales page before any
sponsor is chosen: each theme's share of the programme, the saves, places, questions and
poll votes it drew, its intent index (50 = in line with its programme share; `surge` at 60+),
the minutes partners spoke on it, the delegates on it by pass type (k = 5) and a labelled
forecast of reach. Empty until the event has themes mapped to its sessions.

Scope: read

Parameters:

- `event_id` (path, string, required)
- `as_of` (query, string (date-time)): Replay the event as it stood at this moment (ISO 8601). Default: now. Nothing after it counts.

Responses:

- 200: Successful Response
- 422: The request did not validate.
- 401: The key is missing, unknown, revoked or expired.
- 403: The key lacks the scope this call needs, or the organisation is not on Enterprise.
- 429: Over the request rate. Wait for Retry-After seconds.

### PUT /v1/events/{event_id}/sponsors/{sponsor_id}/category

Set sponsor category

Set (or clear, with null) the sponsor's commercial category, e.g. "Ingredients and food
science". Sponsor analytics benchmark a sponsor against the others in its category, and only
when the category has at least 3 sponsors.

Scope: prep_manage

Parameters:

- `event_id` (path, string, required)
- `sponsor_id` (path, string (uuid), required)

Body (JSON):

- `category` (string): The sponsor's commercial category; null clears it.

Responses:

- 200: Successful Response
- 422: The request did not validate.
- 401: The key is missing, unknown, revoked or expired.
- 403: The key lacks the scope this call needs, or the organisation is not on Enterprise.
- 429: Over the request rate. Wait for Retry-After seconds.

### GET /v1/sponsor-portal/{token}/analytics

Sponsor portal analytics

The sponsor's own analytics at one event, from their sponsor-portal magic-link token (no
other authentication): the same payload as
`GET /v1/events/{event_id}/sponsors/{sponsor_id}/analytics`, for the sponsor at that event
whose name the token carries. Reads only the token's organisation. 401 INVALID_TOKEN (bad,
expired or revoked link), 403 MODULE_DISABLED, 404 when the event is not the organisation's
or the sponsor is not on it.

Scope: any key

Parameters:

- `token` (path, string, required)
- `event_id` (query, string (uuid), required): The event to report on.
- `as_of` (query, string (date-time)): Replay the event as it stood at this moment (ISO 8601). Default: now. Nothing after it counts.

Responses:

- 200: Successful Response
- 422: The request did not validate.
- 401: The key is missing, unknown, revoked or expired.
- 403: The key lacks the scope this call needs, or the organisation is not on Enterprise.
- 429: Over the request rate. Wait for Retry-After seconds.
