> ## Documentation Index
> Fetch the complete documentation index at: https://lemonslice.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Leave third party meeting platform

> Remove your LemonSlice avatar from a third party meeting platform (Zoom, Google Meet, Microsoft Teams, or Webex)

<Tip>
  This feature works only with LiveKit-based self-managed sessions. We recommend using our [LiveKit plugin](/livekit) rather than calling this endpoint directly.
</Tip>

<Note>
  This endpoint should only be used to leave third party meeting platforms. Do not use it for regular LiveKit sessions.
</Note>



## OpenAPI

````yaml /openapi.json post /liveai/sessions/{session_id}/leave-meeting
openapi: 3.1.0
info:
  title: LemonSlice
  description: An API that gives access to a LemonSlice agent via a Daily room.
  license:
    name: MIT
    identifier: MIT
  version: 1.0.0
servers:
  - url: https://lemonslice.com/api
security:
  - apiKeyAuth: []
paths:
  /liveai/sessions/{session_id}/leave-meeting:
    post:
      summary: Leave third party meeting platform
      description: >-
        Remove your LemonSlice avatar from a third party meeting platform (Zoom,
        Google Meet, Microsoft Teams, or Webex)


        <Tip>
          This feature works only with LiveKit-based self-managed sessions. We recommend using our [LiveKit plugin](/livekit) rather than calling this endpoint directly.
        </Tip>


        <Note>
          This endpoint should only be used to leave third party meeting platforms. Do not use it for regular LiveKit sessions.
        </Note>
      operationId: leaveMeeting
      parameters:
        - name: session_id
          in: path
          description: >-
            The ID of the LemonSlice session associated with the third party
            meeting platform.
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LeaveMeetingInput'
            example:
              meeting_bot_id: meeting-bot-abc123
      responses:
        '200':
          description: Avatar removed from the third party meeting platform.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LeaveMeetingResponse'
              example:
                status: left
        '400':
          description: Invalid request (e.g. missing meeting_bot_id)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                detail: meeting_bot_id is required
        '401':
          description: Authentication denied
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                detail: Invalid API key
        '500':
          description: Unexpected error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServerError'
              example:
                detail: Failed to leave meeting
        '502':
          description: Could not leave the meeting
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                detail: Could not leave the meeting.
        '503':
          description: Meeting service unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                detail: Meeting service is not configured
        '504':
          description: Request timed out
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                detail: Request timed out
components:
  schemas:
    LeaveMeetingInput:
      type: object
      required:
        - meeting_bot_id
      properties:
        meeting_bot_id:
          type: string
          description: >-
            The third party meeting platform ID returned by the join-meeting
            endpoint.
          example: meeting-bot-abc123
    LeaveMeetingResponse:
      type: object
      required:
        - status
      properties:
        status:
          type: string
          const: left
          description: >-
            Confirmation that the avatar has left the third party meeting
            platform.
    Error:
      type: object
      properties:
        detail:
          type: string
    ServerError:
      type: object
      properties:
        detail:
          type: string
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: Your LemonSlice API token.

````