Events
Upload Event Audio
Upload audio for an event using a file or url
POST /events-v2/upload/audio
Parameter | Where | Type | Default | Description |
---|---|---|---|---|
audio_url | form | string | - | URL of a file to bulk process |
audio_file | form | file | - | Attached file to bulk process |
NOTE
- Either audio_file or audio_url must be provided as a source of audio
- The size limit for audio file uploads is 10 MB. Please contact support@aiera.com if you're looking to upload a file larger than 10 MB.
Response
{
"event_id": 1234567
}
Code Samples
Bash
curl --request POST \
--url 'HOST_URL/api/events/upload/audio' \
--header 'X-API-Key: xxx' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--form 'audio_file=@localfilename'
Python
import requests
requests.post(
"HOST_URL/api/events/upload/audio",
headers={"X-API-Key": "xxx"},
data={
"audio_url": "https://myawesomemp4s.com/example.mp4"
}
)