com.atproto.moderation.createReport
POST/xrpc/com.atproto.moderation.createReport
To learn more about calling atproto API endpoints like this one, see the API Hosts and Auth guide.
Submit a moderation report regarding an atproto account or record. Implemented by moderation services (with PDS proxying), and requires auth.
Request
- application/json
Body
required
- com.atproto.moderation.defs.reasonSpam
- com.atproto.moderation.defs.reasonViolation
- com.atproto.moderation.defs.reasonMisleading
- com.atproto.moderation.defs.reasonSexual
- com.atproto.moderation.defs.reasonRude
- com.atproto.moderation.defs.reasonOther
- com.atproto.moderation.defs.reasonAppeal
- com.atproto.admin.defs.repoRef
- com.atproto.repo.strongRef
reasonType
object
required
oneOf
string
string
string
string
string
string
string
reason string
Possible values: <= 20000 characters
Additional context about the content and violation.
subject
object
required
oneOf
did didrequired
uri at-urirequired
cid cidrequired
Responses
- 200
- 400
- 401
OK
- application/json
- Schema
- Example (from schema)
Schema
- com.atproto.moderation.defs.reasonSpam
- com.atproto.moderation.defs.reasonViolation
- com.atproto.moderation.defs.reasonMisleading
- com.atproto.moderation.defs.reasonSexual
- com.atproto.moderation.defs.reasonRude
- com.atproto.moderation.defs.reasonOther
- com.atproto.moderation.defs.reasonAppeal
- com.atproto.admin.defs.repoRef
- com.atproto.repo.strongRef
id integerrequired
reasonType
object
required
oneOf
string
string
string
string
string
string
string
reason string
Possible values: <= 20000 characters
subject
object
required
oneOf
did didrequired
uri at-urirequired
cid cidrequired
reportedBy didrequired
createdAt date-timerequired
{
"id": 0,
"reasonType": "string",
"reason": "string",
"subject": {},
"reportedBy": "string",
"createdAt": "2024-11-07T00:27:32.081Z"
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
error stringrequired
Possible values: [InvalidRequest
, ExpiredToken
, InvalidToken
]
message stringrequired
{
"error": "InvalidRequest",
"message": "string"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
error required
message stringrequired
{
"message": "string"
}
Loading...