Create a listing report
Módulo Gateway
POST/listing-reportslistingReports.create
A report against a listing or profile, handled through notice and action. Creates a listing report. Requires `Idempotency-Key`; a replay returns the original response. The organization is derived from the credential or the parent row, never from the body.
- Requiere la capacidad me.profile.write.
- Alcances de OAuth: me.
- Envía el encabezado Idempotency-Key. Una repetición con la misma clave devuelve la respuesta original.
- Estados de error: 400, 401, 409, 422, 429. Los errores son detalles de problema RFC 9457.
Cuerpo de la solicitud: ListingReportCreate
| Campo | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| reason | "Illegal Content" | "Discrimination" | "Fraud" | "Misleading Information" | "Missing Pay Range" | "Safety" | Sí | Ground for the report. |
| opportunity_id | string (uuid) | Sí | Identifier of the reported opportunity. |
| details | string | null | No | What the reporter saw.Restricciones: length 1 to 20000 |
{
"reason": "Illegal Content",
"opportunity_id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
"details": "The listing asks for an upfront fee."
}Respuesta 201: ListingReport
| Campo | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| id | string (uuid) | Sí | Identifier of the listing report. |
| created_at | string (date-time) | Sí | When the row was created. |
| updated_at | string (date-time) | Sí | When the row was last updated. |
| reason | "Illegal Content" | "Discrimination" | "Fraud" | "Misleading Information" | "Missing Pay Range" | "Safety" | Sí | Ground for the report. |
| opportunity_id | string (uuid) | Sí | Identifier of the reported opportunity. |
| reporter_person_id | string (uuid) | Sí | Identifier of the person who reported, set from the session. |
| details | string | null | Sí | What the reporter saw.Restricciones: length 1 to 20000 |
| reported_at | string (date-time) | Sí | When the report was made, set by the database. |
{
"id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
"created_at": "2026-10-08T14:30:00Z",
"updated_at": "2026-10-08T14:30:00Z",
"reason": "Illegal Content",
"opportunity_id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
"reporter_person_id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
"details": "The listing asks for an upfront fee.",
"reported_at": "2026-10-08T14:30:00Z"
}Ejemplos de código
curl -X POST "$XOS_BASE_URL/listing-reports" \
-H "Authorization: Bearer $XOS_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"reason":"Illegal Content","opportunity_id":"0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f","details":"The listing asks for an upfront fee."}'const { data } = await xos.listingReports.create({
"reason": "Illegal Content",
"opportunity_id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
"details": "The listing asks for an upfront fee."
});response = xos.listing_reports.create({"reason": "Illegal Content", "opportunity_id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f", "details": "The listing asks for an upfront fee."})xos listing-reports create --data '{"reason":"Illegal Content","opportunity_id":"0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f","details":"The listing asks for an upfront fee."}'