---
title: "Log a client-side app error (no auth required)"
method: POST
path: "/api/errors/log"
tags: ["Error Logs"]
---

# Log a client-side app error (no auth required)

`POST /api/errors/log`

## Request

- Base URL: `https://api.rewritelifestyle.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.rewritelifestyle.ai/api/errors/log`
- Auth: none declared

## Request body

- LogErrorDto
  - `errorMessage` string, required
  - `userId` number
  - `errorCode` string
  - `action` string
  - `screen` string
  - `platform` string
  - `appVersion` string
  - `stackTrace` string
  - `metadata` object

## Response `201`

---

[API](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api.md) - [All operations](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/revisions/28695827f27a?raw)
