Refer call
post /realtime/calls/{call_id}/refer
Refer call
Path Parameters
call_id: string
Body Parameters
-
target_uri: stringURI that should appear in the SIP Refer-To header. Supports values like
tel:+14155550123orsip:agent@example.com.
Example
curl https://api.openai.com/v1/realtime/calls/$CALL_ID/refer \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-d '{
"target_uri": "tel:+14155550123"
}'
Example
curl -X POST https://api.openai.com/v1/realtime/calls/$CALL_ID/refer \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"target_uri": "tel:+14155550123"}'