curl --request POST \
--url 'https://api.voice.stateset.com/api/v1/sessions/{stream_sid}/actions/{action}' \
--header "Authorization: Bearer $STATESET_VOICE_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"note": "Offer the customer a 15% discount",
"reason": "Customer issue resolved",
"supervisor": "dashboard",
"target": "+15555559999"
}'
{
"message": "Escalated",
"ok": true
}
Session Action
Tenant-scoped endpoint for inspecting and controlling active realtime voice sessions.
POST
/
api
/
v1
/
sessions
/
{stream_sid}
/
actions
/
{action}
curl --request POST \
--url 'https://api.voice.stateset.com/api/v1/sessions/{stream_sid}/actions/{action}' \
--header "Authorization: Bearer $STATESET_VOICE_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"note": "Offer the customer a 15% discount",
"reason": "Customer issue resolved",
"supervisor": "dashboard",
"target": "+15555559999"
}'
{
"message": "Escalated",
"ok": true
}
Tenant-scoped endpoint for inspecting and controlling active realtime voice sessions.
Path parameters
Request body
SessionActionBody
Response
SessionActionResponse
Status codes
| Code | Meaning |
|---|---|
200 | Action acknowledged |
400 | Invalid action |
401 | Unauthorized - invalid or missing bearer token |
404 | Session not found |
curl --request POST \
--url 'https://api.voice.stateset.com/api/v1/sessions/{stream_sid}/actions/{action}' \
--header "Authorization: Bearer $STATESET_VOICE_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"note": "Offer the customer a 15% discount",
"reason": "Customer issue resolved",
"supervisor": "dashboard",
"target": "+15555559999"
}'
{
"message": "Escalated",
"ok": true
}
Last modified on August 31, 2026