Skip to content

Trigger Moderation

POST
/api/admin/memory/moderate
curl --request POST \
--url https://example.com/api/admin/memory/moderate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "scope": { "level": "global", "team_id": "example" } }'

Trigger memory moderation for the given scope.

Requires superadmin auth. Runs the 5-node moderation pipeline: inventory → detect_contradictions → consolidate → score_and_prune → report

Media type application/json
ModerationRequest

Request body for POST /moderate.

object
scope
required
ModerationScopeRequest

Scope for a moderation run.

object
level
Level
string
default: global
team_id
Any of:
string

Successful Response

Media type application/json
Example generated
example

Validation Error

Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}