Generate a pre-signed URL to upload a file directly to S3
| Auth | Use case |
|---|---|
| API key | Backend uploading on behalf of devices (BLE sync) |
| Device token | 4G/WiFi devices uploading directly |
rec_abc123).audio, image, or video.type:audio/opus): audio/opus, audio/wav, audio/mpeg, audio/mp4, audio/webm, audio/ogg, audio/flacimage/jpeg, image/pngvideo/mp4| Field | Type | Description |
|---|---|---|
media_id | string | Identifier for the created media record (med_*) |
upload_url | string | Pre-signed S3 URL for uploading the file via PUT request |
expires_at | string | ISO 8601 timestamp when the upload URL expires (1 hour from creation) |
headers | object | HTTP headers to include when uploading to S3 (e.g., Content-Type) |