---
title: "Log Discord Bot Error"
method: POST
path: "/discord/logging/error"
tags: ["Discord", "Logging"]
---

# Log Discord Bot Error

`POST /discord/logging/error`

Logs error details from the Discord bot for a specific user and interaction.

## Request body

- object
  - `error_message` string
  - `interaction_name` string
  - `user_id` integer

## Response `200`

Successfully logged error data (echoes the received body)

- object
  - `error_message` string
  - `interaction_name` string
  - `user_id` integer

## Other responses

- `400` — Bad request, e.g., invalid input body
- `403` — Forbidden: Not enough permissions to log error
- `500` — Internal server error

---

[API](https://skmtc.dev/seraph/apis/seraph-api.md) · [All operations](https://skmtc.dev/seraph/apis/seraph-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/seraph/seraph-api/revisions/82a1ec01c64d/schema)
