curl --request POST \
--url 'https://api.voice.stateset.com/api/v1/automations/escalate-call-with-bridge' \
--header "Authorization: Bearer $STATESET_VOICE_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"call_sid": "CA1234567890abcdef1234567890abcdef",
"customer_phone": "+15555555678",
"metadata": {
"order_id": "ORD-12345"
},
"reason": "customer requested a human agent",
"session_id": "550e8400-e29b-41d4-a716-446655440000"
}'
{
"ok": true,
"result": {
"message_sid": "SM1234567890abcdef",
"queued_at": "2026-05-14T17:42:09Z"
}
}
Escalate a call using Twilio call bridge
Performs a warm transfer by bridging the current call to a human agent, keeping the caller connected during handoff.
POST
/
api
/
v1
/
automations
/
escalate-call-with-bridge
curl --request POST \
--url 'https://api.voice.stateset.com/api/v1/automations/escalate-call-with-bridge' \
--header "Authorization: Bearer $STATESET_VOICE_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"call_sid": "CA1234567890abcdef1234567890abcdef",
"customer_phone": "+15555555678",
"metadata": {
"order_id": "ORD-12345"
},
"reason": "customer requested a human agent",
"session_id": "550e8400-e29b-41d4-a716-446655440000"
}'
{
"ok": true,
"result": {
"message_sid": "SM1234567890abcdef",
"queued_at": "2026-05-14T17:42:09Z"
}
}
Performs a warm transfer by bridging the current call to a human agent,
keeping the caller connected during handoff.
Request body
AutomationPayload
string,null
Twilio call SID
string,null
Customer phone number in E.164 format
object
Optional workflow-specific metadata
string,null
Human-readable workflow reason or note
string,null
Voice session identifier when the automation is tied to a persisted session
string,null
Destination phone number or escalation target
Response
AutomationResponse
string,null
Error message (present on failure)
boolean
required
Whether the automation executed successfully
object
Result payload returned by the function (present on success)
Status codes
| Code | Meaning |
|---|---|
200 | Automation executed successfully |
400 | Automation execution failed |
401 | Unauthorized - invalid or missing bearer token |
500 | Internal server error |
curl --request POST \
--url 'https://api.voice.stateset.com/api/v1/automations/escalate-call-with-bridge' \
--header "Authorization: Bearer $STATESET_VOICE_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"call_sid": "CA1234567890abcdef1234567890abcdef",
"customer_phone": "+15555555678",
"metadata": {
"order_id": "ORD-12345"
},
"reason": "customer requested a human agent",
"session_id": "550e8400-e29b-41d4-a716-446655440000"
}'
{
"ok": true,
"result": {
"message_sid": "SM1234567890abcdef",
"queued_at": "2026-05-14T17:42:09Z"
}
}
Last modified on August 31, 2026