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

# List tasks

> List tasks in the request's project, newest first.



## OpenAPI

````yaml https://api.onkernel.com/spec.json get /tasks
openapi: 3.1.0
info:
  description: Developer tools and cloud infrastructure for AI agents to use web browsers
  title: Kernel API
  version: 0.1.0
servers:
  - description: API Server
    url: https://api.onkernel.com
security:
  - bearerAuth: []
tags:
  - description: Search the web and retrieve content for selected results.
    name: Search
  - description: Create and manage browser sessions.
    name: Browsers
  - description: Control mouse, keyboard, and screen on the browser instance.
    name: Browser Computer Controls
  - description: >-
      Execute Playwright code against the browser instance and manage the
      executors it runs in.
    name: Browser Playwright
  - description: Execute JavaScript in the browser instance's persistent Browser REPL.
    name: Browser REPL
  - description: Discover and invoke native page tools across the browser instance.
    name: Browser WebMCP
  - description: Read, write, and manage files on the browser instance.
    name: Browser Filesystem
  - description: Execute and manage processes on the browser instance.
    name: Browser Processes
  - description: Record and manage browser session video replays.
    name: Browser Replays
  - description: Stream logs from the browser instance.
    name: Browser Logs
  - description: >-
      Stream live telemetry events from a browser session, and manage the
      destinations sessions export them to.
    name: Browser Telemetry
  - description: Create, list, retrieve, and delete browser profiles.
    name: Profiles
  - description: Define tasks that agents work toward and link the browsers they use.
    name: Tasks
  - description: Discover report types and submit typed reports against tasks.
    name: Reports
  - description: Create and manage proxy configurations for routing browser traffic.
    name: Proxies
  - description: Create, list, retrieve, and delete browser extensions.
    name: Extensions
  - description: Create and manage browser pools for acquiring and releasing browsers.
    name: Browser Pools
  - description: Inspect the identity and authorization context for the current request.
    name: Authentication
  - description: >-
      Create and manage auth connections for automated credential capture and
      login.
    name: Managed Auth
  - description: Create and manage credentials for authentication.
    name: Credentials
  - description: Configure external credential providers like 1Password.
    name: Credential Providers
  - description: List applications and versions.
    name: Apps
  - description: Create and manage app deployments and stream deployment events.
    name: Deployments
  - description: Invoke actions and stream or query invocation status and events.
    name: Invocations
  - description: Read and manage organization-level limits.
    name: Organization
  - description: Create and manage projects for resource isolation within an organization.
    name: Projects
  - description: Create and manage API keys for organization and project-scoped access.
    name: API Keys
  - description: Read audit log records for the authenticated organization.
    name: Audit Logs
  - description: Resolve browser and proxy recommendations for bot-protected sites.
    name: Config Registry
paths:
  /tasks:
    get:
      tags:
        - Tasks
      summary: List tasks
      description: List tasks in the request's project, newest first.
      operationId: getTasks
      parameters:
        - description: Limit the number of tasks to return.
          in: query
          name: limit
          required: false
          schema:
            default: 20
            maximum: 100
            minimum: 1
            type: integer
        - description: Offset the number of tasks to return.
          in: query
          name: offset
          required: false
          schema:
            default: 0
            minimum: 0
            type: integer
        - description: Only return tasks linked to this browser ID.
          in: query
          name: session_id
          required: false
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/Task'
                type: array
          description: List of tasks
          headers:
            X-Has-More:
              description: Whether there are more tasks to fetch.
              schema:
                default: false
                type: boolean
            X-Limit:
              description: Limit the number of tasks to return.
              schema:
                default: 20
                maximum: 100
                minimum: 1
                type: integer
            X-Next-Offset:
              description: >-
                The offset where the next page starts. 0 when there are no more
                results.
              schema:
                nullable: true
                type: integer
            X-Offset:
              description: The offset of tasks to return.
              schema:
                default: 0
                minimum: 0
                type: integer
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '500':
          $ref: '#/components/responses/InternalError'
      security:
        - bearerAuth: []
components:
  schemas:
    Task:
      description: >-
        A goal an agent works toward. Reports are submitted against a task, and
        browsers can be linked to it. Tasks are immutable apart from added
        browser links.
      properties:
        created_at:
          description: When the task was created
          format: date-time
          type: string
        description:
          description: What the task is meant to accomplish
          type: string
        id:
          description: Unique identifier for the task
          type: string
        metadata:
          $ref: '#/components/schemas/TaskMetadata'
        session_ids:
          description: >-
            IDs of browsers linked to the task, oldest link first. Linked
            browsers may since have been deleted.
          items:
            type: string
          type: array
        started_at:
          description: When work on the task started
          format: date-time
          type: string
        target_website:
          description: Hostname of the website the task targets
          nullable: true
          type: string
      required:
        - id
        - description
        - metadata
        - session_ids
        - started_at
        - created_at
      type: object
    TaskMetadata:
      additionalProperties:
        maxLength: 256
        type: string
      description: >-
        Caller-defined string key-value pairs for grouping and filtering tasks,
        such as a user or thread ID. At most 20 keys; keys are 1-64 characters,
        values at most 256 characters, and keys and values together at most 4
        KB.
      example:
        thread_id: thread_456
        user_id: user_123
      maxProperties: 20
      propertyNames:
        maxLength: 64
        minLength: 1
        type: string
      type: object
    Error:
      properties:
        code:
          description: Application-specific error code (machine-readable)
          example: bad_request
          type: string
        details:
          description: Additional error details (for multiple errors)
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type: array
        inner_error:
          $ref: '#/components/schemas/ErrorDetail'
        message:
          description: Human-readable error description for debugging
          example: 'Missing required field: app_name'
          type: string
      required:
        - code
        - message
      type: object
    ErrorDetail:
      properties:
        code:
          description: Lower-level error code providing more specific detail
          example: invalid_input
          type: string
        message:
          description: Further detail about the error
          example: Provided version string is not semver compliant
          type: string
      type: object
  responses:
    BadRequest:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      description: Bad Request – invalid input
    Unauthorized:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      description: Unauthorized – missing or invalid authorization token
    Forbidden:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      description: Forbidden – insufficient permissions or plan
    InternalError:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      description: Internal Server Error
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

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