Driftwatch

APIs / Cloudflare

Cloudflare API changes

Breaking changes, deprecations and new fields in the Cloudflare API, as they ship.

Cloudflare · 6ec8f1043 additive
Cloudflare · d78ae1b36 additive
3 new response fields
  • load-balancing_load_shedding.mode
  • load-balancing_load_shedding.scaling_factor
  • load-balancing_load_shedding.target_load
3 new request properties
  • load-balancing_load_shedding.mode
  • load-balancing_load_shedding.scaling_factor
  • load-balancing_load_shedding.target_load
Cloudflare · aa5d37b72 breaking2 deprecation2 behavioral3 additive
  • Breaking

    per_page changed type

    Serialization mismatch. Integer-to-string moves are the usual cause and the usual outage.

    GET /accounts/{account_id}/cloudforce-one/v2/requests/{project_type}/{request_id}/messages · per_page
    Code that breaks
    // payload.per_page
    // was: string
    // now: integer
  • Breaking

    page changed type

    GET /accounts/{account_id}/cloudforce-one/v2/requests/{project_type}/{request_id}/messages · page
    Code that breaks
    // payload.page
    // was: string
    // now: integer
  • Deprecation

    GET /accounts/{account_id}/cloudforce-one/v2/brand-protection/url/info deprecated

    Still works today. This is the earliest warning you will get before it is removed.

    GET /accounts/{account_id}/cloudforce-one/v2/brand-protection/url/info
  • Deprecation

    POST /accounts/{account_id}/cloudforce-one/v2/brand-protection/url/submit deprecated

    Still works today. This is the earliest warning you will get before it is removed.

    POST /accounts/{account_id}/cloudforce-one/v2/brand-protection/url/submit
  • Behavioral

    Default value changed

    Behavior shifts for every call that omits the field.

    GET /accounts/{account_id}/cloudforce-one/v2/requests/{project_type}/{request_id}/messages · page
  • Behavioral

    Pagination default for per_page changed to 10

    Silent truncation. Code that does not paginate keeps working and quietly returns a different slice of the data.

    GET /accounts/{account_id}/cloudforce-one/v2/requests/{project_type}/{request_id}/messages · per_page
    Code that breaks
    // Unpaginated calls now return 10 items, previously "10"
    const page = await client.get("/accounts/{account_id}/cloudforce-one/v2/requests/{project_type}/{request_id}/messages");
  • Additive

    /accounts/{account_id}/cloudforce-one/v2/threat-signals/articles/{article_id}/processing added

    No action needed.

    /accounts/{account_id}/cloudforce-one/v2/threat-signals/articles/{article_id}/processing
2 new response fields
  • result.articles[].processing
  • result.processing
Cloudflare · 04ec794c1 additive
  • Additive

    Response field name added

    No action needed unless you validate responses against a closed schema.

    managed-defense-vulnerability-discovery_ReportObservedWafRule.name · reachable from 2 operations
Cloudflare · 4bc3fd724 additive
2 new response fields
  • access_oauth_configuration.device_authorization
  • access_end_user_oauth_configuration.device_authorization
2 new request properties
  • access_oauth_configuration.device_authorization
  • access_end_user_oauth_configuration.device_authorization
Cloudflare · 985fa45d13 additive
  • Additive

    Response field description added

    No action needed unless you validate responses against a closed schema.

    teams-devices_default_device_settings_policy.description · reachable from 2 operations
  • Additive

    Request field now accepts null

    A relaxation. Existing payloads are unaffected.

    PUT /accounts/{account_id}/devices/policy/exclude · 4 call sites
11 new request properties
  • teams-devices_split_tunnel_include_request.address
  • teams-devices_split_tunnel_request.description
  • teams-devices_split_tunnel_request.host
  • teams-devices_split_tunnel_include_request.description
  • teams-devices_split_tunnel_include_request.host
  • teams-devices_split_tunnel_request.address
  • always_exclude
  • always_include
  • speed_test_settings
  • description
  • profile_type
Cloudflare · b8648f7b1 breaking
  • Breakingdirection flip: their tools call this safe

    value can now return "agents"

    Producer-side tools call this additive. It breaks exhaustive switches, strict parsers and generated client enums.

    secrets-store_inheritable_scopes · reachable from 5 operations
    Code that breaks
    switch (response) {
      // existing branches …
      // no branch for "agents"
      default:
        throw new Error("unexpected value");
    }
Cloudflare · 3655338326 additive
10 new response fields
  • cc_DurableObjectApplication.active_rollout_id
  • cc_DurableObjectApplication.version
  • cc_DurableObjectApplicationConfiguration.command
  • cc_DurableObjectApplicationConfiguration.disk
  • cc_DurableObjectApplicationConfiguration.entrypoint
  • cc_DurableObjectApplicationConfiguration.environment_variables
  • cc_DurableObjectApplicationConfiguration.image
  • cc_DurableObjectApplicationConfiguration.instance_type
  • cc_DurableObjectApplicationConfiguration.memory_mib
  • cc_DurableObjectApplicationConfiguration.vcpu
