How to Join Zoom, Google Meet and Teams Calls From Code

One create_bot request puts a bot into a Zoom, Google Meet or Microsoft Teams call. Working curl and Python for joining, status webhooks, post-call transcript and audio, live transcripts and live audio over WebSocket, plus how Zoom joins work with OBF and ZAK.

To join a Zoom, Google Meet or Microsoft Teams call from code, send one POST to MeetStream's create_bot endpoint with the meeting link. A bot joins as a participant, records the call, reports each step to your webhook, and returns the transcript and audio by bot_id when the call ends, or streams them live while it runs.

Updated November 2026. Every endpoint, field and event name below comes from the MeetStream docs.

You write the code once. MeetStream detects the platform from the link, so there is no Zoom SDK, Teams client or browser automation in your codebase. Zoom has one extra step: the bot joins through your own Zoom app, covered in its own section below.

What you need before the first call

  • A MeetStream API key from the dashboard under Configure > API Keys. Every request sends Authorization: Token <key>. The word is Token, not Bearer.
  • A meeting link: https://meet.google.com/abc-defg-hij, https://zoom.us/j/<meeting-id>?pwd=<passcode> or a https://teams.microsoft.com/l/meetup-join/... link.
  • A public HTTPS endpoint for webhooks. A tunnel works while you develop.
  • For Zoom only: your Zoom Meeting SDK app credentials saved under Integrations > Zoom.

Step 1: send a bot with create_bot

The only required field is meeting_link. The request below also names the bot, keeps it audio-only, sets a per-bot webhook, asks for a post-call transcript from the MeetStream engine (no provider key needed) and attaches your own ID so it comes back on the bot's webhooks.

curl -X POST "https://api.meetstream.ai/api/v1/bots/create_bot" \
  -H "Authorization: Token $MEETSTREAM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "meeting_link": "https://meet.google.com/abc-defg-hij",
    "bot_name": "Notetaker",
    "video_required": false,
    "callback_url": "https://your-app.example.com/webhooks/meetstream",
    "recording_config": {
      "transcript": { "provider": { "meetstream": { "language": "auto" } } }
    },
    "custom_attributes": { "meeting_id": "mtg_123" }
  }'

A successful call returns 201. Save both IDs: bot_id is the key for status, audio, video and removal, and transcript_id points at the post-call transcript.

{
  "bot_id": "f923cd21-da86-4d77-b37b-0707d37751c8",
  "transcript_id": "3b0e6a8e-9a53-4c1c-8e0e-6f1f1d2a7c55",
  "meeting_url": "https://meet.google.com/abc-defg-hij",
  "status": "Active"
}

The same call in Python. Swap the link for a Zoom or Teams link and nothing else changes.

import os
import requests

API = "https://api.meetstream.ai/api/v1"
HEADERS = {"Authorization": f"Token {os.environ['MEETSTREAM_API_KEY']}"}


def send_bot(meeting_link: str, meeting_id: str) -> dict:
    """Send a bot to any Zoom, Google Meet or Teams link. Returns bot_id and transcript_id."""
    body = {
        "meeting_link": meeting_link,
        "bot_name": "Notetaker",
        "video_required": False,
        "callback_url": "https://your-app.example.com/webhooks/meetstream",
        "recording_config": {
            "transcript": {"provider": {"meetstream": {"language": "auto"}}}
        },
        "custom_attributes": {"meeting_id": meeting_id},
    }
    resp = requests.post(f"{API}/bots/create_bot", json=body, headers=HEADERS, timeout=30)
    resp.raise_for_status()  # 201 on success
    return resp.json()


bot = send_bot("https://teams.microsoft.com/l/meetup-join/...", "mtg_123")
print(bot["bot_id"], bot["transcript_id"])

Other providers go in the same place, for example deepgram or assemblyai with your own key saved under Integrations > Transcription. Only recording_config.transcript.provider is read; a top-level transcription field is ignored and you get no transcript. To stop a bot early, call GET /api/v1/bots/{bot_id}/remove_bot.

Step 2: follow the bot with a status webhook

MeetStream POSTs JSON to your callback_url every time the bot changes state. A recording bot that gets in sends this sequence:

bot.joining -> bot.in_waiting_room -> bot.inmeeting -> bot.recording
-> bot.leaving -> bot.stopped
-> audio.processed -> transcription.processed -> video.processed -> bot.done

