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

# List the stored tasks you can read



## OpenAPI

````yaml https://api.primeintellect.ai/openapi.json get /api/v1/hub/tasks
openapi: 3.1.0
info:
  title: PI API
  version: 0.1.0
servers:
  - url: https://api.primeintellect.ai
security: []
paths:
  /api/v1/hub/tasks:
    get:
      tags:
        - Hub
      summary: List the stored tasks you can read
      operationId: hub_list_tasks
      parameters:
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 1000
            minimum: 1
            default: 50
            title: Limit
        - name: cursor
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Opaque `next_cursor` from the previous page
            title: Cursor
          description: Opaque `next_cursor` from the previous page
        - name: owner
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                maxLength: 255
                minLength: 1
              - type: 'null'
            description: Only this user's or team's
            title: Owner
          description: Only this user's or team's
        - name: label
          in: query
          required: false
          schema:
            anyOf:
              - type: array
                items:
                  type: string
                  maxLength: 200
                  minLength: 1
                  pattern: ^[^\x00-\x1f\x7f]+$
                maxItems: 20
              - type: 'null'
            description: Only tasks that have every one of these
            title: Label
          description: Only tasks that have every one of these
        - name: sort
          in: query
          required: false
          schema:
            enum:
              - newest
              - name
            type: string
            description: '`newest`: last created first; `name`: by name'
            default: newest
            title: Sort
          description: '`newest`: last created first; `name`: by name'
        - name: archived
          in: query
          required: false
          schema:
            type: boolean
            description: List the archived tasks instead of the live ones
            default: false
            title: Archived
          description: List the archived tasks instead of the live ones
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Page_TaskSummary_'
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Not Found
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Conflict
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Unprocessable Entity
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Too Many Requests
      security:
        - HTTPBearer: []
components:
  schemas:
    Page_TaskSummary_:
      properties:
        items:
          items:
            $ref: '#/components/schemas/TaskSummary'
          type: array
          title: Items
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Cursor
          description: Pass as `cursor` to fetch the next page; null on the last
        total:
          anyOf:
            - type: integer
            - type: 'null'
          title: Total
          description: Exact for small sets, an estimate for large ones
      type: object
      required:
        - items
      title: Page[TaskSummary]
    ErrorEnvelope:
      properties:
        error:
          $ref: '#/components/schemas/ErrorBody'
      type: object
      required:
        - error
      title: ErrorEnvelope
    TaskSummary:
      properties:
        id:
          type: string
          title: Id
        owner:
          type: string
          title: Owner
        name:
          type: string
          title: Name
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        labels:
          items:
            type: string
          type: array
          title: Labels
        task_type:
          type: string
          title: Task Type
        latest_version:
          type: integer
          title: Latest Version
        archived_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Archived At
          description: 'Set while the task is archived: it takes no new versions'
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
      type: object
      required:
        - id
        - owner
        - name
        - description
        - labels
        - task_type
        - latest_version
        - archived_at
        - created_at
        - updated_at
      title: TaskSummary
    ErrorBody:
      properties:
        code:
          type: string
          title: Code
          description: Stable, machine-readable error code
        message:
          type: string
          title: Message
        details:
          type: object
          title: Details
      type: object
      required:
        - code
        - message
      title: ErrorBody
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````