# Uploads and live capture

Upload recordings and capture talks in real time.

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

### POST /v1/uploads

Create upload

Start an audio/video upload for an existing event (`event_id`), a session (`session_id`) or
a new event created from `metadata`. Returns a presigned upload URL, or a multipart plan for
large files. Returns 400 INVALID_REQUEST for an unsupported type or oversized file.

Scope: any key

Body (JSON):

- `filename` (string, required): The file's name, including its extension.
- `file_size` (integer, required): The file size in bytes.
- `content_type` (string, required): The file's media type, for example audio/mpeg.
- `event_id` (string (uuid)): The existing event to attach the audio to.
- `metadata` (EventCreate): Details of a new event to create for this upload; use this or event_id.
- `session_id` (string (uuid)): The session of that event the audio belongs to.
- `part_bytes` (integer): Size in bytes of each upload part; between 5 MiB and 64 MiB.

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.
