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
- Base URLhttps://api.sandbox.asapp.com
- AuthAPI key in header asapp-api-id and API key in header asapp-api-secret
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
voiceAgentMode'cascade' | 's2s'
Optional voice agent mode
Response
OK - Twilio media stream url in the response body
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.