Submit a report for a Comment or Entity. Reports are tracked per user to avoid duplicate submissions.
Body Parameters
ID of the target being reported (comment or entity)
Type of target being reported. Must be either Comment or Entity
Reason for the report (e.g., “Spam”, “Harassment”, “Inappropriate content”)
Optional additional information about the report
Response
Success message describing the result
Response code (e.g., “report/created”, “report/already-reported”, “report/updated”)
Success Responses
New Report Created - 201 Created
{
"message": "Report submitted successfully",
"code": "report/created"
}
Report Already Exists - 200 OK
{
"message": "Report already registered by this user",
"code": "report/already-reported"
}
{
"message": "Report updated successfully",
"code": "report/updated"
}
Error Responses
Missing Required Fields - 400 Bad Request
{
"error": "Missing required fields",
"code": "report/missing-data"
}
Invalid Target Type - 400 Bad Request
{
"error": "Invalid targetType",
"code": "report/invalid-type"
}
Target Not Found - 404 Not Found
{
"error": "Comment not found",
"code": "report/target-not-found"
}
Foreign Key Violation - 400 Bad Request
{
"error": "Invalid targetId or projectId",
"code": "report/invalid-foreign-key"
}
Server Error - 500 Internal Server Error
{
"error": "Server error",
"code": "report/server-error",
"details": "<Error message>"
}
Notes
- Requires authentication
- Only
Comment and Entity are valid targetType values
- Multiple users can report the same target, but each user is recorded only once
- Submitting a second report for the same target updates the reporter list
- Reports are reviewed by moderators through the Replyke dashboard
- Rate limiting: 20 requests per 5 minutes