Skip to main content
Trata’s API architecture is divided into two main categories:

Control Plane APIs

  • Configuration-focused APIs
  • Not invoked during active conversations
  • Used for system setup and management

Data Plane APIs

  • Runtime APIs used during conversation flows
  • Handles real-time communication
  • Manages connections and WebSocket interactions

Conversation Protocol

Trata uses WebSockets for real-time communication with user-facing endpoints (Telephony providers and Frontend UI widgets).

Message Stream Schema

After opening the websocket connection, the server expects and sends messages in the following schema:

Command Types

Payload Types