---
title: "Accepts errors from the UI client"
method: POST
path: "/api/admin/record-ui-error"
tags: ["Admin UI"]
---

# Accepts errors from the UI client

`POST /api/admin/record-ui-error`

This endpoint accepts error reports from the UI client, so that we can add observability on UI errors.

## Request body

- RecordUiErrorSchema — An object representing an error from the UI
  - `errorMessage` string, required — The error message
  - `errorStack` string — The stack trace of the error

## Response `204`

This response has no body.

## Other responses

- `401` — Authorization information is missing or invalid. Provide a valid API token as the `authorization` header, e.g. `authorization:*.*.my-admin-token`.
- `403` — The provided user credentials are valid, but the user does not have the necessary permissions to perform this operation

---

[API](https://skmtc.net/unleash/apis/unleash-api-3.md) · [All operations](https://skmtc.net/unleash/apis/unleash-api-3/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/unleash/unleash-api-3/revisions/b2c3116e633e/schema)