Three details decide whether your handler works:

  • Branch on bot_event, not event. Every ending arrives with event: "bot.stopped". The bot_event field names the real cause: bot.stopped, bot.kicked, bot.notallowed, bot.denied or bot.failed.
  • bot.in_waiting_room fires on every join, even when the host admits the bot at once. It does not prove there is a lobby.
  • status_code is a hint. Classify endings with bot_event and bot_status, and compare bot_status case-insensitively.
from flask import Flask, request

app = Flask(__name__)

FAILED_JOIN = {"bot.notallowed", "bot.denied", "bot.failed"}


@app.post("/webhooks/meetstream")
def meetstream_webhook():
    evt = request.get_json(force=True)
    name = evt.get("bot_event") or evt.get("event")  # bot_event names the real cause
    bot_id = evt.get("bot_id")

    if name == "bot.inmeeting":
        mark_status(bot_id, "live")
    elif name in FAILED_JOIN:
        # bot_status can be Error, ERROR, Failed or FAILED: compare case-insensitively
        mark_status(bot_id, "failed", reason=evt.get("message"))
    elif name == "bot.kicked":
        mark_status(bot_id, "removed")
    elif name == "transcription.processed":
        enqueue(fetch_transcript, bot_id)
    elif name == "audio.processed":
        enqueue(fetch_audio, bot_id)
    elif name == "bot.done":
        mark_status(bot_id, "done")
    # Ignore events you do not handle. Reply fast, do the work in a queue.
    return "", 200

Reply with a 2xx quickly and process the event afterwards. A per-bot callback_url is not signed, so use an unguessable path. If you register a workspace webhook endpoint in the dashboard instead, each delivery carries an X-MeetStream-Signature header (an HMAC-SHA256 of the raw body) that you can verify. Post-call events such as bot.done and transcription.processed are retried if your endpoint is briefly down; in-meeting events get one attempt.

If the bot never reaches bot.inmeeting, the ending's bot_event and message tell you why. The companion guide, why a meeting bot fails to join, maps each one to a fix.

Step 3: fetch the transcript and audio after the call

After the bot leaves, audio, video and transcript processing run in parallel and finish in any order. Act on each artifact's own event:

  • transcription.processed: call GET /api/v1/bots/{bot_id}/get_transcript, or GET /api/v1/transcript/{transcript_id}/get_transcript with the ID from Step 1.
  • audio.processed: call GET /api/v1/bots/{bot_id}/get_audio for the mixed recording.
  • video.processed: call GET /api/v1/bots/{bot_id}/get_video, if you set video_required: true.
  • bot.done: everything has finished. It means processing ended, not that every step succeeded, so check the artifact events.
def fetch_transcript(bot_id: str) -> list[tuple[str, str]]:
    resp = requests.get(f"{API}/bots/{bot_id}/get_transcript", headers=HEADERS, timeout=30)
    if resp.status_code == 202:
        raise RetryLater("transcript still processing")  # poll again in 10 to 30 seconds
    resp.raise_for_status()
    lines = []
    for seg in resp.json():
        if "participant" in seg:  # participant-keyed shape (the usual one)
            speaker = seg["participant"]["name"]
            text = " ".join(w["text"] for w in seg["words"])
        else:                     # older shape: {speaker, transcript, start_time, end_time, words}
            speaker, text = seg["speaker"], seg["transcript"]
        lines.append((speaker, text))
    return lines


def fetch_audio(bot_id: str) -> str:
    resp = requests.get(f"{API}/bots/{bot_id}/get_audio", headers=HEADERS, timeout=30)
    if resp.status_code == 202:
        raise RetryLater("audio still processing")
    resp.raise_for_status()
    return resp.json()["audio_url"]  # presigned URL, valid for 1 hour

Media and transcript endpoints return 202 while the bot is still in the meeting or processing is still running, so treat 202 as "try again shortly". Download links are presigned and expire after one hour; call the endpoint again for a fresh link instead of storing it. Transcripts come back as segments keyed by participant: the speaker is participant.name and the text is the joined words[].text.

For one audio file per speaker, add "audio_separate_streams": true to the create request and fetch the files from GET /api/v1/bots/{bot_id}/get_audio_streams. See recording each participant separately.

Step 4: stream live transcripts and audio during the call

A post-call transcript arrives minutes after the meeting. For captions, live coaching or an agent that reacts in the call, take the data while people talk. There are two options, and both use the same create_bot request on all three platforms.

Live transcripts to a webhook

Set live_transcription_required.webhook_url and one streaming provider. The two go together: a streaming provider without the webhook URL is rejected with 400.

