Start a WebSocket media call
Starts an outbound test call and returns a short-lived WebSocket URL for streaming call audio.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects an object.
modelId
Agent model UUID.
fromPhoneNumber
Caller ID for the test call.
toPhoneNumber
Destination phone number.
leadName
Lead display name.
agentVersion
Agent version to use. Set to draft to test the draft version, pass a version UUID, or omit for the live version.
wsMediaCodec
Codec to use for the WebSocket media stream.
Allowed values:
Response
WebSocket media call created.
callId
Call ID for looking up the call later.
wsMediaUrl
Short-lived WebSocket URL for streaming call audio.
Errors
400
Bad Request Error
401
Unauthorized Error
502
Bad Gateway Error
503
Service Unavailable Error