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

# Retrieve all lists

> Returns the lists of your account (or of every member of your workspace when you authenticate with a workspace key), newest first, one page at a time.



## OpenAPI

````yaml /api-reference/specs/list.json get /lists
openapi: 3.0.1
info:
  title: Pipecorn List API
  description: Pipecorn List API
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://app.pipecorn.com/api/v2/
security:
  - defaultApiKey: []
paths:
  /lists:
    get:
      summary: Retrieve all lists
      description: >-
        Returns the lists of your account (or of every member of your workspace
        when you authenticate with a workspace key), newest first, one page at a
        time.
      parameters:
        - $ref: '#/components/parameters/Page'
        - $ref: '#/components/parameters/PerPage'
        - $ref: '#/components/parameters/Cursor'
      responses:
        '200':
          description: A page of lists
          content:
            application/json:
              schema:
                type: object
                required:
                  - lists
                  - pagination
                properties:
                  lists:
                    type: array
                    items:
                      $ref: '#/components/schemas/ListSummary'
                  pagination:
                    $ref: '#/components/schemas/Pagination'
              example:
                lists:
                  - name: Tech Companies 2024
                    id: 8e1dcba0-f0bb-4071-99fc-f18ba6559ccc
                    linkedin_id: '7123456789012345678'
                    type: companies
                    status: FINISHED
                    created_at: '2024-01-01T00:00:00Z'
                    updated_at: '2024-01-02T00:00:00Z'
                pagination:
                  page: 1
                  per_page: 100
                  total_count: 1
                  has_more: false
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                missing_key:
                  summary: No API key present
                  value:
                    error: No API key present
                invalid_key:
                  summary: Invalid API key
                  value:
                    error: Invalid API key
        '429':
          description: Rate limit exceeded (your plan's per-minute limit)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: Rate limit exceeded. Please wait before retrying.
          headers:
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            Retry-After:
              $ref: '#/components/headers/Retry-After'
components:
  parameters:
    Page:
      name: page
      in: query
      required: false
      description: >-
        Page number, starting at 1. Prefer `cursor`: pages shift when rows are
        added between two calls.
      schema:
        type: integer
        minimum: 1
        default: 1
    PerPage:
      name: per_page
      in: query
      required: false
      description: Rows per page, at most 500.
      schema:
        type: integer
        minimum: 1
        maximum: 500
        default: 100
    Cursor:
      name: cursor
      in: query
      required: false
      description: >-
        The `pagination.next_cursor` of the previous page, passed back
        unchanged. Returns the rows that follow it, even if rows were added in
        between. Omit it for the first page.
      schema:
        type: string
        example: WyIyMDI2LTEwLTE3VDEwOjAwOjAwLjAwMDAwMFoiLDQyXQ
  schemas:
    ListSummary:
      type: object
      properties:
        name:
          type: string
          description: Name of the list
          example: Tech Companies 2024
        id:
          type: string
          format: uuid
          description: UUID of the list
          example: 8e1dcba0-f0bb-4071-99fc-f18ba6559ccc
        linkedin_id:
          type: string
          description: >-
            ID of the LinkedIn Sales Navigator list, as a string. Empty when the
            list was created with `live: false`
          example: '7123456789012345678'
        type:
          type: string
          enum:
            - companies
            - leads
          description: What the list contains
          example: companies
        status:
          type: string
          enum:
            - NOT_STARTED
            - ONGOING
            - FINISHED
            - ERROR
            - NOT_ENOUGH_CREDITS
            - FORBIDDEN
            - LIMIT_REACHED
            - UNAUTHORIZED
            - SCHEDULED
          description: Status of the list import
          example: FINISHED
        created_at:
          type: string
          format: date-time
          example: '2024-01-01T00:00:00Z'
        updated_at:
          type: string
          format: date-time
          example: '2024-01-02T00:00:00Z'
    Pagination:
      type: object
      required:
        - per_page
        - total_count
        - has_more
      properties:
        page:
          type: integer
          description: Current page number. Absent when the request used `cursor`.
          example: 1
        per_page:
          type: integer
          description: Rows per page.
          example: 100
        total_count:
          type: integer
          description: Rows across all pages.
          example: 245
        has_more:
          type: boolean
          description: Whether another page follows.
          example: true
        next_cursor:
          type: string
          description: Pass it as `cursor` to get the next page. Absent on the last page.
          example: WyIyMDI2LTEwLTE3VDEwOjAwOjAwLjAwMDAwMFoiLDQyXQ
    Error:
      required:
        - error
      type: object
      properties:
        error:
          description: >-
            Human-readable error message. A few validation errors return a list
            of messages instead of a single string.
          oneOf:
            - type: string
            - type: array
              items:
                type: string
        message:
          type: string
          description: >-
            Longer explanation, sent by validators that add context. Such errors
            may also carry extra top-level keys like `valid_values` or
            `example`.
        details:
          type: string
          description: >-
            Parser message, sent with `"Invalid JSON format in request body"`
            when the request body is not valid JSON.
  headers:
    RateLimit-Limit:
      description: >-
        Requests allowed per minute on your plan for this group of endpoints.
        Absent for unlimited accounts and on endpoints exempt from the plan
        limit.
      schema:
        type: integer
        example: 100
    RateLimit-Remaining:
      description: Requests left in the current one-minute window.
      schema:
        type: integer
        example: 97
    RateLimit-Reset:
      description: >-
        Seconds until the current window resets and `RateLimit-Remaining` is
        back to `RateLimit-Limit`.
      schema:
        type: integer
        example: 42
    Retry-After:
      description: >-
        Seconds to wait before retrying. Sent when the plan limit or a request
        still in progress caused the error.
      schema:
        type: integer
        example: 42
  securitySchemes:
    defaultApiKey:
      type: apiKey
      in: header
      description: Your API key
      name: X-API-KEY

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.