Skip to navigation

Create Bot

View as Markdown

To create a meeting bot, send POST https://api.meetstream.ai/api/v1/bots/create_bot with your API key in the Authorization: Token <YOUR_API_KEY> header and the meeting URL in meeting_link. MeetStream reads the platform (Zoom, Google Meet or Microsoft Teams) from the link and returns 201 with a bot_id, which you then use to check the bot’s status and to get its recording and transcript.

Use the dropdown above the code panel to see example payloads for common configurations. For a step-by-step walkthrough, see Create your first bot.

How do I add a bot to a Zoom meeting? Save your Zoom app’s Client ID and Client Secret under Integrations > Zoom in the dashboard, then send the Zoom invite link as meeting_link. The bot joins through your own Zoom app. For a meeting outside your app’s Zoom account, also send zoom.obf_url or zoom.zak_url. See Zoom and Zoom authenticated bots.

How do I send the bot later instead of now? Add join_at with an ISO 8601 time up to 90 days ahead. The response then has status: "Scheduled". See Scheduling bots.

Does the bot record video? Only when you send video_required: true. The default is false, an audio-only bot, and transcripts, diarization and speaker timelines work without video.

How do I stop a retry from creating a second bot? Send an Idempotency-Key header, or a deduplication_key in the body. See Deduplication & idempotency keys.

Related: MeetStream Meeting Bot API and the Create Bot Payload Reference.

Authentication

AuthorizationToken

Format: Token <your_api_key>

Headers

Idempotency-KeystringOptional

Optional retry key (use a fresh UUID per logical create). If a bot was already created for your account with this key, the API skips creation and replays that bot with HTTP 507. Keys do not expire. A failed create is not cached, so a retry after a failure runs fresh.

Request

This endpoint expects an object.
bot_namestringOptionalDefaults to MeetStream

The display name the bot uses in the meeting. Defaults to MeetStream. On some platforms only letters, numbers, spaces and - ' . _ @ are accepted.

storage_idstringOptionalformat: "^[A-Za-z0-9_-]{1,80}$"1-80 characters

The ID of a storage destination that you created in the dashboard: 1 to 80 letters, numbers, underscores or hyphens. Omit it to use your workspace’s default destination, or MeetStream storage when you have none. An ID in the wrong format, an unknown ID, or a destination that fails its access check returns 400. If the check cannot run, the request returns 503; retry it.

audio_requiredbooleanOptionalDefaults to true

Whether the bot records the mixed meeting audio. Must be true when audio_mixed_mp3 is true.

video_requiredbooleanOptionalDefaults to false

Whether the bot records meeting video. Defaults to false, so the bot records audio only. Send true to record video. Audio-only bots process faster and use less storage, and transcripts, diarization and speaker timelines all work without video. When video is on, set recording_config.video_layout to speaker_view to follow the active speaker. The default layout is grid_view.

audio_mixed_mp3booleanOptionalDefaults to false

Also produce an MP3 copy of the mixed meeting audio, returned as audio_mp3_url by Get Bot Audio. Requires audio_required: true. Can also be set inside recording_config; the top-level value wins when both are sent.

audio_separate_mp3booleanOptionalDefaults to false

Also produce MP3 copies of each per-participant audio segment, returned as download_url_mp3 by Get Audio Streams. Requires audio_separate_streams: true. Can also be set inside recording_config.

deduplication_keystringOptionalformat: "^[\x20-\x7E]+$"1-2000 characters

Your own logical key for this bot (printable ASCII, 1-2000 characters). It is bound permanently to the first bot created with it for your account. Sending the same key again returns that existing bot with HTTP 200 instead of creating a new one; sending it with a different meeting_link returns 409. Use the Idempotency-Key header instead for transport-level retries. See the Deduplication & Idempotency Keys guide.

initial_audioobjectOptional

A one-shot audio clip the bot plays into the meeting shortly after it is admitted. Google Meet and Microsoft Teams. A Zoom bot that joins through your Zoom app returns 400.

agent_config_paramsmap from strings to stringsOptional

Values for the template variables in the MIA agent’s system prompt, for this bot only. Keys are variable names; values must be strings or primitives (objects and arrays are rejected). Used with agent_config_id.

