Submit abuse report
POST
/api/v1/abuse-reports
const url = 'http://localhost:3001/api/v1/abuse-reports';const options = { method: 'POST', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"category":"example","evidence":"example","reason":"example","target_id":"example","target_type":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:3001/api/v1/abuse-reports \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "category": "example", "evidence": "example", "reason": "example", "target_id": "example", "target_type": "example" }'Create an abuse report against a user, message, group or channel. Implements DSA Art. 16 notice-and-action. SA-2026-ARCH P2-J2.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Abuse report
Media typeapplication/json
object
category
string
evidence
string
reason
string
target_id
string
target_type
User|message|group|channel
string
Examplegenerated
{ "category": "example", "evidence": "example", "reason": "example", "target_id": "example", "target_type": "example"}Responses
Section titled “Responses”Created
Media typeapplication/json
object
key
additional properties
any
Examplegenerated
{}Bad Request
Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{ "error": "example", "success": true}Unauthorized
Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{ "error": "example", "success": true}Internal Server Error
Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{ "error": "example", "success": true}