---
title: "Runtime errors the live preview reported (the dashboard forwards them): kept per session, one per error with a count, mapped to the site's source through the preview's own source maps; the next chat turn and \"Fix it\" read them"
method: POST
path: "/builder/sessions/{sessionId}/runtime-errors"
tags: ["Builder"]
---

# Runtime errors the live preview reported (the dashboard forwards them): kept per session, one per error with a count, mapped to the site's source through the preview's own source maps; the next chat turn and "Fix it" read them

`POST /builder/sessions/{sessionId}/runtime-errors`

## Request

- Base URL: `https://hostingsurge.com/api/v1`
- URL: `https://hostingsurge.com/api/v1/builder/sessions/{sessionId}/runtime-errors`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `__Host-hs_session`

## Path parameters

- `sessionId` string, uuid, required

## Request body

- object
  - `errors` object[], required
    - `kind` 'error' | 'rejection' | 'console' | 'boundary' | 'resource' | 'network', required
    - `message` string, required
    - `source` string, nullable
    - `line` integer, nullable
    - `column` integer, nullable
    - `stack` string, nullable
    - `route` string, nullable
    - `status` integer, nullable

## Response `200`

Open errors

- object
  - `errors` object[], required
    - `id` string, uuid, required
    - `kind` 'error' | 'rejection' | 'console' | 'boundary' | 'resource' | 'network', required
    - `title` string, required: Plain English, e.g. "Something broke on this page."
    - `message` string, required: The exact error message (shown collapsed)
    - `route` string, nullable, required
    - `source` string, nullable, required: The file the browser named, e.g. src/pages/home.tsx
    - `mapped` object, nullable, required: Where in the site's code (source map)
      - `file` string, required
      - `line` integer, required
      - `column` integer, required
    - `status` integer, nullable, required
    - `count` integer, required
    - `firstSeenAt` string, required: ISO-8601 timestamp
    - `lastSeenAt` string, required: ISO-8601 timestamp

## Other responses

- `400`: Invalid request (code invalid_request)
- `401`: Missing or invalid session/token (code unauthorized)
- `402`: Automatic SEO needs a plan or Build Credits (code upgrade_required, details.feature builder.auto_seo)
- `403`: Not permitted (code forbidden)
- `404`: Not found or not visible to the caller (code not_found)
- `409`: Refused for now (code conflict; details.reason turn_running, archived, not_published, auto_seo_unsupported)
- `429`: Too many checks or error reports (code rate_limited; details.reason check_rate, runtime_error_rate); see Retry-After
- `501`: Site checks are not set up on this server yet (code not_configured, details.reason not_ready)

---

[API](https://skmtc.dev/hostingsurge/apis/hostingsurge-platform-api.md) · [All operations](https://skmtc.dev/hostingsurge/apis/hostingsurge-platform-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hostingsurge/apis/hostingsurge-platform-api/revisions/4d08337cdff1?raw)