zoomobjectOptional

Optionally set use_own_app to true to require your connected Zoom app, or false to join without your app or credentials. When omitted or null, your app is used if connected or your Zoom credentials are saved; otherwise the bot joins without one. If Zoom refuses your app, the bot does not try again without it. Joining without your app is not available in every region: there, use_own_app false returns 400 Zoom bots are not available in this region right now, and an omitted use_own_app needs your app. For authenticated Zoom join, send exactly one of zak_url or obf_url, optionally with use_own_app true. Neither URL works with use_own_app false. MeetStream fetches your HTTPS mint URL at join time; your server owns OAuth and refresh tokens. Fetch failure does not fall back to a guest join. Both URLs together return 400. The deprecated fields use_zoom_obf and zoom_oauth_connection_user_id are rejected. See /guides/app-integrations/zoom-authenticated-bots.

google_meetobjectOptional

Join Google Meet signed in, as an account on a Google Workspace domain registered through the Google login endpoints. See /guides/app-integrations/google-signed-in-bots.

teamsobjectOptional

Join Microsoft Teams signed in, as a Microsoft 365 account on a domain registered through the Teams login endpoints. The bot shows that account’s display name and picture, so bot_name and bot_image_url are not applied. Each account runs one bot at a time. A teams block with a wrong type or a missing required field returns 400 with a message that names the field. Sending teams for a non-Teams link also returns 400. See /guides/app-integrations/teams-signed-in-bots.

audio_separate_streamsbooleanOptional
Enable separate audio streams feature.
video_separate_streamsbooleanOptionalDefaults to false

Record one video file for each participant, in addition to the composited meeting video. Off by default. Set it to true when you need one file for each participant. On Google Meet, video_separate_streams: true also needs video_required: true. Otherwise the request returns 400.

bot_messagestringOptional
An initial message for the bot to post in the meeting chat.
bot_image_urlstringOptional
URL for the bot's profile picture or avatar.
callback_urlstringOptional
A URL to receive webhook event callbacks.
join_atdatetimeOptional
ISO 8601 datetime to schedule the bot to join the meeting.
agent_config_idstringOptional

The ID of a MIA agent configuration. When you set it, MeetStream connects the bot to the hosted agent, so you do not need to send socket_connection_url or live_audio_required.

custom_attributesmap from strings to anyOptional

Arbitrary key-value metadata attached to the bot.

socket_connection_urlobjectOptional

WebSocket URL for two-way audio/data bridge connection.

live_audio_requiredobjectOptional
WebSocket URL to stream live audio output from the meeting.
live_video_requiredobjectOptional

Reserved outbound meeting-video configuration. Google Meet, Zoom and Teams meeting bots accept it but ignore it (no live video is sent, and the bot runs on the larger video tier). Only Zoom Meeting Direct Connect (RTMS) sessions stream live video.

bot_camera_streamobjectOptional

Inbound WebRTC video and optional audio published through the bot’s camera and microphone. Supported on Google Meet, Teams, and Zoom. Zoom does not allow agent_config_id with this field. Teams and Zoom require a public wss:// signaling URL. See the Bot Camera Streaming guide.

live_transcription_requiredobjectOptional
Webhook URL to receive live transcription events.
automatic_leaveobjectOptional
Configure how long the bot should remain in the meeting under different conditions before leaving automatically. All timeout values are specified in seconds and accept integer values only.
recording_configobjectOptional

Bot media is retained for 30 days (720 hours) by default, included in the base rate. Retention beyond 30 days is billed at $0.05 per GB per month. Set retention.hours lower to delete media sooner.

Response

Deduplication replay. A bot already exists for this deduplication_key and the same meeting_link; it is returned instead of creating a new one.

bot_idstringOptional
transcript_idstring or nullOptional

Set when a post-call transcription provider was configured; otherwise null.

meeting_urlstringOptional
statusstringOptional

Active for an immediate join, Scheduled when join_at was set. On a replay, the bot’s current status.

join_atdatetimeOptional
Present on scheduled bots only.
schedule_namestringOptional
Present on scheduled bots only.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error
507
Insufficient Storage Error