DocsAPI ReferencePost/bff/post/ai-apply-fact-check-fix
postPostAdmin BFF

/bff/post/ai-apply-fact-check-fix

Reads the full current article (title, perex, content) for the given locale, asks the AI to produce the smallest possible edit that addresses the supplied fact-check finding, and commits the result through the existing savePost() pipeline (so a normal version-history entry is created). The AI may decline to apply (sets applied=false) when the suggested fix is unsafe or ambiguous; in that case no DB write happens. Synchronous, ~15-30s. No response schema — hand-rolls the Response to dodge Elysia's auto-serialization edge cases on AI endpoints.

PostpostBffPostAi-apply-fact-check-fix

Parameters

3 body

3 total
Body · 3
postIdstringRequired

Post external ID.

localestringRequired

Communication locale code used to filter content.

Supported locales: cs, en, fr, it, pl, de, sk, sv, es, zh, ja, uk, da.

Length: 22
findingobjectRequired6 fields

Request

POST /bff/post/ai-apply-fact-check-fix

post
curl -X POST "https://api.bizkithub.com/bff/post/ai-apply-fact-check-fix" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "postId": "example_postId",
  "locale": "cs",
  "finding": {
    "category": "example_category",
    "severity": "example_severity",
    "issue": "example_issue",
    "justification": "example_justification"
  }
}'

Response

JSON payload

{
  "success": true
}

All response codes

1 status code documented

Need an API key?

All BizKitHub API endpoints require authentication via API key.

Get API Key