Current account-level moderation state of a DID (suspension or ban), or an empty object when the account is unrestricted. A lapsed suspension is reported with its (past) `until` — interpretation is the caller's. Requires the `moderator` role.
Parameters
Output
application/jsonreason
string
Optional
No description available.
setAt
stringdatetime
Optional
An RFC 3339 formatted timestamp.
setByDid
stringdid
Optional
A decentralized identifier (DID).
state
string
Optional
No description available.
suspended, banneduntil
stringdatetime
Optional
An RFC 3339 formatted timestamp.
Errors
Forbidden
The caller is not an active moderator. Try It
Requests are sent directly from your browser. Some servers may block requests due to CORS.
View raw schema
{
"type": "query",
"errors": [
{
"name": "Forbidden",
"description": "The caller is not an active moderator."
}
],
"output": {
"schema": {
"type": "object",
"properties": {
"setAt": {
"type": "string",
"format": "datetime"
},
"state": {
"type": "string",
"maxLength": 100,
"knownValues": [
"suspended",
"banned"
]
},
"until": {
"type": "string",
"format": "datetime"
},
"reason": {
"type": "string",
"maxLength": 5000,
"maxGraphemes": 500
},
"setByDid": {
"type": "string",
"format": "did"
}
}
},
"encoding": "application/json"
},
"parameters": {
"type": "params",
"required": [
"did"
],
"properties": {
"did": {
"type": "string",
"format": "did"
}
}
},
"description": "Current account-level moderation state of a DID (suspension or ban), or an empty object when the account is unrestricted. A lapsed suspension is reported with its (past) `until` — interpretation is the caller's. Requires the `moderator` role."
}