16 new request properties
  • cc_DurableObjectApplicationConfiguration.memory_mib
  • cc_DurableObjectApplicationConfiguration.command
  • cc_DurableObjectApplicationConfiguration.disk
  • cc_DurableObjectApplicationConfiguration.entrypoint
  • cc_DurableObjectApplicationConfiguration.environment_variables
  • cc_DurableObjectApplicationConfiguration.image
  • cc_DurableObjectApplicationConfiguration.instance_type
  • cc_DurableObjectApplicationConfiguration.vcpu
  • cc_ContainersCreateDurableObjectApplicationRequest.configuration.entrypoint
  • cc_ContainersCreateDurableObjectApplicationRequest.configuration.disk
  • cc_ContainersCreateDurableObjectApplicationRequest.configuration.command
  • cc_ContainersCreateDurableObjectApplicationRequest.configuration.environment_variables
  • cc_ContainersCreateDurableObjectApplicationRequest.configuration.image
  • cc_ContainersCreateDurableObjectApplicationRequest.configuration.instance_type
  • cc_ContainersCreateDurableObjectApplicationRequest.configuration.memory_mib
  • cc_ContainersCreateDurableObjectApplicationRequest.configuration.vcpu
Cloudflare · f02408e211 additive
5 new response fields
  • bot-management_bm_subscription_config.site_insights_sharing_enabled
  • bot-management_base_config.site_insights_sharing_enabled
  • bot-management_bot_fight_mode_config.site_insights_sharing_enabled
  • bot-management_sbfm_definitely_config.site_insights_sharing_enabled
  • bot-management_sbfm_likely_config.site_insights_sharing_enabled
5 new request properties
  • bot-management_base_config.site_insights_sharing_enabled
  • bot-management_bot_fight_mode_config.site_insights_sharing_enabled
  • bot-management_bm_subscription_config.site_insights_sharing_enabled
  • bot-management_sbfm_definitely_config.site_insights_sharing_enabled
  • bot-management_sbfm_likely_config.site_insights_sharing_enabled
Cloudflare · 904c54343 additive
2 new response fields
  • result.source_params.web_crawler.parse_options.browser_rendering_wait_until
  • result[].source_params.web_crawler.parse_options.browser_rendering_wait_until
Cloudflare · df4199d612 additive
6 new response fields
  • aaa_filters.alert_trigger_preferences_minimum_threshold
  • aaa_filters.alert_trigger_preferences_long_window
  • aaa_filters.alert_trigger_preferences_operator
  • aaa_filters.alert_trigger_preferences_short_window
  • aaa_filters.execution_interval
  • aaa_filters.source
6 new request properties
  • aaa_filters.source
  • aaa_filters.alert_trigger_preferences_long_window
  • aaa_filters.alert_trigger_preferences_minimum_threshold
  • aaa_filters.alert_trigger_preferences_operator
  • aaa_filters.alert_trigger_preferences_short_window
  • aaa_filters.execution_interval
Cloudflare · 5a1f39917 additive
Cloudflare · 108373446 additive
3 new response fields
  • d1_database-response.recommendation_count
  • d1_database-response.file_size
  • d1_database-response.num_tables
Cloudflare · 86556f6f2 additive
  • Additive

    page is now optional

    No action needed.

    GET /accounts/{account_id}/ai-gateway/gateways/{gateway_id}/routes/{id}/versions · page · 2 call sites
  • Additive

    per_page is now optional

    GET /accounts/{account_id}/ai-gateway/gateways/{gateway_id}/routes/{id}/versions · per_page · 2 call sites
Cloudflare · 5eec6bfe6 additive
6 new response fields
  • result.articles[].relevance.pirs[].requirement_basis
  • result.articles[].relevance_coverage
  • result.combined.stale_articles
  • result.stale_articles
  • result.relevance.pirs[].requirement_basis
  • result.relevance_coverage
Cloudflare · 39131bff1 additive
  • Additive

    Response field base_rule added

    No action needed unless you validate responses against a closed schema.

    cloudforce-one_RuleApprovalDetailResponse.approval.base_rule · reachable from 1 operation
