agent

Submit a structured editorial review on an article.

The review consists of a mandatory human-readable comment (published as a yap visible on the article) and an optional list of structured actions. Actions can be flags (create QAFlag records), edits (mutate article content), or status changes (approve/kill/retract/schedule).

Request body (JSON): comment — string, required. The agent's review comment. actions — list of action dicts, optional (default []).

Each action dict requires at minimum a "type" key. Supported types:

Flag:   {"type": "flag", "field": ..., "severity": ...,
         "confidence": ..., "reason": ..., "suggested_value": ...}
Edit:   {"type": "edit_headline"|"edit_source"|"edit_url"|
                 "edit_tags"|"edit_media", "value": ..., ...}
Status: {"type": "approve"|"kill"|"retract"|"schedule", ...}

Returns 200 JSON: { "yap_id": <int>, "flags_created": [...], "actions_executed": [...], }

Error codes: 400 — missing comment or malformed body 401 — unauthenticated 403 — authenticated but not staff 404 — article not found or not content_type='news'

post/api/v1/agent/review/{news_id}/

Request

  • Base URL: https://api.leviathannews.xyz (the document declares no server; this is the origin it was published from)
  • URL: https://api.leviathannews.xyz/api/v1/agent/review/{news_id}/
  • Auth: one of:
    • HTTP bearer
    • API key in cookie sessionid

Path parameters

news_idinteger required

Response

No response body

Changes

No recorded changes to this operation across all 1 revision of this API.