Moderation
User-initiated content reports.
Clients can file a report on any content type + id; the row lands in moderation_queue with status = 'pending' where admins resolve it via /admin/projects/:projectId/moderation/queue/:itemId/{approve,reject,escalate}.
Endpoints
| Method | Path | Description |
|---|---|---|
| POST | /client/moderation/report | File a report. |
| GET | /client/moderation/reports | Caller's own reports. |
POST /client/moderation/report
Request (ReportContentInput)
| Field | Type | Required |
|---|---|---|
content_type | string | yes |
content_id | string | yes |
reason | string | no |
content_type is one of review, message, media, feed_item, user or
content; any other value fails with 500 CREATE_FAILED. content_id is a
UUID.
Response 201
The report comes back in the same shape as GET /client/moderation/reports:
Errors
400 INVALID_CONTENT_ID—content_idisn't a UUID.500 CREATE_FAILED.
Try it:
POST
client auth/client/moderation/reportcurl -X POST 'https://api.amba.dev/v1/client/moderation/report' \
-H 'Content-Type: application/json' \
-d '{
"content_type": "message",
"content_id": "<message_id>",
"reason": "spam"
}'Loading auth… Configure auth in the settings drawer (top-right) to run this request.
Curl:
GET /client/moderation/reports
Caller's own reports, newest first.
Response 200
Try it:
GET
client auth/client/moderation/reportscurl -X GET 'https://api.amba.dev/v1/client/moderation/reports'Loading auth… Configure auth in the settings drawer (top-right) to run this request.
Curl: