/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.
Parameters
3 body
postIdstringRequiredPost external ID.
localestringRequiredCommunication locale code used to filter content.
Supported locales: cs, en, fr, it, pl, de, sk, sv, es, zh, ja, uk, da.
findingobjectRequired6 fieldsRequest
POST /bff/post/ai-apply-fact-check-fix
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.