Generate a presigned URL for direct S3 upload.
This endpoint:
The client should:
cURL
curl --request POST \ --url https://api.example.com/api/v1/datasets/{dataset_id}/audio/upload-url \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data ' { "filename": "<string>", "content_type": "<string>", "file_size": 123 } '
{ "upload_url": "<string>", "fields": {}, "key": "<string>", "expires_in": 123, "audio_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }
Request schema for generating a presigned upload URL.
1 - 500
MIME type of the audio file
File size in bytes
Successful Response
Response schema for presigned upload URL.
Presigned URL for direct S3 upload
Form fields to include in POST request
Show child attributes
S3 object key
URL expiration in seconds
ID of the created audio file record