Skip to main content
POST
/
:projectId
/
reports
Submit a Report
curl --request POST \
  --url https://api.replyke.com/api/v6/:projectId/reports \
  --header 'Content-Type: application/json' \
  --data '{
  "targetId": "<string>",
  "targetType": "<string>",
  "reason": "<string>",
  "details": "<string>"
}'
{
  "message": "<string>",
  "code": "<string>"
}
Submit a report for a Comment or Entity. Reports are tracked per user to avoid duplicate submissions.

Body Parameters

targetId
string
required
ID of the target being reported (comment or entity)
targetType
string
required
Type of target being reported. Must be either Comment or Entity
reason
string
required
Reason for the report (e.g., “Spam”, “Harassment”, “Inappropriate content”)
details
string
Optional additional information about the report

Response

message
string
Success message describing the result
code
string
Response code (e.g., “report/created”, “report/already-reported”, “report/updated”)

Success Responses

{
  "message": "Report submitted successfully",
  "code": "report/created"
}
{
  "message": "Report already registered by this user",
  "code": "report/already-reported"
}
{
  "message": "Report updated successfully",
  "code": "report/updated"
}

Error Responses

{
  "error": "Missing required fields",
  "code": "report/missing-data"
}
{
  "error": "Invalid targetType",
  "code": "report/invalid-type"
}
{
  "error": "Comment not found",
  "code": "report/target-not-found"
}
{
  "error": "Invalid targetId or projectId",
  "code": "report/invalid-foreign-key"
}
{
  "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
I