Subscribe to Meetings

Learn how to subscribe to meetings to receive real-time transcript updates via WebSocket.

Subscription Flow

  1. Connect to the WebSocket endpoint
  2. Wait for connection to open
  3. Send a subscribe message with meeting details
  4. Receive confirmation and start receiving events
Subscribe Message Format
Send this message after connecting
{
  "action": "subscribe",
  "meetings": [
    {
      "platform": "google_meet",
      "native_id": "abc-defg-hij"
    }
  ]
}

You can subscribe to multiple meetings in a single message by including multiple entries in the meetings array.

Subscription Confirmation
You'll receive this after subscribing
{
  "type": "subscribed",
  "meetings": [
    123,
    124
  ]
}

The meetings array contains the internal meeting IDs that you're now subscribed to.

Code Examples

const ws = new WebSocket('wss://api.vexa.ai/ws?api_key=YOUR_API_KEY');

ws.onopen = () => {
  // Subscribe to a meeting
  ws.send(JSON.stringify({
    action: 'subscribe',
    meetings: [
      { platform: 'google_meet', native_id: 'abc-defg-hij' }
    ]
  }));
};

ws.onmessage = (event) => {
  const message = JSON.parse(event.data);
  
  if (message.type === 'subscribed') {
    console.log('Subscribed to meetings:', message.meetings);
  }
};