{
  "meeting_link": "https://zoom.us/j/81234567890?pwd=AbCdEf123",
  "bot_name": "Notetaker",
  "live_transcription_required": {
    "webhook_url": "https://your-app.example.com/live-transcript"
  },
  "recording_config": {
    "transcript": {
      "provider": { "meetstream_streaming": { "transcription_mode": "sentence" } }
    }
  }
}
@app.post("/live-transcript")
def live_transcript():
    msg = request.get_json(force=True)
    # sentence mode: one finished phrase per POST
    push_to_ui(msg["bot_id"], msg.get("speakerName"), msg.get("transcript"))
    return "", 200

Each POST carries bot_id, speakerName, speakerId, timestamp and transcript. transcription_mode sets the granularity: raw (everything the provider returns, interim results included), word_level (new words only) or sentence (one finished phrase per POST). One streaming provider runs per bot, and you can add a post-call provider in the same request if you also want a clean transcript afterwards. Speaker names are exact on Zoom, where each speaker's audio is transcribed on its own; on Google Meet and Teams they are the active or dominant speaker when the phrase was spoken.

Live audio over a WebSocket

To run your own speech-to-text or send audio to a voice model, set live_audio_required.websocket_url to a WebSocket server you host. The bot connects to it as a client, sends a JSON ready message with the bot_id, then streams binary frames until it leaves.

{
  "meeting_link": "https://meet.google.com/abc-defg-hij",
  "bot_name": "Notetaker",
  "live_audio_required": { "websocket_url": "wss://your-app.example.com/audio" }
}

Each frame is length-prefixed: a type byte, the speaker ID, the speaker name, then raw PCM16 little-endian samples. Read byte 0 of every frame. Type 0x01 is mono at 48 kHz. Type 0x04 carries its sample rate and channel count in the header; Zoom sends 0x04 frames at 32 kHz, and Google Meet can send both types in the same call. A decoder that assumes one layout per platform gets unusable audio.

# pip install websockets
import asyncio
import json

from websockets.asyncio.server import serve


def decode_frame(data: bytes):
    """Return (speaker_id, speaker_name, sample_rate, pcm) or None."""
    if len(data) < 5:
        return None
    if data[0] == 0x01:    # PCM16 mono at 48 kHz, no format header
        rate, off = 48000, 1
    elif data[0] == 0x04:  # sample rate (uint32 LE) and channel count in the header
        rate, off = int.from_bytes(data[1:5], "little"), 6
    else:
        return None        # skip unknown frame types
    n = int.from_bytes(data[off:off + 2], "little"); off += 2
    speaker_id = data[off:off + n].decode("utf-8", "replace"); off += n
    m = int.from_bytes(data[off:off + 2], "little"); off += 2
    speaker_name = data[off:off + m].decode("utf-8", "replace"); off += m
    return speaker_id, speaker_name, rate, data[off:]


async def handler(ws):
    hello = json.loads(await ws.recv())  # {"type": "ready", "bot_id": "..."}
    async for msg in ws:
        if isinstance(msg, bytes):
            frame = decode_frame(msg)
            if frame:
                speaker_id, speaker_name, rate, pcm = frame
                await feed_model(hello["bot_id"], speaker_name, rate, pcm)


async def main():
    async with serve(handler, "0.0.0.0", 8765) as server:
        await server.serve_forever()

asyncio.run(main())

The socket closes with code 1000 when the bot leaves. For a full bridge to OpenAI Realtime or Gemini Live, including resampling and speaking back into the call, see streaming meeting audio to an LLM and the real-time audio and transcript API page.

How the bot joins Zoom

Zoom is the one platform where every bot needs setup first. MeetStream bots join Zoom through your own Zoom app and the Zoom Meeting SDK, with an OBF or ZAK token for meetings outside your app's Zoom account. That is the way Zoom asks Meeting SDK apps to join meetings since March 2, 2026.

  1. In the Zoom App Marketplace, create a General app, turn on Meeting SDK under Features > Embed, and copy the Client ID and Client Secret (walkthrough).
  2. In the MeetStream dashboard, open Integrations > Zoom and save both values.
  3. Send a Zoom /j/ invite link to create_bot. Keep the ?pwd= passcode exactly as Zoom generated it; there is no separate passcode field.

Which meetings your app can join is Zoom's decision:

Meeting is hosted byApp not yet reviewed by ZoomApp reviewed by Zoom
The Zoom account that owns your appGuest, ZAK or OBF joinGuest, ZAK or OBF join
Any other Zoom accountCannot joinZAK or OBF join required

You choose the join mode with the zoom object on create_bot:

