> ## 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.

# List hosted sessions

> Returns paginated hosted sessions for the authenticated account.



## OpenAPI

````yaml /openapi.json get /liveai/rooms
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/rooms:
    get:
      summary: List hosted sessions
      description: Returns paginated hosted sessions for the authenticated account.
      operationId: listRooms
      parameters:
        - name: page
          in: query
          description: Page number (1-indexed).
          required: false
          schema:
            type: integer
            minimum: 1
            default: 1
        - name: limit
          in: query
          description: Number of rooms per page.
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 25
      responses:
        '200':
          description: Rooms retrieved successfully.
          content:
            application/json:
              schema:
                type: object
                properties:
                  rooms:
                    type: array
                    items:
                      type: object
                      properties:
                        agent_id:
                          type: string
                        session_id:
                          type: string
                        created_at:
                          type: string
                          format: date-time
                        session_status:
                          type: string
                        credits_used:
                          type:
                            - number
                            - 'null'
                      required:
                        - agent_id
                        - session_id
                        - created_at
                        - session_status
                  pagination:
                    type: object
                    properties:
                      page:
                        type: integer
                      limit:
                        type: integer
                      total:
                        type: integer
                      total_pages:
                        type: integer
                      has_more:
                        type: boolean
                    required:
                      - page
                      - limit
                      - total
                      - total_pages
                      - has_more
                required:
                  - rooms
                  - pagination
              example:
                rooms:
                  - agent_id: agent_abc123
                    session_id: 3f7c2b91-9e1f-4a6a-8e9d-2c7c3e7d9b5a
                    created_at: '2026-04-29T20:34:56.000Z'
                    session_status: COMPLETED
                    credits_used: 10.5
                pagination:
                  page: 1
                  limit: 25
                  total: 1
                  total_pages: 1
                  has_more: false
        '400':
          description: Invalid pagination request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                detail: Requested page is too deep. Maximum offset is 1000.
        '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: Internal server error
components:
  schemas:
    Error:
      type: object
      properties:
        detail:
          type: string
          example: Agent not found
    ServerError:
      type: object
      properties:
        detail:
          type: string
          example: Internal server error
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: Your LemonSlice API token.

````