unstale

pypi / cloudflare

cloudflare

What changed in cloudflare 4 to 5, from its official release notes, upgrade guides and advisories. Sources checked 2026-12-05.

158 breaking1 security1 deprecations182 new APIs and options4 behavior and defaults1 tooling9 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.3.1 on npm

cloudflare 5319 changes

Breaking changes 141

  • Removes the pay_bad_debt sub-resource.

    5.10.0release notes

  • Now returns BulkCreateResponse instead of Optional[BulkCreateResponse].

    5.10.0release notes

  • Renames the instance path identifier from name to namespace; callers passing name= must switch to namespace=.

    5.10.0release notes

  • Removes the browser connect method.

    5.10.0release notes

  • Removes the browser launch method and page sub-resource.

    5.10.0release notes

  • Now returns SyncSinglePage[EndpointHealthcheckListResponse] instead of Optional[EndpointHealthcheckListResponse].

    5.10.0release notes

  • Removes the resource and all its sub-resources and exported types.

    5.10.0release notes

  • Removes the registrar domains sub-resource.

    5.10.0release notes

  • Is no longer paginated and now returns RulesetListResponse directly.

    5.10.0release notes

  • Now returns VersionListResponse instead of SyncSinglePage[VersionListResponse].

    5.10.0release notes

  • Removes the tenant custom nameservers resource and its create, delete, and get methods.

    5.10.0release notes

  • Now returns SyncV4PagePaginationArray[AccountListResponse] instead of SyncSinglePage[TenantAccount].

    5.10.0release notes

  • Removes the tenants get method and the account_types, entitlements, and memberships sub-resources.

    5.10.0release notes

  • Now returns SyncSinglePage[TenantListResponse] instead of SyncSinglePage[Organization].

    5.10.0release notes

  • Now uses GET and returns SyncSinglePage[IndexGetByIDsResponse] instead of issuing POST and returning object.

    5.10.0release notes

  • Now returns TagDeleteResponse instead of object.

    5.10.0release notes

  • Now returns Optional[LastSeenIdentityGetResponse]; the Identity type was removed.

    5.10.0release notes

  • Now returns SyncCursorPaginationAfter instead of SyncSinglePage.

    5.10.0release notes

  • The address-map zone delete method has been removed.

    5.9.0release notes

  • The address-map zone update method has been removed.

    5.9.0release notes

  • The method now returns SyncV4PagePaginationArray instead of SyncSinglePage; code reading page-level fields may need updating.

    5.9.0release notes

  • The ZoneDeleteResponse type has been removed.

    5.9.0release notes

  • The ZoneUpdateResponse type has been removed.

    5.9.0release notes

  • Now takes member_account_id as the positional identifier and address_map_id as a keyword argument.

    5.8.0release notes

  • Resource Library application creation parameters are now a union requiring either hostnames or ip_subnets.

    5.8.0release notes

  • Unused body parameters were removed from the listed token, Address Maps, Cache Reserve, DNS, Email Routing, Access bookmarks, and Gateway certificate operations.

    5.8.0release notes

  • The cache.State type was removed.

    5.8.0release notes

  • Replaces the R2 jurisdiction request keyword and also accepts fedramp-high.

    5.8.0release notes

  • Now uses DELETE and returns Optional[Settings] instead of a page of DNS records.

    5.8.0release notes

  • Now returns an optional List[DNSRecord] rather than an envelope union.

    5.8.0release notes

  • Adds Resource Library application creation parameters requiring either hostnames or ip_subnets.

    5.8.0release notes

  • Bulk edit and update now require an id instead of a body collection.

    5.8.0release notes

  • The R2 request keyword was renamed to cf_r2_jurisdiction across the listed operations.

    5.8.0release notes

  • The legacy Override export was removed.

    5.8.0release notes

  • Device override-code listing now returns Optional[OverrideCodeListResponse].

    5.8.0release notes

  • The rules field is now required.

    5.8.0release notes

  • Rule methods now return typed paginator responses instead of object.

    5.8.0release notes

  • Per-response schema field exports were replaced by shared field types, including SourceField.

    5.8.0release notes

  • The stream.Clip, stream.Playback, and stream.Watermark types were removed.

    5.8.0release notes

  • WAF package retrieval now returns a raw string/object union.

    5.8.0release notes

  • Waiting-room, event, page-preview, status, details, and settings operations now return Optional values, so callers must handle None.

    5.8.0release notes

  • The deprecated method was removed from the issues resource.

    5.7.0release notes

  • The method now returns Optional[PageShieldGetResponse].

    5.7.0release notes

  • The method was removed from the livestreams resource.

    5.7.0release notes

  • The return type changed from SchemaDeleteResponse to object.

    5.7.0release notes

  • The type was replaced by ConnectionGetResponse and ConnectionListResponse.

    5.7.0release notes

  • The type was removed from cloudflare.types.magic_transit.

    5.7.0release notes

  • The type was removed from cloudflare.types.magic_transit.

    5.7.0release notes

  • This type is no longer available.

    5.7.0release notes

  • This type is no longer available.

    5.7.0release notes

  • The type was replaced by per-method response types.

    5.7.0release notes

  • The type was removed from cloudflare.types.schema_validation.

    5.7.0release notes

  • The type was replaced by ScriptListResponse.

    5.7.0release notes

  • The type was removed from cloudflare.types.page_shield.

    5.7.0release notes

  • Load balancer endpoints now use the polymorphic account-or-zone path pattern.

    5.6.0release notes

  • Removed the CertificateAuthority type.

    5.6.0release notes

  • Removed create() from client.accounts.subscriptions.

    5.6.0release notes

  • Removed get() from client.accounts.subscriptions.

    5.6.0release notes

  • Removed the indicator_types sub-resource; it moved to indicators.types.

    5.6.0release notes

  • The indicator_types sub-resource moved to indicators.types.

    5.6.0release notes

  • Removed the ssl Host type.

    5.6.0release notes

  • Removed the HostnameAssociation type.

    5.6.0release notes

  • Pagination changed to SyncV4PagePaginationArray.

    5.6.0release notes

  • Removed rotate() from relays.tokens; token CRUD methods replace it.

    5.6.0release notes

  • Replaced MTLSCertificate with per-method response types.

    5.6.0release notes

  • The hosts parameter type changed to str.

    5.6.0release notes

  • Removed the custom_certificates Status type.

    5.6.0release notes

  • Removed the ssl Status type.

    5.6.0release notes

  • Removed the ssl ValidationMethod type.

    5.6.0release notes

  • Removed setup_flows from CASB applications.

    5.6.0release notes

  • The get() endpoint changed.

    5.6.0release notes

  • The enum value ssh_piv_key changed to piv_key.

    5.5.0release notes

  • The list method was removed; create, update, delete, and get remain.

    5.5.0release notes

  • The recommendations sub-resource and its get method are no longer available.

    5.5.0release notes

  • Pagination now uses SyncV4PagePaginationArray instead of SyncSinglePage; code relying on single-page iteration semantics may need adjustment.

    5.5.0release notes

  • Search responses now require query_kind with Literal values text, image, or multimodal.

    5.5.0release notes

  • The type was renamed from MfaSSHPivKeyRequirements.

    5.5.0release notes

  • The field was renamed from mfa_ssh_piv_key_requirements.

    5.5.0release notes

  • The feed-rss enum value was removed; only sitemap and crawl remain.

    5.5.0release notes

  • This response type is no longer available.

    5.5.0release notes

  • This parameter type is no longer available.

    5.5.0release notes

  • The store_options field was removed from instance create/update params and responses.

    5.5.0release notes

  • This type was removed; geo information is now inlined as UserIdentityGeo in UserPolicyCheckListResponse.

    5.5.0release notes

  • Moves the type's import path from cloudflare.types.iam.oauth_scopes to cloudflare.types.iam.

    5.4.0release notes

  • Removed along with OperationEditResponse; use bulk_edit instead.

    5.2.0release notes

  • Endpoints moved to /zones/{zone_id}/origin/cloud_regions, methods and return types changed, and several response types were removed.

    5.2.0release notes

  • Renamed to bulk_update.

    5.2.0release notes

  • Removed; use update for the single-item PUT operation.

    5.2.0release notes

  • Removed; use update instead.

    5.2.0release notes

  • The create endpoint path parameter changed from report_type to report_param; update code that relies on the endpoint path.

    5.0.0upgrade guide

  • The create() method was removed and replaced by update() and edit(), which use the same endpoint and similar parameters.

    5.0.0upgrade guide

  • The Certificate type was removed.

    5.0.0upgrade guide

  • The optional parameter now uses the Omit type, and its default sentinel changed from NOT_GIVEN to omit.

    5.0.0upgrade guide

  • The CertificateCreateResponse type was removed.

    5.0.0upgrade guide

  • The CertificateDeleteResponse type was removed.

    5.0.0upgrade guide

  • The CertificateGetResponse type was removed.

    5.0.0upgrade guide

  • The CertificateListResponse type was removed.

    5.0.0upgrade guide

  • Use data() on indicator_feeds to get feed data instead of the downloads sub-resource.

    5.0.0upgrade guide

  • get() now calls GET /zones/{zone_id}/logpush/edge/jobs instead of GET /zones/{zone_id}/logpush/edge.

    5.0.0upgrade guide

  • The create() method was removed from the hostnames resource.

    5.0.0upgrade guide

  • The delete() method was removed from the hostnames resource.

    5.0.0upgrade guide

  • get() now uses GET /zones/{zone_id}/origin_tls_client_auth/hostnames/{hostname} instead of the certificates/{certificate_id} endpoint.

    5.0.0upgrade guide

  • The list() method was removed from the hostnames resource.

    5.0.0upgrade guide

  • get() now fetches a specific consumer by required consumer_id instead of listing all consumers; use list() to retrieve the queue's consumers.

    5.0.0upgrade guide

  • A new list() method retrieves all consumers for a queue, replacing the former list-returning get() behavior.

    5.0.0upgrade guide

  • timeseries() now calls GET /radar/bgp/rpki/aspa/timeseries instead of GET /radar/bgp/ips/timeseries.

    5.0.0upgrade guide

  • update() now calls PUT /accounts/{account_id}/dlp/entries/integration/{entry_id} instead of PUT /accounts/{account_id}/dlp/entries/{entry_id}.

    5.0.0upgrade guide

  • D1 response types are imported from individual modules, such as cloudflare.types.d1.database_import_response, rather than cloudflare.types.d1.

    5.0.0upgrade guide

  • The CloudflareSourceUpdateResponse type was removed; update code accordingly.

    5.0.0upgrade guide

  • The ConfigurationUpdateResponse type was removed.

    5.0.0upgrade guide

  • The threat events crons sub-resource was removed; scheduling should be handled outside the threat events API.

    5.0.0upgrade guide

  • The D1 Database resource was reimplemented; all prior methods were replaced, and path parameter structure changed, so existing calls are not drop-in replacements.

    5.0.0upgrade guide

  • Methods operating on a specific D1 database now require database_id as the first parameter after self.

    5.0.0upgrade guide

  • The return type is now generic object instead of a specific response type.

    5.0.0upgrade guide

  • The intel.indicator_feeds.downloads sub-resource and its get() method were removed; use indicator_feeds.data() instead.

    5.0.0upgrade guide

  • Adds a phishguard reports endpoint and removes deprecated type definitions.

    5.0.0release notes

  • The EntryCreateResponse type was removed.

    5.0.0upgrade guide

  • The EntryGetResponse type was removed.

    5.0.0upgrade guide

  • The EntryListResponse type was removed.

    5.0.0upgrade guide

  • The EntryUpdateResponse type was removed.

    5.0.0upgrade guide

  • export() now requires output_format="polling" and supports current_bookmark and dump_options for polling and configuring exports.

    5.0.0upgrade guide

  • import_() now uses overloaded signatures for init, ingest, and poll stages; callers provide an MD5 etag and use current_bookmark to track progress.

    5.0.0upgrade guide

  • The threat events insights sub-resource and its methods and response types were removed; insight functionality is consolidated into the main threat events resource.

    5.0.0upgrade guide

  • The IPTimeseriesResponse type was removed.

    5.0.0upgrade guide

  • list() now returns paginated results and accepts name, page, and per_page parameters, so callers must handle pagination.

    5.0.0upgrade guide

  • Timeout parameters use the lowercase not_given sentinel instead of NOT_GIVEN; explicit timeout values or omitting the parameter remain available.

    5.0.0upgrade guide

  • Removes the duplicate notification_url field from webhook response types.

    5.0.0release notes

  • Optional parameters now use the omit sentinel instead of NOT_GIVEN; update explicit sentinel values and type hints to Omit. Omitting optional parameters remains supported.

    5.0.0upgrade guide

  • The params() method was removed; pass parameters inline to query() or raw() instead.

    5.0.0upgrade guide

  • Python 3.8 is no longer supported; the minimum required version is Python 3.9.

    5.0.0release notes

  • raw() supports single and batch queries and returns rows as arrays instead of objects, reducing memory overhead and serialization time for large result sets.

    5.0.0upgrade guide

  • The RewriteURIPart type was removed.

    5.0.0upgrade guide

  • The SchemaCreateResponse type was removed.

    5.0.0upgrade guide

  • The SchemaEditResponse type was removed.

    5.0.0upgrade guide

  • The SchemaGetResponse type was removed.

    5.0.0upgrade guide

  • The SchemaListResponse type was removed.

    5.0.0upgrade guide

  • The Snippet type was removed.

    5.0.0upgrade guide

  • The response type was replaced by TotalTLSUpdateResponse or TotalTLSEditResponse to match the new method names.

    5.0.0upgrade guide

  • The minimum required version increased from >=4.10 to >=4.14.

    5.0.0release notes

  • update() now performs full read_replication updates, requires database_id first, and requires read_replication; use edit() for other partial database updates.

    5.0.0upgrade guide

  • The update() method was removed from the zerotrust.networks resource; update code accordingly.

    5.0.0upgrade guide

