ReleaseCloudflare (Workers AI)Cloudflare (Workers AI)published Apr 3, 2026seen Jun 26

cloudflare/cloudflare-go v6.9.0

cloudflare/cloudflare-go

Open original ↗

Captured source

source ↗
published Apr 3, 2026seen Jun 26captured 3whttp 200method plain

v6.9.0

Repository: cloudflare/cloudflare-go

Tag: v6.9.0

Published: 2026-04-03T18:24:28Z

Prerelease: no

Release notes:

6.9.0 (2026-04-01)

Full Changelog: v6.8.0...v6.9.0

In this release, you'll see a number of breaking changes. This is primarily due to changes in OpenAPI definitions, which our libraries are based off of, and codegen updates that we rely on to read those OpenAPI definitions and produce our SDK libraries.

Please ensure you read through the list of changes below before moving to this version - this will help you understand any down or upstream issues it may cause to your environments.

---

Breaking Changes

See the [v6.9.0 Migration Guide](./docs/migration-guides/v6.9.0-migration-guide.md) for before/after code examples and actions needed for each change.

AI Gateway - AccountID, AccountTag, and InternalID Field Removal

The AccountID, AccountTag, and InternalID fields have been removed from all AI Gateway response types:

  • AIGatewayNewResponse
  • AIGatewayUpdateResponse
  • AIGatewayListResponse
  • AIGatewayDeleteResponse
  • AIGatewayGetResponse
  • DynamicRoutingNewResponse
  • DynamicRoutingDeleteResponse
  • DynamicRoutingNewDeploymentResponse
  • DynamicRoutingNewVersionResponse
  • DynamicRoutingGetResponse
  • DynamicRoutingGetVersionResponse

AI Search - VectorizeName Field Removal

The VectorizeName field has been removed from all AI Search instance response types:

  • InstanceNewResponse.VectorizeName
  • InstanceUpdateResponse.VectorizeName
  • InstanceListResponse.VectorizeName
  • InstanceDeleteResponse.VectorizeName
  • InstanceReadResponse.VectorizeName

AI Search - KeywordMatchMode Enum Values Changed

The KeywordMatchMode enum values have been renamed:

  • KeywordMatchModeExactMatch → KeywordMatchModeAnd
  • KeywordMatchModeFuzzyMatch → KeywordMatchModeOr

Affects InstanceNewParams and InstanceUpdateParams.

Billing - New PayGo Usage Endpoint

NEW: Added billing.Usage service with PayGo endpoint:

  • client.Billing.Usage.Paygo() - Returns billable usage data for PayGo (self-serve) accounts

Note: The PayGo endpoint parameters (From, To) are now the primary query mechanism. The previously available LastMonthPeriodStart and LastYearPeriodStart parameters were removed in the underlying API specification.

Connectivity - TCP Service Support

The directory services now support TCP service configurations via discriminated union types:

  • ServiceConfig is now a discriminated union of HttpServiceConfig and TcpServiceConfig
  • New TcpServiceConfig type with tcp_port and app_protocol fields
  • HttpServiceConfig and TcpServiceConfig both extend ServiceCommon base type

Custom Hostnames - Hostname Parameter Type Change

The Hostname parameter in CustomHostnameListParams has changed from a simple string to a structured object:

  • Before: Hostname param.Field[string]
  • After: Hostname param.Field[CustomHostnameListParamsHostname] (object with Contain field)

AI Search - InstanceItem Service Methods Removed

The InstanceItem service methods have been removed. The service structure still exists at client.AISearch.Instances.Items but no longer provides any methods:

  • List() - List indexed items in an AI Search instance
  • ListAutoPaging() - Auto-paging list method
  • Get() - Get a specific indexed item
  • All associated response types (InstanceItemListResponse, InstanceItemGetResponse, etc.)

Workers - Filter Type Changes

The observability telemetry filters have been restructured:

  • Filter types changed from QueryFilter[] to FilterNode[] (discriminated union)
  • Filters now support nested groups via kind: 'group'
  • Affects telemetry endpoints: keys, query, and values

Workers - Domain Service Return Type Changes

The workers.Domain service methods now return specific response types instead of the generic Domain type:

  • Update() returns *DomainUpdateResponse instead of *Domain
  • List() returns pagination.SinglePage[DomainListResponse] instead of pagination.SinglePage[Domain]
  • Delete() now returns (*DomainDeleteResponse, error) instead of just error
  • Get() returns *DomainGetResponse instead of *Domain

Zero Trust - NetworkSubnet Response Type Consolidation

The NetworkSubnet service methods now use the shared Subnet type instead of endpoint-specific response types:

  • NetworkSubnetService.List() returns Subnet instead of NetworkSubnetListResponse
  • NetworkSubnetWARPService.New() returns Subnet instead of NetworkSubnetWARPNewResponse
  • NetworkSubnetWARPService.Edit() returns Subnet instead of NetworkSubnetWARPEditResponse
  • NetworkSubnetWARPService.Get() returns Subnet instead of NetworkSubnetWARPGetResponse
  • NetworkSubnetCloudflareSourceService.Update() returns Subnet instead of NetworkSubnetCloudflareSourceUpdateResponse

The removed types (NetworkSubnetListResponse, NetworkSubnetWARPNewResponse, etc.) have been consolidated into the shared Subnet type.

Zero Trust - MfaBypass Field Removal

The MfaBypass field has been removed from MFA configuration types across multiple services:

Affected Param Types:

  • AccessApplicationNewParamsBodySelfHostedApplicationMfaConfig.MfaBypass
  • AccessApplicationUpdateParamsBodySelfHostedApplicationMfaConfig.MfaBypass
  • AccessApplicationPolicyNewParamsMfaConfig.MfaBypass
  • AccessApplicationPolicyUpdateParamsMfaConfig.MfaBypass
  • AccessApplicationPolicyTestNewParamsPoliciesObjectMfaConfig.MfaBypass
  • AccessPolicyNewParamsMfaConfig.MfaBypass
  • AccessPolicyUpdateParamsMfaConfig.MfaBypass

Affected Response Types:

  • All corresponding MfaConfig response types

Zero Trust - MfaConfigurationAllowed Field Removal

The MfaConfigurationAllowed field has been removed from Organization types:

  • OrganizationNewParams.MfaConfigurationAllowed
  • OrganizationUpdateParams.MfaConfigurationAllowed
  • OrganizationNewResponse.MfaConfigurationAllowed

---

Features

AI Search - BoostBy Field Addition

The BoostBy field has been added to retrieval options across multiple response types:

  • InstanceNewResponseRetrievalOptions.BoostBy
  • InstanceUpdateResponseRetrievalOptions.BoostBy
  • InstanceListResponseRetrievalOptions.BoostBy
  • InstanceDeleteResponseRetrievalOptions.BoostBy

-...

Excerpt shown — open the source for the full document.