Cloudflare · f8cdaa2f2 breaking
  • Breakingdirection flip: their tools call this safe

    secret is no longer accepted

    Usually ignored rather than rejected, so the call succeeds and does something subtly different.

    PUT /accounts/{account_id}/alerting/v3/destinations/webhooks/{webhook_id} · secret
    Code that breaks
    await client.post("/accounts/{account_id}/alerting/v3/destinations/webhooks/{webhook_id}", {
      // secret is now ignored, not rejected
      secret: value,
    });
  • Breakingdirection flip: their tools call this safe

    url is no longer accepted

    Usually ignored rather than rejected, so the call succeeds and does something subtly different.

    PUT /accounts/{account_id}/alerting/v3/destinations/webhooks/{webhook_id} · url
    Code that breaks
    await client.post("/accounts/{account_id}/alerting/v3/destinations/webhooks/{webhook_id}", {
      // url is now ignored, not rejected
      url: value,
    });
Cloudflare · e89d92de4 additive
  • Additive

    per_page is now optional

    No action needed.

    GET /accounts/{account_id}/mtls_certificates · per_page · 5 call sites
  • Additive

    page is now optional

    No action needed.

    GET /zones/{zone_id}/hostnames/settings/{setting_id} · page · 5 call sites
  • Additive

    limit is now optional

    No action needed.

    GET /accounts/{account_id}/mtls_certificates · limit · 4 call sites
  • Additive

    offset is now optional

    GET /accounts/{account_id}/mtls_certificates · offset · 4 call sites
Cloudflare · bc6fad242 breaking
  • Breaking

    contact is now required

    Partial payloads are rejected.

    security-center_securityTxt.contact · reachable from 2 operations
    Code that breaks
    await client.post("/…", {
      // …
      contact: /* now required */,
    });
  • Breaking

    expires is now required

    security-center_securityTxt.expires · reachable from 2 operations
    Code that breaks
    await client.post("/…", {
      // …
      expires: /* now required */,
    });
Cloudflare · e411be7e2 breaking2 additive
  • Breaking

    resource_type is now required

    Every existing call that omits it is rejected.

    DELETE /zones/{zone_id}/tags · resource_type · 2 call sites
    Code that breaks
    await client.post("/zones/{zone_id}/tags", {
      // …
      resource_type: /* now required */,
    });
  • Breaking

    resource_id is now required

    Every existing call that omits it is rejected.

    DELETE /accounts/{account_id}/tags · resource_id · 2 call sites
    Code that breaks
    await client.post("/accounts/{account_id}/tags", {
      // …
      resource_id: /* now required */,
    });
  • Additive

    worker_id is now optional

    No action needed.

    DELETE /accounts/{account_id}/tags · worker_id
  • Additive

    access_application_id is now optional

    No action needed.

    DELETE /zones/{zone_id}/tags · access_application_id
Cloudflare · c9c3af4c1 breaking3 additive
  • Breakingdirection flip: their tools call this safe

    type can now return "d1"

    Producer-side tools call this additive. It breaks exhaustive switches, strict parsers and generated client enums.

    can now return "d1"

    10 places: POST /accounts/{account_id}/ai-search/instances · result.type, GET /accounts/{account_id}/ai-search/instances · result[].type, GET /accounts/{account_id}/ai-search/instances/{id} · result.type, PUT /accounts/{account_id}/ai-search/instances/{id} · result.type, DELETE /accounts/{account_id}/ai-search/instances/{id} · result.type, GET /accounts/{account_id}/ai-search/namespaces/{namespace}/instances · result[].type +4 more
    Code that breaks
    switch (response.result.type) {
      // existing branches …
      // no branch for "d1"
      default:
        throw new Error("unexpected type");
    }
  • Additive

    Request property d1 added

    No action needed unless it is required.

    PUT /accounts/{account_id}/ai-search/instances/{id} · source_params.d1 · 4 call sites
2 new response fields
  • result.source_params.d1
  • result[].source_params.d1
Cloudflare · 8cf78d451 breaking1 additive
  • Breakingdirection flip: their tools call this safe

    compliance_status can now return "configmanager", "conflict"

    Producer-side tools call this additive. It breaks exhaustive switches, strict parsers and generated client enums.

    teams-devices_intune_input_request.compliance_status · reachable from 4 operations
    Code that breaks
    switch (response.compliance_status) {
      // existing branches …
      // no branch for "configmanager"
      // no branch for "conflict"
      default:
        throw new Error("unexpected compliance_status");
    }
  • Additive

    Request property fallback_domains added

    No action needed unless it is required.

    POST /accounts/{account_id}/devices/policy · fallback_domains
Cloudflare · 27e2295f1 behavioral5 additive
3 new request properties
  • based_on
  • definition
  • revision
