# Attendees and ticketing

Attendees, registrations, session sign-up, ticket types, orders and check-in.

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

### POST /v1/events/{event_id}/invite-codes

Create invite codes

Create comp codes for an event — either an explicit ``codes`` list or ``count``
generated codes (optionally with a ``prefix``). Existing codes (case-insensitive)
are skipped, so re-running is idempotent.

Scope: prep_manage

Parameters:

- `event_id` (path, string, required)

Body (JSON):

- `codes` (array of string): The codes, one per entry.
- `count` (integer): Generate this many unguessable codes.
- `prefix` (string): Prefix for generated codes, e.g. 'FM-PARIS-'.
- `label` (string): Batch label, e.g. 'Paris — press'.
- `max_redemptions` (integer): 1 = single-use (default).

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.
