API Documentation
Upload
Pre-recorded endpoints
Live endpoints
Live WS actions
Live WS messages
- Realtime messages
- Post-processing messages
- Acknowledgment messages
- Lifecycle messages
Live callbacks
- Realtime messages
- Post-processing messages
- Acknowledgment messages
- Lifecycle messages
Live webhooks
- Lifecycle messages
Upload
Upload a file
Upload a file for use in a pre-recorded job.
POST
/
v2
/
upload
curl --request POST \
--url https://api.gladia.io/v2/upload \
--header 'Content-Type: multipart/form-data' \
--header 'x-gladia-key: <api-key>'
{
"audio_url": "https://api.gladia.io/file/6c09400e-23d2-4bd2-be55-96a5ececfa3b",
"audio_metadata": {
"id": "6c09400e-23d2-4bd2-be55-96a5ececfa3b",
"filename": "short-audio-en-16000.wav",
"source": "http://files.gladia.io/example/audio-transcription/split_infinity.wav",
"extension": "wav",
"size": 365702,
"audio_duration": 4.145782,
"number_of_channels": 1
}
}
Authorizations
Your personal Gladia API key
Body
Response
200 - application/json
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://api.gladia.io/v2/upload \
--header 'Content-Type: multipart/form-data' \
--header 'x-gladia-key: <api-key>'
{
"audio_url": "https://api.gladia.io/file/6c09400e-23d2-4bd2-be55-96a5ececfa3b",
"audio_metadata": {
"id": "6c09400e-23d2-4bd2-be55-96a5ececfa3b",
"filename": "short-audio-en-16000.wav",
"source": "http://files.gladia.io/example/audio-transcription/split_infinity.wav",
"extension": "wav",
"size": 365702,
"audio_duration": 4.145782,
"number_of_channels": 1
}
}
Assistant
Responses are generated using AI and may contain mistakes.