Subscribe to Meetings
Learn how to subscribe to meetings to receive real-time transcript updates via WebSocket.
Subscription Flow
- Connect to the WebSocket endpoint
- Wait for connection to open
- Send a subscribe message with meeting details
- 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);
}
};