{"slug": "breaking-cloudflare-messages-changed-type", "title": "Cloudflare: messages changed type", "summary": "Cloudflare's POST /accounts/{account_id}/ai/websearch endpoint now returns an object where the messages[] field previously returned null, according to the company's published API specification. Clients reading messages[] will either fail to parse the response or silently coerce the value, depending on the client. The change breaks code that expects null at payload.messages[0].", "body_md": "## What changed\n\nParse failure, or silent coercion depending on your client.\n\nAffects `POST /accounts/{account_id}/ai/websearch`.\n\nnull → object\n\n## Who is affected\n\nCode that reads POST /accounts/{account_id}/ai/websearch (messages[]).\n\n## Before and after\n\n| Where | Before | After | \n|---|---|---|\n| POST /accounts/{account_id}/ai/websearch · messages[] | null | object | \n\n## Code that breaks\n\n```\n// payload.messages[0]\n// was: null\n// now: object\n```\n\nBased on Cloudflare’s published API specification. [How severity is decided](https://driftwatch.et/method).", "url": "https://wpnews.pro/news/breaking-cloudflare-messages-changed-type", "canonical_source": "https://driftwatch.et/changes/cloudflare-2026-10-26-be49516a", "published_at": "2026-10-26 19:41:12+00:00", "updated_at": "2026-10-26 23:13:46.168327+00:00", "lang": "en", "topics": ["ai-tools", "developer-tools", "ai-products"], "entities": ["Cloudflare"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/breaking-cloudflare-messages-changed-type", "markdown": "https://wpnews.pro/news/breaking-cloudflare-messages-changed-type.md", "text": "https://wpnews.pro/news/breaking-cloudflare-messages-changed-type.txt", "jsonld": "https://wpnews.pro/news/breaking-cloudflare-messages-changed-type.jsonld"}}