Leave a meeting

​

Causes the bot to leave the meeting.

Path Parameters

  • Bot ID

Headers

  • API key for authentication

  • Should always be application/json

Responses

  • application/json
  • Bot is not in a valid state to leave the meeting

  • Bot not found

Request Example for post/api/v1/bots/{object_id}/leave
curl https://app.attendee.dev/api/v1/bots/bot_xxxxxxxxxxx/leave \
  --request POST \
  --header 'Authorization: Token YOUR_API_KEY_HERE' \
  --header 'Content-Type: application/json'
Leaving Bot

Example response when requesting a bot to leave

{
  "id": "bot_weIAju4OXNZkDTpZ",
  "meeting_url": "https://zoom.us/j/123?pwd=456",
  "state": "leaving",
  "events": [
    {
      "type": "join_requested",
      "created_at": "2024-01-18T12:34:56Z"
    },
    {
      "type": "joined_meeting",
      "created_at": "2024-01-18T12:35:00Z"
    },
    {
      "type": "leave_requested",
      "created_at": "2024-01-18T13:34:56Z"
    }
  ],
  "transcription_state": "in_progress",
  "recording_state": "in_progress"
}