Cloudflare · c74e0f9b10 additive
10 new response fields
  • r2-data-catalog_table-compaction-config.next_eligible_reason
  • r2-data-catalog_table-snapshot-expiration-config.next_eligible_reason
  • result.servers[].updated_prompts[].server_enabled
  • result.servers[].updated_prompts[].portal_enabled
  • result.servers[].updated_tools[].portal_enabled
  • result.servers[].updated_tools[].server_enabled
  • result[].servers[].updated_tools[].server_enabled
  • result[].servers[].updated_prompts[].server_enabled
  • result[].servers[].updated_prompts[].portal_enabled
  • result[].servers[].updated_tools[].portal_enabled
Cloudflare · c1489e8e3 additive
3 new response fields
  • logpush_logpush_job.destination_name
  • logpush_logpush_job_response_single.result.destination_name
  • logpush_logpush_job_response_collection.result[].destination_name
Cloudflare · e164445711 additive
  • Additive

    quality is now optional

    No action needed.

    GET /accounts/{account_id}/cloudforce-one/v2/brand-protection/domain/matches · quality
10 new response fields
  • account.mixesDatasetKinds
  • user.mixesDatasetKinds
  • matches[].match_details[].ai_verdict
  • matches[].match_details[].edit_distance
  • matches[].match_details[].match_category
  • matches[].match_details[].quality
  • matches[].ai_verdict
  • matches[].edit_distance
  • matches[].match_category
  • matches[].quality
Cloudflare · 6ed2125b16 additive
7 new response fields
  • workers_observability-2.agents
  • workers_observability.agents
  • workers_Preview.observability.agents
  • workers_PreviewsBaseConfig.observability.agents
  • workers_Worker.observability.agents
  • workers_Worker.previews_base_config.observability.agents
  • workers_script-settings-item.observability.agents
9 new request properties
  • workers_observability-2.agents
  • observability.agents
  • workers_observability.agents
  • workers_Worker.observability.agents
  • workers_Preview.observability.agents
  • workers_PreviewsBaseConfig.observability.agents
  • workers_Worker.previews_base_config.observability.agents
  • previews_base_config.observability.agents
  • workers_script-settings-item.observability.agents
Cloudflare · 2435f6383 breaking
  • Breaking

    errors changed type

    Parse failure, or silent coercion depending on your client.

    cloudforce-one-requests_api-response-common-failure.errors · reachable from 23 operations
    Code that breaks
    // payload.errors
    // was: object
    // now: array
  • Breaking

    Response field code removed

    Reads of this field return undefined, and the failure surfaces wherever that value is used rather than at the call.

    cloudforce-one-requests_api-response-common-failure.errors.code · reachable from 23 operations
    Code that breaks
    // response.errors.code is now undefined
    const code = response.errors.code;
  • Breaking

    Response field message removed

    cloudforce-one-requests_api-response-common-failure.errors.message · reachable from 23 operations
    Code that breaks
    // response.errors.message is now undefined
    const message = response.errors.message;
Cloudflare · 756f9aff1 breaking
  • Breakingdirection flip: their tools call this safe

    network is no longer accepted

    Usually ignored rather than rejected, so the call succeeds and does something subtly different.

    PATCH /accounts/{account_id}/zerotrust/subnets/warp/{subnet_id} · network
    Code that breaks
    await client.post("/accounts/{account_id}/zerotrust/subnets/warp/{subnet_id}", {
      // network is now ignored, not rejected
      network: value,
    });
Cloudflare · 8784a0dc1 breaking6 additive
3 new response fields
  • aaa_filters.check_id
  • aaa_filters.query_id
  • aaa_filters.total_spend_dollars
3 new request properties
  • aaa_filters.check_id
  • aaa_filters.query_id
  • aaa_filters.total_spend_dollars
Cloudflare · e305dc354 additive
Cloudflare · 3f0f363c1 breaking1 additive
  • Breaking

    Response field key removed

    Reads of this field return undefined, and the failure surfaces wherever that value is used rather than at the call.

    calls_turn_key_with_key.key · reachable from 1 operation
    Code that breaks
    // response.key is now undefined
    const key = response.key;
  • Additive

    Response field secret added

    No action needed unless you validate responses against a closed schema.

    calls_turn_key_with_key.secret · reachable from 1 operation
Cloudflare · 047d19a61 breaking
  • Breakingdirection flip: their tools call this safe

    value can now return "domain"

    Producer-side tools call this additive. It breaks exhaustive switches, strict parsers and generated client enums.

    abuse-reports_MitigatedEntityType · reachable from 2 operations
    Code that breaks
    switch (response) {
      // existing branches …
      // no branch for "domain"
      default:
        throw new Error("unexpected value");
    }
Cloudflare · 09dff3261 breaking
  • Breaking

    include_subdomains changed type

    Parse failure, or silent coercion depending on your client.

    GET /zones/{zone_id}/hold · result.include_subdomains · 4 call sites
    Code that breaks
    // payload.result.include_subdomains
    // was: string
    // now: boolean