Security 1

  • Adds a top-level service for fraud detection and prevention.

    5.0.0release notes

Deprecations 1

  • The get method is deprecated; use the dataset-specific events endpoint through the datasets sub-resource instead.

    5.0.0upgrade guide

New APIs and options 169

  • Adds the move method for AI Search namespace instances.

    5.10.0release notes

  • Adds the edit method for API Gateway discovery operations.

    5.10.0release notes

  • Adds spend policy CRUD and listing APIs, including activity and audit listings.

    5.10.0release notes

  • Adds a database undelete method.

    5.10.0release notes

  • Adds nameserver set create, list, delete, and get methods.

    5.10.0release notes

  • Adds K2 streams and stream subscriptions APIs.

    5.10.0release notes

  • Adds zone-level monetization rules APIs.

    5.10.0release notes

  • Adds R2 bucket job create, list, and get methods.

    5.10.0release notes

  • Adds a profile method for Workers beta versions.

    5.10.0release notes

  • Adds validation for Zero Trust access custom pages.

    5.10.0release notes

  • Adds the JIT requests resource.

    5.10.0release notes

  • Adds the MFA authenticator catalog resource.

    5.10.0release notes

  • Adds user population CRUD and a users sub-resource with full CRUD.

    5.10.0release notes

  • Adds a delete sub-resource for user MFA authenticators.

    5.10.0release notes

  • Adds a delete sub-resource for user passkeys.

    5.10.0release notes

  • Adds the CASB posture asset schemas resource.

    5.10.0release notes

  • Adds create, update, delete, and validate methods to finding types.

    5.10.0release notes

  • Adds Zero Trust CWS APIs for credentials, deployments, domain ACLs, policies, Rego, tenant structures, and workloads.

    5.10.0release notes

  • Adds DLP validators and their proximity words sub-resource.

    5.10.0release notes

  • Adds the DNS destination IPs resource.

    5.10.0release notes

  • Adds delete and get methods to SCIM groups.

    5.10.0release notes

  • Adds delete and get methods to SCIM users.

    5.10.0release notes

  • Adds R2 Data Catalog APIs for catalogs, credentials, namespaces, tables, and maintenance configs.

    5.9.0release notes

  • Adds a cache invalidation method.

    5.9.0release notes

  • Adds an environment cache invalidation method.

    5.9.0release notes

  • Adds threat signal APIs for articles, categories, feeds, indicators, search, and skills.

    5.9.0release notes

  • Adds top-level Containers APIs for applications, instances, rollouts, versions, images, and registries.

    5.9.0release notes

  • Adds a registrar transfer-check method.

    5.9.0release notes

  • Adds OCR, custom metadata, hostname filtering, and updated hybrid-search options.

    5.8.0release notes

  • Adds AI training, AI user, AI search, migration opt-out, and JavaScript detection policy fields.

    5.8.0release notes

  • Adds submitted-report listing and retrieval, including submitted email listing.

    5.8.0release notes

  • Adds APIs for entitlements, payment methods, invoice and bad-debt payments, receipts, invoices, and client secrets.

    5.8.0release notes

  • Adds billing APIs for address validation, credits, history, bad debt, unpaid invoices, rate plans, expanded profiles, and profile payment methods.

    5.8.0release notes

  • Adds top-level Field Extractors update, delete, and get methods.

    5.8.0release notes

  • Adds a restart method for Hyperdrive configs.

    5.8.0release notes

  • Adds repository, scan, and report APIs for Managed Defense vulnerability discovery.

    5.8.0release notes

  • Adds transfer-in creation and transfer status retrieval APIs.

    5.8.0release notes

  • Adds cancel-downgrade, identifier lookup, cancel reasons, actions, and bulk operations.

    5.8.0release notes

  • Gateway locations, proxy endpoints, and rules add search, filter, ordering, and direction controls; list items and PAC files add pagination controls.

    5.8.0release notes

  • Adds Access destination path overrides, infrastructure and device tags, identity-provider login options, and organization service-token inactivity settings.

    5.8.0release notes

  • Workers deployment listing adds pagination and date filters.

    5.8.0release notes

  • Adds a force option to beta worker deletion.

    5.8.0release notes

  • Adds a reusable Host alias.

    5.8.0release notes

  • Adds the Idempotency-Key account creation option.

    5.8.0release notes

  • Adds a profile_type filter for custom policy listing on devices.

    5.8.0release notes

  • Adds the standalone option to account creation.

    5.8.0release notes

  • Adds a reusable Status alias.

    5.8.0release notes

  • Adds a reusable ValidationMethod alias.

    5.8.0release notes

  • Adds K2 bindings, observability issues, asset base paths, preview configuration, and version author fields.

    5.8.0release notes

  • Now returns SyncV4PagePagination and adds page and date filters.

    5.8.0release notes

  • Added a delete method to the BGP prefixes resource.

    5.7.0release notes

  • Added a live view resource with a create method.

    5.7.0release notes

  • Added an update method to the payloads resource.

    5.7.0release notes

  • Added a batch method to the allow policies resource.

    5.7.0release notes

  • Added a content policies resource with create, list, delete, batch, edit, and get methods.

    5.7.0release notes

  • Added create, update, and batch methods to the domains resource.

    5.7.0release notes

  • Added an edit() method to the subdomains resource.

    5.7.0release notes

  • Added a suppressions resource with create, list, delete, edit, get, and import methods.

    5.7.0release notes

  • Added a transformers resource with create, update, list, delete, get, and preview methods, plus content and versions sub-resources.

    5.7.0release notes

  • Added a top-level resource for precursor configuration management with update and get methods.

    5.7.0release notes

  • Added a delete method to the R2 data catalog resource.

    5.7.0release notes

  • Added a replace_preset_by_id() method to the presets resource.

    5.7.0release notes

  • Added a protocols resource with a list method.

    5.7.0release notes

  • Added a recommendations resource with a get method.

    5.7.0release notes

  • Added an edit method to the credentials resource.

    5.7.0release notes

  • Added a reports resource with a get method.

    5.7.0release notes

  • Added create, update, and delete methods to the applications resource.

    5.7.0release notes

  • Added a NEL resource with edit and get methods.

    5.7.0release notes

  • Added a robots resource to ai_audit.

    5.6.0release notes

  • Added a new resource with summary, timeseries, top_n, and data_security sub-resources.

    5.6.0release notes

  • Added the aggregate sub-resource to threat_events.

    5.6.0release notes

  • Added the categories sub-resource to threat_events.

    5.6.0release notes

  • Added the datasets sub-resource to threat_events.

    5.6.0release notes

  • Added the graph sub-resource to threat_events.

    5.6.0release notes

  • Added the graphql sub-resource to threat_events.

    5.6.0release notes

  • Added the indicators sub-resource to threat_events.

    5.6.0release notes

  • Added the queries sub-resource to threat_events.

    5.6.0release notes

  • Added the relationships sub-resource to threat_events.

    5.6.0release notes

  • Added the tags sub-resource to threat_events.

    5.6.0release notes

  • Added the target_industries sub-resource to threat_events.

    5.6.0release notes

  • Added a connector interrupts resource.

    5.6.0release notes

  • Added create() as a token CRUD method on relays.tokens.

    5.6.0release notes

  • Added delete() as a token CRUD method on relays.tokens.

    5.6.0release notes

  • Added list() as a token CRUD method on relays.tokens.

    5.6.0release notes

  • Added a resource with registrations, registration_status, and update_status.

    5.6.0release notes

  • Added comprehensive posture management.

    5.6.0release notes

  • Added CASB auth_methods.

    5.6.0release notes

  • Adds Worker destination types and the eager_redirect_cookie_setting field to self-hosted applications.

    5.5.0release notes

  • Adds multimodal support with image_url content parts and the @cf/qwen/qwen3-vl-embedding-2b embedding model.

    5.5.0release notes

  • The list method now accepts optional params.

    5.5.0release notes

  • Adds email authentication resources for DMARC report management and SPF inspection.

    5.5.0release notes

  • Adds bulk message movement and quarantine release operations, with bulk job cancellation and message listing.

    5.5.0release notes

  • Adds the expected_disposition parameter.

    5.5.0release notes

  • Adds SQL-based log querying and dataset management, including available datasets.

    5.5.0release notes

  • Adds MoQ relay management, including relay create, update, list, delete, get, and token rotation.

    5.5.0release notes

  • Connector create/edit params now include primary and site_id fields.

    5.5.0release notes

  • Adds the GlobalAcceleration type to default and custom device policy settings.

    5.5.0release notes

  • Adds max_ttl_secs for DNS TTL cap control.

    5.5.0release notes

  • Adds the MaxTTL type to gateway Location for DNS TTL cap control.

    5.5.0release notes

  • Adds a category field for account and user tokens.

    5.5.0release notes

  • Adds Vary cache settings and their associated types.

    5.5.0release notes

  • The Settings response type now includes support_subaddress.

    5.5.0release notes

  • Adds create, list, delete, and get endpoints for AI Gateway custom providers.

    5.4.0release notes

  • Accepts an optional fields parameter to select which fields to include in the response.

    5.4.0release notes

  • Adds a Flagship resource with apps, flags, changelog, and evaluate endpoints.

    5.4.0release notes

  • Adds CF1 site endpoints and nested ramps endpoints.

    5.4.0release notes

  • Adds a method to set an IPsec tunnel pre-shared key.

    5.4.0release notes

  • Adds a resource with update, delete, edit, and get endpoints for origin TLS compliance modes.

    5.4.0release notes

  • Adds edit and get endpoints for Auto Origin TLS Kex.

    5.4.0release notes

  • Adds a top-level tenants resource with tenant, account type, account, entitlement, and membership endpoints.

    5.4.0release notes

  • Adds an endpoint to list the user's tenants.

    5.4.0release notes

  • Adds DLP data class create, update, list, delete, and get endpoints.

    5.4.0release notes

  • Adds DLP data tag category endpoints, including nested data tag operations.

    5.4.0release notes

  • Adds DLP sensitivity group endpoints, including levels and level ordering.

    5.4.0release notes

  • Adds update and get endpoints for WARP connector tunnel configurations.

    5.4.0release notes

  • Adds CT alerting subscription edit and get endpoints.

    5.4.0release notes

  • Adds billing APIs for credit balance, invoice history and preview, usage history, topups, and spending limits.

    5.2.0release notes

  • The list method now accepts optional params.

    5.2.0release notes

  • Adds a top-level service for managing zone-level AI security settings and custom topics.

    5.2.0release notes

  • Adds the purge_environment method.

    5.2.0release notes

  • Adds the create method for smart tiered cache.

    5.2.0release notes

  • Adds a top-level service for managing Advanced TCP Protection configurations, including allowlists, prefixes, SYN and TCP flow protection, and protection status.

    5.2.0release notes

  • Adds a monitor group references sub-resource.

    5.2.0release notes

  • Adds list, delete, get, and upload operations for objects in R2 buckets; listing is cursor-paginated and get returns BinaryAPIResponse.

    5.2.0release notes

  • Adds BGP IPs top ASes and RPKI ROAs timeseries APIs.

    5.2.0release notes

  • The delete method now accepts optional params.

    5.2.0release notes

  • Adds a bulk_update method for Workers for Platforms secrets.

    5.2.0release notes

  • Adds a bulk_update method for Workers secrets.

    5.2.0release notes

  • Adds list, get, get_pem, and rotate operations for Access SAML certificates.

    5.2.0release notes

  • Adds a create operation for an identity provider SAML certificate.

    5.2.0release notes

  • Adds applications and categories APIs for browsing resource library entries.

    5.2.0release notes

  • The async client supports an optional aiohttp HTTP backend for improved concurrency; install the extra and pass DefaultAioHttpClient() as http_client.

    5.0.0release notes

  • Adds a top-level service for AI-powered search capabilities.

    5.0.0release notes

  • Adds labels endpoints.

    5.0.0release notes

  • Adds a billable usage PayGo endpoint.

    5.0.0release notes

  • Adds v2 endpoints.

    5.0.0release notes

  • Adds devtools methods.

    5.0.0release notes

  • Adds an origin cloud regions resource.

    5.0.0release notes

  • The indicator feeds resource gained a permissions sub-resource for permissions operations.

    5.0.0upgrade guide

  • Adds a top-level service for connectivity testing and diagnostics.

    5.0.0release notes

  • The list method supports cursor-based pagination for better performance and deep pagination beyond the 100,000-record offset-based limit.

    5.0.0upgrade guide

  • Enables custom origin trust store support.

    5.0.0release notes

  • Adds dns_records and usage endpoints.

    5.0.0release notes

  • A new method performs partial updates using HTTP PATCH; database_id is required first, and read_replication is supported.

    5.0.0upgrade guide

  • Adds a top-level service with email send and send_raw endpoints.

    5.0.0release notes

  • The list method accepts format="stix2" for STIX2-formatted output.

    5.0.0upgrade guide

  • Adds a top-level service for Google Tag Gateway management.

    5.0.0release notes

  • Adds user_groups and user_group_members resources.

    5.0.0release notes

  • bulk_create accepts include_created_events to track which events were created and their locations.

    5.0.0upgrade guide

  • The create method accepts an indicators array to support multiple indicators per event.

    5.0.0upgrade guide

  • The create method accepts an insight parameter to attach insights directly to events.

    5.0.0upgrade guide

  • The D1 database create method accepts an optional jurisdiction to restrict where the database runs and stores data; supported values are eu and fedramp.

    5.0.0upgrade guide

  • Adds the polymorphic_serialization parameter to model_dump overrides.

    5.0.0release notes

  • Adds a top-level service for organization audit logs and management.

    5.0.0release notes

  • The D1 database create method accepts an optional primary_location_hint to specify the region; it is ignored if jurisdiction is specified.

    5.0.0upgrade guide

  • query() now supports single-query mode with sql and optional params, or batch mode with batch; its return type supports pagination.

    5.0.0upgrade guide

  • Adds a top-level service for R2 Data Catalog operations.

    5.0.0release notes

  • Adds Botnet Threat Feed and Post-Quantum endpoints.

    5.0.0release notes

  • Adds a top-level service for realtime communication, including Calls and TURN.

    5.0.0release notes

  • Adds a top-level service for resource tagging and labeling.

    5.0.0release notes

  • Adds a BaseModel base to the response SchemaFieldList stub.

    5.0.0release notes

  • Adds a BaseModel base to the response SchemaFieldStruct stub.

    5.0.0release notes

  • attacker, attacker_country, and indicator_type are now optional; dataset_id is optional and defaults to the Cloudforce One Threat Events dataset.

    5.0.0upgrade guide

  • The edit method adds optional created_at, dataset_id, insight, and raw parameters; attacker can now be set to None.

    5.0.0upgrade guide

  • Adds a top-level service for token validation configuration and rules.

    5.0.0release notes

  • Adds a top-level service for vulnerability scanning, credential sets, and target environments.

    5.0.0release notes

  • Adds Observability Destinations resources.

    5.0.0release notes

  • Adds Access Users, DEX rules, device IP profile and subnet, WARP connection and failover, WARP subnet, and Gateway PAC file endpoints.

    5.0.0release notes

  • Adds zone environments endpoints.

    5.0.0release notes

