---
title: "Submit a bug report from the in-app Bug Reporter widget."
method: POST
path: "/api/v1/feedback/bug-reports"
tags: ["Feedback utilisateur"]
---

# Submit a bug report from the in-app Bug Reporter widget.

`POST /api/v1/feedback/bug-reports`

## Request

- Base URL: `https://erp.eyeot.fr/api/v1`
- URL: `https://erp.eyeot.fr/api/v1/api/v1/feedback/bug-reports`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Submit a bug report from the in-app Bug Reporter widget.

    Auto-captures user/org context server-side based on the JWT, plus
    accepts the rich frontend-side capture (URL, console errors,
    network failures) as payload. Stored in `bug_reports` table for
    platform admin triage at GET /feedback/bug-reports.

    Bug #b4c5ffc5 (Amine, 2026-05-27) — Audience routing :
    - `audience="platform"` (default historique) : crée un BugReport
      visible aux platform admins (équipe eyeot SAS).
    - `audience="org_admin"` : crée un **Ticket IT** dans l'org du user
      (visible aux admins IT internes), pas un BugReport.
    - `audience="both"` : crée les deux artefacts (utile quand l'issue
      concerne à la fois un bug logiciel ET un workaround IT interne).

## Request body

- BugReportCreate
  - `audience` 'platform' | 'org_admin' | 'both'
  - `console_errors` ConsoleErrorEntry[], nullable
    - `level` 'error' | 'warn', required
    - `message` string, required
    - `stack` string, nullable
    - `ts` string, required
  - `description` string, required
  - `extra_metadata` object, nullable
  - `locale` string, nullable
  - `network_failures` NetworkFailureEntry[], nullable
    - `method` string, required
    - `response_excerpt` string, nullable
    - `status` integer, required
    - `ts` string, required
    - `url` string, required
  - `page_url` string, nullable
  - `severity` 'blocking' | 'annoying' | 'weird'
  - `timezone` string, nullable
  - `title` string, required
  - `user_agent` string, nullable
  - `viewport` string, nullable

## Response `200`

Succès — payload `{data, meta}` (cf. API-GUIDE §3.1)

## Other responses

- `201`: Ressource créée. ID dans `data.id`.
- `400`: Validation Marshmallow échouée. `errors` détaille chaque champ invalide.
- `401`: JWT manquant, expiré ou révoqué.
- `404`: Ressource introuvable (ou cross-tenant — équivalent à hidden).
- `409`: État incohérent (email dupliqué, ressource déjà dans cet état, etc.).
- `422`: Validation Marshmallow échouée. `errors` détaille chaque champ invalide.
- `429`: Trop de requêtes. Honorer le header `Retry-After` (secondes).

---

[API](https://skmtc.dev/eyeot/apis/eyeot-erp-api.md) · [All operations](https://skmtc.dev/eyeot/apis/eyeot-erp-api/llms.txt) · [OpenAPI document](https://skmtc.dev/eyeot/apis/eyeot-erp-api/revisions/42ab95222a89?raw)
