Moonborn — API · marketplace
Report abuse / impersonation / license-violation against a listing
Always returns 202 (no signal of whether the listing is queued, removed, or already-reviewed).
POST/v1/marketplace/listings/{id}/reportscope · Bearer (API key or session JWT)
Path parameters
| Field | Type | Description |
|---|---|---|
| idreq | string | Listing id (e.g. `lst_*`). |
Request body
| Field | Type | Description |
|---|---|---|
| reasonreq | string · "impersonation" | "illegal_content" | "sexual_content" | "hate_speech" | "spam" | "license_violation" | "other" | |
| note | string |
Responses
202Report queued for moderation review
401Unauthenticated
Body
| Field | Type | Description |
|---|---|---|
| errorreq | object | |
| error.codereq | string | |
| error.messagereq | string |
404Listing not found
Body
| Field | Type | Description |
|---|---|---|
| errorreq | object | |
| error.codereq | string | |
| error.messagereq | string |
422Validation error
Body
| Field | Type | Description |
|---|---|---|
| errorreq | object | |
| error.codereq | string | |
| error.messagereq | string |
Examples
cURL
curl -X POST https://api.moonborn.co/v1/marketplace/listings/<id>/report \
-H "Authorization: Bearer $MOONBORN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"reason": "impersonation"
}'TypeScript
import Moonborn from '@moonborn/sdk';
const client = new Moonborn({ apiKey: process.env.MOONBORN_API_KEY });
const result = await client.marketplace.reportListing({
id: '<id>',
reason: "impersonation",
});Python
import os
from moonborn import Moonborn
client = Moonborn(api_key=os.environ["MOONBORN_API_KEY"])
result = client.marketplace.report_listing(
id="<id>",
reason="impersonation",
)