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

# Get all sessions

> List sessions (contacts) of the project. Paginated: `limit` defaults to 50 and is capped at 100 per page,
and paging cannot go past the first 10,000 results. Optional query parameters: `type` (`users` = has
userId, `guests` = no userId, `unsubscribed`, or `organisations`; the latter returns aggregated
organisations instead of sessions), `companyId` (only sessions of this company), `withFeedback` (only
sessions with at least one ticket), `contactViewId` (returns the sessions matching a saved contact view;
404 when the view does not exist), plus `skip` and `sort`.



## OpenAPI

````yaml https://api.gleap.io/api-docs.json get /sessions
openapi: 3.0.0
info:
  title: gleap-server
  version: 14.0.0
  contact: {}
servers:
  - url: https://api.gleap.io/v3
security: []
paths:
  /sessions:
    get:
      tags:
        - Session
      summary: Get all sessions
      description: >-
        List sessions (contacts) of the project. Paginated: `limit` defaults to
        50 and is capped at 100 per page,

        and paging cannot go past the first 10,000 results. Optional query
        parameters: `type` (`users` = has

        userId, `guests` = no userId, `unsubscribed`, or `organisations`; the
        latter returns aggregated

        organisations instead of sessions), `companyId` (only sessions of this
        company), `withFeedback` (only

        sessions with at least one ticket), `contactViewId` (returns the
        sessions matching a saved contact view;

        404 when the view does not exist), plus `skip` and `sort`.
      operationId: GetSessions
      parameters:
        - in: header
          name: project
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Ok
          content:
            application/json:
              schema:
                items: {}
                type: array
      security:
        - jwt: []
components:
  securitySchemes:
    jwt:
      type: http
      scheme: bearer
      bearerFormat: JWT

````