Behavior and default changes 3

  • The method now returns PageShieldUpdateResponse.

    5.7.0release notes

  • search_query changed from required str to Optional[str].

    5.5.0release notes

  • dataset_id is now optional; omit it to list from the default dataset.

    5.0.0upgrade guide

Tooling 1

  • Adds generated type and method updates for accounts.

    5.0.0release notes

Fixes and other changes 3

  • Fixes a broken reference for the queues consumer model.

    5.0.0release notes

  • Makes RunQueryParametersNeedleValue a BaseModel with arbitrary_types_allowed.

    5.0.0release notes

  • Adds missing model_rebuild and update_forward_refs support for SharedEntryCustomEntry classes.

    5.0.0release notes

cloudflare 437 changes

Breaking changes 17

  • The addressing namespace relationships were reshuffled to align with the product, so code using the previous namespace organization must be updated.

    4.0.0release notes

  • AI moved to a dedicated namespace, changing where developers access AI APIs.

    4.0.0release notes

  • API Shield operations were updated and the discovery resource was renamed.

    4.0.0release notes

  • Removes the DNS delta model; code relying on that model must use another supported representation.

    4.0.0release notes

  • The dns_firewall API was broken out into a standalone package, changing where developers import and use it.

    4.0.0release notes

  • DNSSEC moved under the DNS namespace, changing where developers access it.

    4.0.0release notes

  • The loa_documents download subresource moved into its parent as get, changing how downloads are accessed.

    4.0.0release notes

  • The R2 parameter was renamed from cf-r2-jurisdiction to jurisdiction, so callers must use the new parameter name.

    4.0.0release notes

  • KV analytics moved under an existing namespace, changing where developers access it.

    4.0.0release notes

  • Moves the download subresource into the parent as get, changing how developers call the download operation.

    4.0.0release notes

  • Changes the operation from PUT to PATCH, affecting requests made through this API.

    4.0.0release notes

  • Renames the pagerules namespace to page_rules, changing the API path developers use.

    4.0.0release notes

  • Service bindings moved to a dedicated namespace, changing where developers access them.

    4.0.0release notes

  • All URL scanner methods now use v2 only, so callers relying on previous methods must update.

    4.0.0release notes

  • The warp_connector namespace moved under zero trust, changing where developers access it.

    4.0.0release notes

  • Reshapes the API structure to allow use of custom and default devices.

    4.0.0release notes

  • Zone transfers moved under the DNS namespace, changing where developers access them.

    4.0.0release notes

