Hey team,
I’m trying to build a sidecar service that triggers call recordings on demand based on specific IVR keywords. The idea is to start recording only when a sensitive topic is detected, rather than recording the whole call from the get-go.
I’ve been digging through the /api/v2/recording/jobs and /api/v2/interaction endpoints, but I can’t find a clear way to programmatically start or stop a recording for an active interaction. The UI has a “Start Recording” button, which suggests it’s possible, but the docs are a bit sparse on the exact REST call.
I tried hitting POST /api/v2/recording/jobs with a payload like this:
{
"interactionId": "550e8400-e29b-41d4-a716-446655440000",
"startRecording": true
}
But I just get a 405 Method Not Allowed. I also tried looking at the POST /api/v2/interaction/{interactionId} endpoint to see if there’s a media action I can push, but nothing jumps out as a recording trigger.
Is this even supported via the public API? Or is it strictly a UI-only feature for now? If it is supported, what’s the right endpoint and payload structure?
Thanks!