> ## 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.

# Submit a report

> Submit a typed report against a task. The data is validated against the report type's schema; a validation failure returns 400 with one detail per invalid field. A task can have at most 500 reports.



## OpenAPI

````yaml https://api.onkernel.com/spec.json post /reports
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:
  /reports:
    post:
      tags:
        - Reports
      summary: Submit a report
      description: >-
        Submit a typed report against a task. The data is validated against the
        report type's schema; a validation failure returns 400 with one detail
        per invalid field. A task can have at most 500 reports.
      operationId: postReports
      parameters:
        - $ref: '#/components/parameters/RecordIdempotencyKey'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateReportRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Report'
          description: >-
            Report previously submitted with the same Idempotency-Key and
            request
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Report'
          description: Report submitted
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '422':
          $ref: '#/components/responses/IdempotencyKeyReused'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/InternalError'
      security:
        - bearerAuth: []
components:
  parameters:
    RecordIdempotencyKey:
      description: >
        Makes retrying the create safe. A retry with the same key and the same
        request returns the

        record the first call created, with status 200, instead of creating
        another. Reusing a key

        with a different request returns 422. Keys are scoped to the project and
        do not expire.

        The Kernel SDKs send a key automatically and reuse it when they retry.
      in: header
      name: Idempotency-Key
      required: false
      schema:
        maxLength: 255
        minLength: 1
        type: string
  schemas:
    CreateReportRequest:
      additionalProperties: false
      description: Request body for submitting a report.
      properties:
        data:
          additionalProperties: true
          description: >-
            Report data. It must match the schema of the report type's version
            and encode to at most 16 KB of JSON.
          example:
            evidence: Booking confirmation appeared
            result: succeeded
          type: object
        occurred_at:
          description: >-
            When the reported event happened. Defaults to the time the report is
            submitted. Must be no more than 5 minutes in the future or 30 days
            in the past.
          format: date-time
          type: string
        schema_version:
          description: >-
            Version of the report type's schema to validate data against.
            Defaults to the type's latest version, which the response returns.
          minimum: 1
          type: integer
        session_id:
          description: >-
            ID of the browser the report was observed in. It must belong to the
            task's project; deleted browsers are accepted. The browser is linked
            to the task if it is not already.
          minLength: 1
          type: string
        task_id:
          description: ID of the task to report against.
          minLength: 1
          type: string
        type:
          description: >-
            Report type name. List report types to see the available types and
            their schemas.
          example: task.result
          maxLength: 128
          minLength: 1
          type: string
      required:
        - task_id
        - type
        - data
      type: object
    Report:
      description: >-
        A typed, schema-validated report an agent submitted against a task.
        Reports are immutable.
      properties:
        created_at:
          description: When the report was submitted
          format: date-time
          type: string
        data:
          additionalProperties: true
          description: Report data, matching the report type's schema
          type: object
        id:
          description: Unique identifier for the report
          type: string
        occurred_at:
          description: When the reported event happened
          format: date-time
          type: string
        schema_version:
          description: Version of the report type's schema that data was validated against
          type: integer
        session_id:
          description: ID of the browser the report was observed in, if any
          nullable: true
          type: string
        task_id:
          description: ID of the task the report belongs to
          type: string
        type:
          description: Report type name
          example: task.result
          type: string
      required:
        - id
        - task_id
        - type
        - schema_version
        - data
        - occurred_at
        - created_at
      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
    NotFound:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      description: Resource not found
    Conflict:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      description: Conflict – resource already exists
    IdempotencyKeyReused:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      description: >-
        The Idempotency-Key was already used for a request with different
        parameters
    TooManyRequests:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      description: Too Many Requests – rate limit exceeded
      headers:
        Retry-After:
          description: Seconds to wait before retrying
          schema:
            type: integer
    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.