← Back to docs

OpenAI context cleanup endpoint - 2026-08-26

OpenAI context cleanup endpoint - 2026-08-26

  • OpenAI context cleanup endpoint (#1016): POST /api/ai/openai/context is now documented for Android, SocialGPT, and internal AI clients that need to clean captured page/context text before Reply or Verify Fact flows. The endpoint keeps bearer-token scope requirements explicit, uses strict structured cleanup output, and returns safe ok=false failures when provider output is incomplete, truncated, or malformed so clients can fall back to the original captured context instead of trusting partial cleanup data.