# Content and reports

Reports, generated content assets and exports.

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

### GET /v1/events/{event_id}/content-reports/days

List event days

The calendar dates this event has scheduled sessions on, for the day-scope picker.

Sessions with no scheduled start belong to no day; they are covered by the event-scoped
reports and are reported here so the UI can say so rather than lose them silently.

Scope: asset_view

Parameters:

- `event_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.

### GET /v1/events/{event_id}/content-reports

List content reports

The day- or event-scoped reports with their status and download URLs. Always returns every
kind for the scope so the UI can render fixed cards.

Scope: asset_view

Parameters:

- `event_id` (path, string (uuid), required)
- `scope` (query, string)
- `day` (query, string (date))

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}/content-reports/kinds

Get report kinds

The report kinds this event lists at ``scope`` (session, day or event) on its Content tab.
One list for everyone on the event.

Scope: asset_view

Parameters:

- `event_id` (path, string (uuid), required)
- `scope` (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}/content-reports/kinds

Set report kinds

Choose which reports this event lists at ``scope``. The list is the event's, for everyone
on it (product owner, 2026-11-16), so changing it needs asset_manage, like building reports.

Only changes what is listed: a removed report that was already built is kept, and the API
still returns it so it stays downloadable. Choosing exactly the default removes the stored
choice, so the event follows the default if it changes later. Generate builds only the
listed day and event reports.

Scope: asset_manage

Parameters:

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

Body (JSON):

- `kinds` (array of string, required): The report kinds to switch on.

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}/content-reports/session-kinds

Get session report kinds

The session reports this event lists. Same as ``GET /kinds?scope=session``.

Scope: asset_view

Parameters:

- `event_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.

### PUT /v1/events/{event_id}/content-reports/session-kinds

Set session report kinds

Choose the session reports this event lists. Same as ``PUT /kinds?scope=session``.

Scope: asset_manage

Parameters:

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

Body (JSON):

- `kinds` (array of string, required): The report kinds to switch on.

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}/content-reports/generate

Generate content reports

Build (or rebuild) the day/event-scoped reports for this window.

Always forces: this endpoint is only ever reached by someone pressing Generate, and the
freshness check keys on transcript version alone — which cannot see a branding change or a
session added to the window since the last run.

Scope: asset_manage

Parameters:

- `event_id` (path, string (uuid), required)
- `scope` (query, string)
- `day` (query, string (date))
- `profile` (query, string)

Responses:

- 202: 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}/content-reports/{kind}/text

Download content report text

Download the plain-text version of a built content report for the whole event
(`scope=event`) or one `day`. Included with every API key (Enterprise); 404
NOT_FOUND if the kind is unknown or no text version is available.

Scope: asset_view

Parameters:

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

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}/content-reports/{kind}/approve

Approve content report

Sign off a built content report for the event or one `day`, re-rendering it without the
draft band. Included with every API key (Enterprise); 404 NOT_FOUND if not built
yet, 409 NOT_READY if the build has not finished.

Scope: asset_manage

Parameters:

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

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}/content-reports/{kind}/unpublish

Unpublish content report

Undo a sign-off on a day/whole-event report — see unpublish_report.

Scope: asset_manage

Parameters:

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

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}/content-reports/{kind}/export

Export content report

A day/whole-event report in a format it was not designed in — see export_response.

Scope: asset_view

Parameters:

- `event_id` (path, string (uuid), required)
- `kind` (path, string, required)
- `format` (query, string)
- `scope` (query, string)
- `day` (query, string (date))

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}/assets

List assets

List the event-level generated content assets (e.g. executive summary, blog post) for an
event, paginated. Per-session assets are listed under the session.

Scope: any key

Parameters:

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

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/assets/{asset_id}/download

Download asset

Get a time-limited (1 hour) download URL for a generated asset. Returns 404 NOT_FOUND if the
asset does not exist in your organisation.

Scope: any key

Parameters:

- `asset_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.

### GET /v1/asset-types

List asset types

List the content asset types that can be generated, with their labels, descriptions
and defaults. Read-only.

Scope: any key

Responses:

- 200: Successful Response
- 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/organizations/export

Create org export

Start an asynchronous export of all the organisation's data. Returns an `export_id` to poll
with `GET /v1/exports/{export_id}`.

Scope: org_manage

Responses:

- 202: Successful Response
- 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}/export

Create event export

Start an asynchronous export of one event's data. Returns an `export_id` to poll; 404
NOT_FOUND if the event is not in your organisation.

Scope: org_manage

Parameters:

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

Responses:

- 202: 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/exports/{export_id}

Get export

Get an export's status; once `ready`, includes a download URL valid for 1 hour. Returns 404
NOT_FOUND if the export is not in your organisation.

Scope: org_manage

Parameters:

- `export_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.

### GET /v1/events/{event_id}/exports/attendees.csv

Export attendees

Download the event's attendee roster as CSV: name, email, company, job title, role,
registration status, source, invite/discount code, amount paid, currency, channel and
attendee type (booking, speaker, or speaker_and_booking: every speaker is an attendee too).

Scope: prep_manage

Parameters:

- `event_id` (path, string, 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.

### GET /v1/events/{event_id}/exports/orders.csv

Export orders

Download the event's orders as CSV: order number, subtotal, discount, tax, total,
currency, payment status and payment gateway.

Scope: prep_manage

Parameters:

- `event_id` (path, string, 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.

### GET /v1/events/{event_id}/exports/sales.csv

Export sales

Download a sales summary as CSV: one row per ticket type with price, currency, number
sold and revenue.

Scope: prep_manage

Parameters:

- `event_id` (path, string, 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.