New APIs and options 13

  • Endpoints were added for account owned tokens, DNS setting views, and worker assets.

    4.0.0release notes

  • A new Aegis zone setting was added.

    4.0.0release notes

  • Support was added for AI search endpoints and finetunes.

    4.0.0release notes

  • Bulk operation methods were introduced.

    4.0.0release notes

  • Support for content scanning was introduced.

    4.0.0release notes

  • Commands support was added to DEX.

    4.0.0release notes

  • Adds models for DNS batch operations and their responses, enabling typed use of those operations.

    4.0.0release notes

  • Adds bulk endpoints for infrastructure targets.

    4.0.0release notes

  • Adds a Terraform resource for leaked credential checks.

    4.0.0release notes

  • Makes the Omit type public so developers can import and use it.

    4.0.0release notes

  • A PATCH method was added for updating a zone hold.

    4.0.0release notes

  • Adds CORS support for R2 buckets.

    4.0.0release notes

  • Adds routes support for Workers.

    4.0.0release notes

Behavior and default changes 1

Fixes and other changes 6

  • Fixes compatibility with the httpx 0.28.0 release.

    4.0.0release notes

  • Calls close only when needed, avoiding unnecessary close calls.

    4.0.0release notes

  • Correctly handles deserializing cls fields.

    4.0.0release notes

  • Fixes the invalid schema definition for plain text.

    4.0.0release notes

  • Defines body_param_name for the bulk rules endpoint.

    4.0.0release notes

  • Updates the origin_max_http_version model.

    4.0.0release notes