zoom objectJoin modeUse it for
Omitted or {}Guest, with bot_name and no Zoom user identityMeetings hosted by your app's own account
{"zak_url": "https://..."}Signed in as the Zoom user whose ZAK your server returnsMeetings that admit only signed-in users, or a dedicated service account
{"obf_url": "https://..."}On behalf of a Zoom user who authorized your app and is already in the meetingNotetakers that join the meetings your users attend
{
  "meeting_link": "https://zoom.us/j/81234567890?pwd=AbCdEf123",
  "bot_name": "Notetaker",
  "video_required": false,
  "zoom": {
    "use_own_app": true,
    "obf_url": "https://api.example.com/zoom/obf?user_id=alice&auth=YOUR_URL_SECRET"
  }
}

MeetStream does not store your users' Zoom OAuth tokens. You run Zoom OAuth on your server and host the token URL. At join time the bot calls it (adding meeting_number for OBF, so do not put it on the URL yourself) and joins with the token you return. MeetStream sends no authentication header to that URL, so put a secret in the URL and treat the whole URL as a credential. OBF tokens are short-lived and single-use: mint a new one on every call. If the URL fails, the bot does not fall back to a guest join; it ends with Error: Failed to join meeting: OBF token is required but could not be fetched (or the ZAK equivalent).

Two Zoom behaviors to plan for:

  • The OBF user must be in the meeting. Ask that user to join before you create the bot. When that user leaves, Zoom ends the bot's session too.
  • Guest joins ask the host for recording permission. When the bot cannot record yet, it asks once and waits up to automatic_leave.recording_permission_denied_timeout (default 600 seconds). You then get bot.recording_permission_allowed or bot.recording_permission_denied before bot.recording. A denial or no answer makes the bot leave.

The Zoom authenticated bots guide has a complete token server, and the Zoom meeting bot API page and Zoom integration page cover the rest. To record Zoom without a bot in the participant list, MeetStream also supports Zoom RTMS, which also runs through your Zoom app.

What changes on Google Meet and Teams

Google Meet and Teams guest bots need no platform app: send the link and the bot joins as a guest under bot_name. What you plan for is admission. A guest bot usually asks to join and waits until someone admits it, up to automatic_leave.waiting_room_timeout: 60 to 600 seconds on Google Meet (default 600) and 60 to 1800 seconds on Teams (default 1200). For meetings that admit only signed-in or invited people, MeetStream supports Google signed-in bots and Teams signed-in bots. Neither platform asks the host for recording permission: recording starts once the bot is in.

Joining every meeting on a calendar

To send bots without a call per meeting, connect Google Calendar or Outlook through the calendar API and turn on auto-join. Bots are dispatched about two minutes before each event starts. For one-off future meetings, add join_at (ISO 8601, up to 90 days ahead) to create_bot; the bot reports bot.scheduled first. See scheduling bots.

Frequently asked questions

Can one API join Zoom, Google Meet and Microsoft Teams calls?

Yes. MeetStream reads the platform from the meeting_link, so the same create_bot request and the same webhooks work on all three. The platform differences that remain are admission rules, Zoom's host recording permission and how well each platform isolates speakers.

How do I get the transcript and audio after the call?

Set a post-call provider under recording_config.transcript.provider when you create the bot. When the transcription.processed webhook arrives, call GET /api/v1/bots/{bot_id}/get_transcript. After audio.processed, call GET /api/v1/bots/{bot_id}/get_audio for a presigned audio URL that is valid for one hour.

Can I stream live transcripts without separate Zoom and Teams integrations?

Yes. Add live_transcription_required.webhook_url and one streaming provider, such as meetstream_streaming, to the same create_bot request. Each result is POSTed to your webhook with speakerName and transcript on Zoom, Google Meet and Teams. For raw audio, set live_audio_required.websocket_url instead.

What does a Zoom bot need before it can join?

Your own Zoom Meeting SDK app. Save its Client ID and Client Secret under Integrations > Zoom in the MeetStream dashboard. For meetings outside your app's own Zoom account, Zoom also requires a reviewed app and an OBF or ZAK token, which you pass as zoom.obf_url or zoom.zak_url.

You might also like

API Guides

Why a Meeting Bot Fails to Join, and How to Fix It

A meeting bot that never gets in, a recording with no audio and a transcript that swaps speakers each leave a specific status, error code or setting behind. A lookup table of MeetStream status and error codes on Zoom, Google Meet and Teams, with the cause and fix for each.

\n\n\n\n\n\n\n