---
title: "Api Report Session Runtime Errors"
method: POST
path: "/api/apps/session/{chat_id}/runtime_errors"
tags: ["apps"]
---

# Api Report Session Runtime Errors

`POST /api/apps/session/{chat_id}/runtime_errors`

## Request

- Base URL: `https://app.getdot.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://app.getdot.ai/api/apps/session/{chat_id}/runtime_errors`
- Auth: one of:
  - API key in header `X-API-KEY`
  - API key in cookie `Authorization`
  - OAuth 2 (password, token URL `/api/auth/token`)

Record client-captured runtime/CSP errors from a rendered app preview.

Tagged with the rendered source's sha so the repair loop only surfaces
errors for the current app version. Owner classification (platform vs agent)
happens at read time in `app.app_runtime_errors.classify_runtime_errors`.
Registered before the `/{filename}` wildcard so it isn't swallowed by it.

## Path parameters

- `chat_id` string, required

## Request body

- RuntimeErrorsRequest
  - `source_sha` string, required
  - `errors` RuntimeErrorRecord[]
    - `kind` string
    - `message` string
    - `name` string
    - `source` string
    - `lineno` integer, nullable
    - `colno` integer, nullable
    - `stack` string
    - `blockedURI` string
    - `violatedDirective` string
    - `ts` integer, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/getdot/apis/dot-api-2.md) · [All operations](https://skmtc.dev/getdot/apis/dot-api-2/llms.txt) · [OpenAPI document](https://skmtc.dev/getdot/apis/dot-api-2/revisions/d26fe7163a7f?raw)
