curl -X POST "https://core.wadial.com/api/v1/call-audio-assets" \
-H "Authorization: Bearer $WADIAL_API_KEY" \
-F "[email protected];type=audio/wav"
{
"data": {
"id": "019f...",
"filename": "intro.wav",
"contentType": "audio/wav",
"sizeBytes": 245760,
"durationMs": null,
"status": "ready"
}
}
API Reference
Upload and play prerecorded audio
Upload reusable audio assets and play them into active calls.
POST
/
api
/
v1
/
call-audio-assets
curl -X POST "https://core.wadial.com/api/v1/call-audio-assets" \
-H "Authorization: Bearer $WADIAL_API_KEY" \
-F "[email protected];type=audio/wav"
{
"data": {
"id": "019f...",
"filename": "intro.wav",
"contentType": "audio/wav",
"sizeBytes": 245760,
"durationMs": null,
"status": "ready"
}
}
Upload a local audio file with multipart form field
Remote audio URLs are not accepted for this feature. Upload assets first so playback cannot be used to fetch arbitrary private URLs.
audio.
curl -X POST "https://core.wadial.com/api/v1/call-audio-assets" \
-H "Authorization: Bearer $WADIAL_API_KEY" \
-F "[email protected];type=audio/wav"
{
"data": {
"id": "019f...",
"filename": "intro.wav",
"contentType": "audio/wav",
"sizeBytes": 245760,
"durationMs": null,
"status": "ready"
}
}
List assets
GET /api/v1/call-audio-assets
Authorization: Bearer <api_key>
Delete an asset
DELETE /api/v1/call-audio-assets/{assetId}
Authorization: Bearer <api_key>
Play an asset
POST /api/v1/sessions/{sessionId}/calls/{callId}/audio/play
Authorization: Bearer <api_key>
Content-Type: application/json
{
"assetId": "019f..."
}
Was this page helpful?