Debuta’s reporting system lets users flag inappropriate behavior directly from any profile. When a report is submitted, the match between the two users is automatically dissolved and the report enters an admin review queue. Both endpoints require authentication and operate only on the authenticated user’s own reports — users cannot view or modify each other’s reports.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/desarrolladorandres2026-gif/Native-tailwind/llms.txt
Use this file to discover all available pages before exploring further.
The Report Object
A single report document.
Endpoints
POST /api/report/:userId
Report a user for inappropriate behavior.
GET /api/report/mis-reportes
View all reports submitted by you.
POST /api/report/:userId
Reports another user. The server validates that themotivo is one of the allowed categories, prevents self-reporting, and uses an upsert so that submitting a report against the same user a second time updates the existing report rather than creating a duplicate. Any existing match between the reporter and the reported user is automatically deleted as a safety measure.
Authentication: Bearer JWT required.
Path parameters
MongoDB ObjectId of the user you are reporting.
Request body
Reason for the report. Must be exactly one of the following values:
| Value | Description |
|---|---|
spam | Spam or promotional content |
contenido_inapropiado | Inappropriate content |
comportamiento_ofensivo | Offensive or harassing behavior |
perfil_falso | Fake or impersonation profile |
acoso | Harassment or stalking |
otro | Other reason (use descripcion to elaborate) |
Optional additional context. Maximum 500 characters.
Response 200
Error responses
| Status | Condition |
|---|---|
400 | motivo is not one of the valid enum values. |
400 | Attempting to report yourself. |
401 | Missing or invalid JWT. |
500 | Internal server error. |
curl examples
GET /api/report/mis-reportes
Returns all reports the authenticated user has submitted, sorted newest first. Each report includes a populated snapshot of the reported user. Authentication: Bearer JWT required.Response 200
curl example
Admins review all submitted reports in the admin panel via
GET /api/admin/reports. Status transitions (pendiente → revisado → resuelto) are managed exclusively by the admin interface and are reflected in the estado field of each report object returned here.