---
title: "Report a runtime error from the in-page shell (anonymous)"
method: POST
path: "/app/{id}/diag/report"
---

# Report a runtime error from the in-page shell (anonymous)

`POST /app/{id}/diag/report`

## Request

- Base URL: `https://charm.ing`
- URL: `https://charm.ing/app/{id}/diag/report`
- Auth: none declared

Public ingress for the rendered iframe’s `error` / `unhandledrejection` listeners. Body is capped at 16 KiB and rate-limited per (appId, IP). Agents normally read errors via `GET /app/{id}/diag`; they should not call this endpoint directly.

## Request body

- object
  - `message` string, required
  - `source` string
  - `line` integer
  - `col` integer
  - `stack` string

## Response `204`

Recorded

## Other responses

- `400`: Invalid app id or malformed body.
- `404`: App not found.
- `413`: Body exceeds 16 KiB.
- `429`: Rate limit exceeded.

---

[API](https://skmtc.dev/charm/apis/charming-api.md) · [All operations](https://skmtc.dev/charm/apis/charming-api/llms.txt) · [OpenAPI document](https://skmtc.dev/charm/apis/charming-api/revisions/a9d06c419b3a?raw)
