API v2

Controlling a Bot

Send chat messages, pause and resume recording, update metadata and retry transcription for a bot that is already running or finished

Once a bot is created you can keep steering it: post in the meeting chat, pause and resume the recording, change the extra metadata it carries, and re-run transcription after the meeting. All endpoints on this page take the bot's bot_id in the path and use the same x-meeting-baas-api-key header as the rest of the API.

ActionEndpointBot must be
Send a chat messagePOST /v2/bots/{bot_id}/send-chat-messageIn the meeting
Pause recordingPOST /v2/bots/{bot_id}/pause-recordingRecording
Resume recordingPOST /v2/bots/{bot_id}/resume-recordingPaused
Update metadataPATCH /v2/bots/{bot_id}/update-configAny status
Retry transcriptionPOST /v2/bots/{bot_id}/retranscribeFinished, with audio

To make a bot leave the meeting, see Removing a bot.

Send a chat message

Post a message in the meeting chat as the bot. Works on Google Meet, Microsoft Teams and Zoom.

curl -X POST "https://api.meetingbaas.com/v2/bots/BOT-ID/send-chat-message" \
     -H "Content-Type: application/json" \
     -H "x-meeting-baas-api-key: YOUR-API-KEY" \
     -d '{ "message": "Recording has started. Reply STOP to pause it." }'

Rules:

  • message is required, cannot be empty or whitespace-only, and is limited to 4096 characters.
  • The bot must be in the meeting: status in_call_not_recording, in_call_recording, recording_paused or recording_resumed. Any other status returns 409 (FST_ERR_BOT_STATUS).
  • If the host or the meeting policy has disabled chat, the request returns 422 (FST_ERR_CHAT_DISABLED). This is detected on Zoom and Microsoft Teams. On Google Meet delivery is best-effort: the request can succeed even when the host restricts chat for external participants.
  • If the bot cannot be reached or the platform rejects the message, the request returns 500 (FST_ERR_SEND_CHAT_MESSAGE_FAILED).

Messages the bot sends are stored in the chat messages artifact next to the messages it received. They do not trigger the bot.chat_message webhook, which only fires for messages from participants.

To know up front whether chat works in a meeting, listen for the bot.chat_status webhook. It is sent once shortly after the bot joins and tells you if the bot can send and receive chat.

To post a single message when the bot joins, you do not need this endpoint: set entry_message when creating the bot.

Pause and resume recording

Pause the recording while the bot stays in the meeting, then resume it later. You can pause and resume as many times as needed in one meeting.

# Pause
curl -X POST "https://api.meetingbaas.com/v2/bots/BOT-ID/pause-recording" \
     -H "Content-Type: application/json" \
     -H "x-meeting-baas-api-key: YOUR-API-KEY" \
     -d '{ "chat_message": "Recording has been paused" }'

# Resume
curl -X POST "https://api.meetingbaas.com/v2/bots/BOT-ID/resume-recording" \
     -H "Content-Type: application/json" \
     -H "x-meeting-baas-api-key: YOUR-API-KEY" \
     -d '{ "chat_message": "Recording has resumed" }'

chat_message is optional on both endpoints. When set, the bot posts it in the meeting chat so participants know the recording state changed.

What a pause does:

  • The paused portion is left out of the final recording, transcript and diarization.
  • Timestamps in the final artifacts are continuous: the paused gap is collapsed, not represented as silence.
  • If streaming output is enabled, the stream stops forwarding audio until you resume.

Status requirements:

EndpointAllowed statusesStatus after the call
pause-recordingin_call_recording, recording_resumedrecording_paused
resume-recordingrecording_pausedrecording_resumed

A bot that is already paused, still joining, or finished returns 409. Each change is also delivered as a bot.status_change webhook.

Update extra metadata

Change the extra object attached to a bot, even while it is running or after it has finished. Every webhook and API response sent after the update carries the new value.

curl -X PATCH "https://api.meetingbaas.com/v2/bots/BOT-ID/update-config" \
     -H "Content-Type: application/json" \
     -H "x-meeting-baas-api-key: YOUR-API-KEY" \
     -d '{ "extra": { "session_id": "xyz", "order_id": "456" } }'

The update is a shallow merge:

  • New keys are added.
  • Existing keys are overwritten.
  • Keys you leave out are kept.
  • "extra": null clears all metadata.

For example, a bot with { "customer_id": "123", "session_id": "abc" } updated with the request above ends up with { "customer_id": "123", "session_id": "xyz", "order_id": "456" }.

extra is the only field this endpoint changes today. To change the configuration of a bot that has not joined yet, update the scheduled bot or the calendar bot instead.

Retry transcription

Run transcription again for a bot that has an audio recording, for example after a TRANSCRIPTION_FAILED error or to try another provider.

# Retry with the bot's original transcription settings
curl -X POST "https://api.meetingbaas.com/v2/bots/BOT-ID/retranscribe" \
     -H "x-meeting-baas-api-key: YOUR-API-KEY"

# Retry with a different provider
curl -X POST "https://api.meetingbaas.com/v2/bots/BOT-ID/retranscribe" \
     -H "Content-Type: application/json" \
     -H "x-meeting-baas-api-key: YOUR-API-KEY" \
     -d '{ "transcription": { "provider": "deepgram" } }'

The body is optional. Without it, the bot's original transcription configuration is reused. With a transcription object you can override provider (gladia, deepgram, assemblyai, speechmatics or soniox), api_key, region and custom_params, the same options described in Transcription.

The request returns 409 when the bot's status does not allow it.

Error responses

StatusCodeMeaning
404The bot does not exist or does not belong to your team.
409FST_ERR_BOT_STATUSThe bot's current status does not allow this action.
422FST_ERR_CHAT_DISABLEDChat is disabled in this meeting (send chat message only).
500FST_ERR_SEND_CHAT_MESSAGE_FAILEDThe message could not be delivered to the meeting.

Reference

On this page