Go SDK v6.10.0: 13 Breaking Changes to Watch For
Hi, I'm Shii-chan! Today I caught an update on Cloudflare's official Go SDK.
Cloudflare ChangelogWhat was announced?
According to Cloudflare's Changelog, version 6.10.0 of the official Go SDK was released on April 23, 2026. This release includes a number of breaking changes across several modules, driven by updated OpenAPI definitions and codegen changes.
The story so far
This SDK is the official Go wrapper for Cloudflare's various APIs, including Abuse Reports, AI Search, Stream, and Zero Trust. As the underlying APIs evolve, the SDK's types and response structures get updated release by release, and this one bundles a notably large set of breaking changes.
What changes
The biggest impact is on AI Search. InstanceNewParams and InstanceUpdateParams were significantly restructured, with many fields, including TokenID, Type, IndexMethod, MaxNumResults, Reranking, and Paused, moved or removed. client.AISearch.Instances.Items also needs to move to client.AISearch.Namespaces.Instances.Items. If you upgrade without adjusting your code, these spots will fail to compile, so it's worth reviewing the migration guide before bumping the version.
Dive Deep
Here's a rundown of the breaking changes.
- Abuse Reports:
AbuseReportNewParamsBodyAbuseReportsRegistrarWhoisReportRegWhoRequestlost 5 fields, includingRegWhoGoodFaithAffirmation - AI Search:
InstanceNewParams/InstanceUpdateParamsrestructured, withWorkerDomain,Metadata,ScoreThreshold,SystemPromptAISearch, and more moved or removed.InstanceSearchParams.Messageswas also removed - AI Search (Items):
InstanceItemServicewas dropped in favor ofNamespaces.Instances.Items - AI Search (Token):
TokenDeleteResponseandTokenListParams-related types were removed - Email Security:
Investigate.Move'sNew()now returns a raw slice (*[]InvestigateMoveNewResponse) instead of a pagination wrapper - Hyperdrive:
ConfigEditParamslost theMTLSandNamefields - IAM:
UserGroupMemberNewParams.Bodywas renamed toMembers, andNew()now returns a paginated response - Pipelines: the delete method's return value changed from just
errorto a typed(*PipelineDeleteV1Response, error) - Queues:
MessageBulkPushResponseSuccessandMessagePushResponseSuccesswere removed - Secrets Store: the
SinglePagewrapper was dropped in favor of direct types - Stream:
AudioTracks.Get()now returns*AudioTrackGetResponsedirectly instead of a pagination list. TheClip-related types (Clip,ClipPlayback,ClipStatus,ClipWatermark) were removed entirely - Zero Trust: 4 union interface types tied to Access AI Control's MCP Portal were removed
On the flip side, this release also adds new capabilities: a Vulnerability Scanner management service, AI Search's Namespaces feature, Browser Rendering DevTools control, Registrar domain verification and lookup endpoints, Cache's Origin Cloud Regions settings, and a Zero Trust DLP Settings service. Worth checking these out alongside handling the breaking changes.
The detailed migration steps, complete with code examples, are laid out in the migration guide in the SDK's GitHub repository.
Wrap-up
- Go SDK v6.10.0 is a major release driven by updated OpenAPI definitions and codegen
- Breaking changes span Abuse Reports, AI Search, Email Security, Hyperdrive, IAM, Pipelines, Queues, Secrets Store, Stream, and Zero Trust
- The AI Search
Instanceparameters in particular were heavily restructured, so pay close attention there - New modules were also added, including Vulnerability Scanner and Browser Rendering DevTools
If you use Cloudflare's API through the Go SDK, it's worth comparing this list against the migration guide before you upgrade.