App öffnen
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
FieldTypeDescription
idreqstringListing id (e.g. `lst_*`).
Request body
FieldTypeDescription
reasonreqstring · "impersonation" | "illegal_content" | "sexual_content" | "hate_speech" | "spam" | "license_violation" | "other"
notestring

Responses

202Report queued for moderation review
401Unauthenticated
Body
FieldTypeDescription
errorreqobject
error.codereqstring
error.messagereqstring
404Listing not found
Body
FieldTypeDescription
errorreqobject
error.codereqstring
error.messagereqstring
422Validation error
Body
FieldTypeDescription
errorreqobject
error.codereqstring
error.messagereqstring

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",
)