Log inSign up
Home
Webex Contact Center
  • Overview
  • Agent Desktop
  • Service Apps
  • API REFERENCE
  • AI Assistant for Developers
  • Changelog

Webex Contact Center

BYoVA WebSocket: Protocol Reference

Use this reference to identify BYoVA WebSocket endpoints, message envelopes, input types, response types, event directions, and error handling.

anchorOverview

anchor

The BYoVA over WebSocket guide explains the full lifecycle and partner implementation. The published AsyncAPI schemas are authoritative for field types, required fields, and enum values.

anchorEndpoints

anchor
EndpointPurpose
/v1/vaBidirectional conversation traffic, including requests, responses, heartbeat messages, and errors.
/v1/listVirtualAgentsSeparate discovery operation that returns virtual agents available to an organization.

Use one secure WebSocket connection for one conversation_id. Keep it open across turns and do not multiplex conversations on the same connection. Virtual-agent discovery is a separate request-response operation and does not use the conversation envelope.

anchorConversation message envelope

anchor

A conversation message is a JSON text frame. The common envelope contains:

FieldMeaning
typeMessage kind, such as VOICE_VA_REQUEST, VOICE_VA_RESPONSE, PING, PONG, or ERROR.
seqSender-owned sequence number. It is not a turn number or request-response correlation ID.
tsRFC 3339 message timestamp.
conversation_idStable conversation identity for the WebSocket session.
payloadRequest or response body for voice messages. Heartbeat and error messages use their schema-defined top-level fields.

Example SESSION_START request with the required payload fields:

{
  "type": "VOICE_VA_REQUEST",
  "seq": 1,
  "ts": "2026-08-19T10:15:31Z",
  "conversation_id": "conversation-123",
  "payload": {
    "conversation_id": "conversation-123",
    "customer_org_id": "org-123",
    "voice_va_input_type": {
      "event_input": {
        "event_type": "SESSION_START"
      }
    }
  }
}

Each sender maintains an independent increasing sequence counter for application messages. A PONG echoes the seq from the corresponding PING.

anchorInputs from Webex

anchor

VOICE_VA_REQUEST.payload.voice_va_input_type contains one input object:

InputMeaning
audio_inputCaller audio and media properties. Audio is Base64-encoded in JSON.
dtmf_inputAn ordered collection of DTMF events.
event_inputA lifecycle or control event, such as SESSION_START, NO_INPUT, or CUSTOM_EVENT.

SESSION_START is the first application input on a conversation connection. Other event examples include SESSION_END, START_OF_DTMF, and CUSTOM_EVENT.

anchorResponses from the partner

anchor

VOICE_VA_RESPONSE.payload can contain prompts, output events, input mode, input-handling configuration, and a response type.

Response typeUse
PARTIALIntermediate response content; send only when VOICE_VA_REQUEST.payload.allow_partial_responses is true.
CHUNKStreamed response audio.
FINALCloses one logical reply. Send exactly one for each reply.

A FINAL does not close the WebSocket or end the call. It may be audio-less. Do not send more output for that logical reply after FINAL.

anchorEvent directions

anchor
DirectionEvent examples
Webex to partnerSESSION_START, SESSION_END, NO_INPUT, START_OF_DTMF, CUSTOM_EVENT
Partner to WebexSTART_OF_INPUT, END_OF_INPUT, NO_MATCH, NO_INPUT, CUSTOM_EVENT, TRANSFER_TO_AGENT, SESSION_END

START_OF_INPUT and END_OF_INPUT are partner-to-Webex input-boundary events. The partner sends them based on its speech detection and end-of-turn logic. SESSION_END can be sent in either direction to end the application session.

anchorAuthentication, heartbeat, and errors

anchor

Validate the bearer token during the WebSocket upgrade before processing application messages. Respond promptly to PING with PONG and the matching sequence number.

Partner error envelopes use schema-defined codes, including unauthorized, bad_request, unsupported_media, upstream_error, rate_limit, and timeout. Keep error details bounded and do not include credentials, raw audio, transcripts, or other sensitive content.

anchorReferences

anchor
  • BYoVA over WebSocket
  • Published BYoVA WebSocket AsyncAPI schemas
  • Java WebSocket JSON sample
In This Article
  • Overview
  • Endpoints
  • Conversation message envelope
  • Inputs from Webex
  • Responses from the partner
  • Event directions
  • Authentication, heartbeat, and errors
  • References

Connect

Support

Developer Community

Developer Events

Contact Sales

Handy Links

Webex Ambassadors

Webex App Hub

Resources

Open Source Bot Starter Kits

Download Webex

DevNet Learning Labs

Terms of Service

Privacy Policy

Cookie Policy

Trademarks

© 2026 Cisco and/or its affiliates. All rights reserved.