Skip to main content

Documentation Index

Fetch the complete documentation index at: https://api.docs.onlydrams.app/llms.txt

Use this file to discover all available pages before exploring further.

Allows users to report content that violates community guidelines. Reports can be submitted for community posts, comments, or users. Each user can only submit one report per piece of content.

Create Report

Submit a new report for inappropriate content.

Endpoint

POST /api/v1/reports

Parameters

report[reportable_type]
string
required
The type of content being reported. Allowed values: User, Community, CommunityPost, CommunityPostComment
report[reportable_id]
integer
required
The ID of the content being reported.
report[reason]
string
required
The reason for the report. Allowed values:
  • spam - Spam or Misleading Content
  • harassment - Harassment or Bullying
  • misinformation - False Information
  • inappropriate_content - Inappropriate or Violent Content
  • other - Other
report[description]
string
required
Additional details about the report. Must be between 10 and 1000 characters.
curl -X POST https://api.onlydrams.app/api/v1/reports \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "report": {
      "reportable_type": "CommunityPost",
      "reportable_id": 123,
      "reason": "spam",
      "description": "This post is advertising unrelated products and appears to be spam content."
    }
  }'