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

# Get all lists

> Retrieve a paginated list of imported lists for the authenticated user, optionally filtered by entity type.



## OpenAPI

````yaml GET /lists
openapi: 3.1.0
info:
  title: OpenAPI Lonescale
  description: A sample API for Lonescale
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://public-api.lonescale.com
security:
  - ApiKeyAuth: []
paths:
  /lists:
    get:
      description: >-
        Retrieve a paginated list of imported lists for the authenticated user,
        optionally filtered by entity type.
      parameters:
        - name: page
          in: query
          description: Page number (10 items per page, starts at 0).
          schema:
            type: integer
            default: 0
        - name: entity
          in: query
          description: Filter lists by entity type.
          schema:
            type: string
            enum:
              - COMPANY
              - PEOPLE
      responses:
        '200':
          description: Paginated list of imported lists
          content:
            application/json:
              schema:
                type: object
                properties:
                  list:
                    type: array
                    items:
                      $ref: '#/components/schemas/List'
                  hasNextPage:
                    type: boolean
                  total:
                    type: integer
        '401':
          description: Invalid or missing authentication credentials
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthError'
              example:
                message: Invalid API Key
                error: Unauthorized
                statusCode: 401
components:
  schemas:
    List:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Unique identifier of the list.
        name:
          type: string
          description: Name of the list.
        entity:
          type: string
          enum:
            - COMPANY
            - PEOPLE
          description: The entity type of the list.
        description:
          type: string
          description: Description of the list.
        organizationId:
          type: string
          description: The organization this list belongs to.
        createdAt:
          type: string
          format: date-time
          description: Creation timestamp.
        updatedAt:
          type: string
          format: date-time
          description: Last update timestamp.
    AuthError:
      required:
        - message
        - error
        - statusCode
      type: object
      properties:
        message:
          type: string
          example: Invalid API Key
        error:
          type: string
          example: Unauthorized
        statusCode:
          type: integer
          example: 401
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Provide your API key in the x-api-key header.

````