Twilio Media Stream

Get Twilio media stream url

Returns url where Twilio media stream should be sent to.

get/mg-genagent/v1/twilio-media-stream-url

Request

Query parameters

voiceAgentMode'cascade' | 's2s'

Optional voice agent mode

Response

OK - Twilio media stream url in the response body

streamingUrlstring

The websocket URL you provide to Twilio for media streaming.

Example response

{
  "streamingUrl": "wss://localhost/mg-twilio-genagent/twilio-media/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
}

Changes

No recorded changes to this operation across all 1 revision of this API.