Connect the agent's browser to the call audio
POST/api/conversations/:conversationId/call/webrtc
The SECOND leg, separate from answering. Answering connects WhatsApp to our media sidecar; this connects the agent's browser to the same sidecar, which bridges the two. They are separate calls because a call can be answered on one device and listened to on another, and because the browser's offer only exists once the agent has granted microphone access.
Authorized via the conversation reply ability.
Request
Responses
- 200
- 401
- 403
- 404
- 409
- 422
The sidecar's SDP answer, for the browser to complete its leg.
Not authenticated. code: account_disabled means the member's seat was deactivated in this workspace: the session is over even though the token was not revoked (clients sign out and clean up).
Authenticated but not allowed.
No call is in flight on this conversation.
More than one call is in flight on this conversation (code: ambiguous_call): connecting the microphone to a guessed leg would take it off the call the agent is on. Re-issue against /api/calls/{callId}/webrtc.
The sidecar refused the offer.