Skip to main content
POST
/
api
/
v1
/
call-audio-assets
curl -X POST "https://api.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 audio.
curl -X POST "https://api.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..."
}
Remote audio URLs are not accepted for this feature. Upload assets first so playback cannot be used to fetch arbitrary private URLs.