Skip to content

Moderation

Stable

Generated from capsule-server/openapi.json, the OpenAPI 3.2 document capsule-server emits and mise run openapi-check-kynos keeps current. To change a description on this page, change the annotation on the handler or model it comes from and regenerate — this file is build output. The auth model, error contract, and conventions common to every endpoint are on the REST API overview.

Serve the caller’s own moderation record.

Authentication: required — bearer.

StatusBodyDescription
200ModerationRecordResponse
application/json
OK.
401CodedProblem
application/problem+json
Unauthorized. Headers: WWW-Authenticate.
403CodedProblem
application/problem+json
Forbidden.
413the request body exceeds the configured limit.
500CodedProblem
application/problem+json
Internal server error.

The models these endpoints carry. A field whose type names another model links to it when this page documents that model, which it does when some path from an operation reaches it within 4 references. A model only ever reached deeper than that is named without being expanded.

An RFC 9457 problem detail.

FieldTypeDescription
typestringRequired.
titlestring
statusintegerRequired.
detailstring
instancestring
codestringRequired. The stable error.* catalog code. The client localizes this; detail stays English. Present on every problem this server renders.

One thing that was done to the account.

FieldTypeDescription
actionstringRequired. What was done: suspended, reinstated, taken_down, legal_hold, hold_lifted.
asset_idstring | nullThe asset, when the action was about one rather than about the account.
atstringRequired. When it happened, RFC 3339.
reasonstring | nullWhy, where policy permits. Absent is a real answer — a legal hold may come with an obligation not to disclose it — and reads as “we are not able to say”, which is honest where a fabricated reason would not be.

The caller’s moderation record.

FieldTypeDescription
standingstringRequired. active or suspended.
suspended_sincestring | nullWhen a suspension began, RFC 3339. Absent while the account is active.
eventsModerationEventResponse[]Required. Everything done to this account, oldest first. A reinstatement does not erase the suspension it lifted: the record is what a user reads to understand their own account, and one that deleted its own history would leave them unable to see that anything ever happened.