openapi: 3.2.0 info: description: Welcome to Cloudflare's API documentation site. license: name: BSD-3-Clause url: https://opensource.org/licenses/BSD-3-Clause title: Cloudflare Workers for Platforms API version: 4.0.0 servers: - description: Client API url: https://api.cloudflare.com/client/v4 security: - api_email: [] api_key: [] - api_token: [] - user_service_key: [] tags: - name: Workers for Platforms paths: /accounts/{account_id}/workers/dispatch/namespaces: get: operationId: namespace-worker-list summary: List Workers for Platforms Dispatch Namespaces description: Fetch a list of Workers for Platforms dispatch namespaces. parameters: - name: account_id in: path required: true schema: $ref: '#/components/schemas/workers_identifier' responses: '200': description: Fetch a list of Workers for Platforms namespaces. content: application/json: schema: $ref: '#/components/schemas/workers_namespace-list-response' 4XX: description: Failure to get list of Workers for Platforms namespaces. content: application/json: schema: $ref: '#/components/schemas/workers_api-response-common-failure' security: - api_token: [] - api_email: [] api_key: [] tags: - Workers for Platforms x-api-token-group: - Workers Tail Read - Workers Scripts Write - Workers Scripts Read x-fern-availability: generally-available x-fern-sdk-group-name: workers-for-platforms.dispatch-namespaces x-fern-sdk-method-name: list post: operationId: namespace-worker-create summary: Create Workers for Platforms Dispatch Namespace description: Create a new Workers for Platforms dispatch namespace. parameters: - name: account_id in: path required: true schema: $ref: '#/components/schemas/workers_identifier' requestBody: required: true content: application/json: schema: type: object properties: name: description: The name of the dispatch namespace. type: string example: my-dispatch-namespace x-auditable: true responses: '200': description: Fetch a list of Workers for Platforms namespaces. content: application/json: schema: $ref: '#/components/schemas/workers_namespace-single-response' 4XX: description: Failure to get list of Workers for Platforms namespaces. content: application/json: schema: $ref: '#/components/schemas/workers_api-response-common-failure' security: - api_token: [] - api_email: [] api_key: [] tags: - Workers for Platforms x-api-token-group: - Workers Scripts Write x-fern-availability: generally-available x-fern-sdk-group-name: workers-for-platforms.dispatch-namespaces x-fern-sdk-method-name: create /accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace}: delete: operationId: namespace-worker-delete-namespace summary: Delete Workers for Platforms Dispatch Namespace description: Delete a Workers for Platforms dispatch namespace. parameters: - name: account_id in: path required: true schema: $ref: '#/components/schemas/workers_identifier' - name: dispatch_namespace in: path required: true schema: $ref: '#/components/schemas/workers_dispatch_namespace_name' responses: '200': description: Delete a Workers for Platforms namespace. content: application/json: schema: $ref: '#/components/schemas/workers_api-response-null-result' 4XX: description: Failure to delete Workers for Platforms namespace. content: application/json: schema: $ref: '#/components/schemas/workers_api-response-common-failure' security: - api_token: [] - api_email: [] api_key: [] tags: - Workers for Platforms x-api-token-group: - Workers Scripts Write x-fern-availability: generally-available x-fern-sdk-group-name: workers-for-platforms.dispatch-namespaces x-fern-sdk-method-name: delete x-forge-require-confirmation: This will permanently delete the Workers for Platforms dispatch namespace. get: operationId: namespace-worker-get-namespace summary: Get Workers for Platforms Dispatch Namespace description: Get a Workers for Platforms dispatch namespace. parameters: - name: account_id in: path required: true schema: $ref: '#/components/schemas/workers_identifier' - name: dispatch_namespace in: path required: true schema: $ref: '#/components/schemas/workers_dispatch_namespace_name' responses: '200': description: Get a Workers for Platforms namespace. content: application/json: schema: $ref: '#/components/schemas/workers_namespace-single-response' 4XX: description: Failure to get Workers for Platforms namespace. content: application/json: schema: $ref: '#/components/schemas/workers_api-response-common-failure' security: - api_token: [] - api_email: [] api_key: [] tags: - Workers for Platforms x-api-token-group: - Workers Tail Read - Workers Scripts Write - Workers Scripts Read x-fern-availability: generally-available x-fern-sdk-group-name: workers-for-platforms.dispatch-namespaces x-fern-sdk-method-name: get patch: operationId: namespace-worker-patch-namespace summary: Patch Workers for Platforms Dispatch Namespace description: Patch a Workers for Platforms dispatch namespace. Omitted fields are left unchanged. parameters: - name: account_id in: path required: true schema: $ref: '#/components/schemas/workers_identifier' - name: dispatch_namespace in: path required: true schema: $ref: '#/components/schemas/workers_dispatch_namespace_name' requestBody: required: true content: application/json: schema: type: object properties: name: description: The name of the dispatch namespace. type: string example: my-dispatch-namespace x-auditable: true trusted_workers: $ref: '#/components/schemas/workers_trusted_workers' responses: '200': description: Patch a Workers for Platforms namespace. content: application/json: schema: $ref: '#/components/schemas/workers_namespace-single-response' 4XX: description: Failure to patch Workers for Platforms namespace. content: application/json: schema: $ref: '#/components/schemas/workers_api-response-common-failure' security: - api_token: [] - api_email: [] api_key: [] tags: - Workers for Platforms x-api-token-group: - Workers Scripts Write x-fern-audiences: - sdk x-fern-availability: generally-available x-fern-sdk-group-name: workers-for-platforms.dispatch-namespaces x-fern-sdk-method-name: edit put: operationId: namespace-worker-put-namespace summary: Update Workers for Platforms Dispatch Namespace description: Update a Workers for Platforms dispatch namespace. parameters: - name: account_id in: path required: true schema: $ref: '#/components/schemas/workers_identifier' - name: dispatch_namespace in: path required: true schema: $ref: '#/components/schemas/workers_dispatch_namespace_name' requestBody: required: true content: application/json: schema: type: object properties: name: description: The name of the dispatch namespace. type: string example: my-dispatch-namespace x-auditable: true trusted_workers: $ref: '#/components/schemas/workers_trusted_workers' responses: '200': description: Update a Workers for Platforms namespace. content: application/json: schema: $ref: '#/components/schemas/workers_namespace-single-response' 4XX: description: Failure to update Workers for Platforms namespace. content: application/json: schema: $ref: '#/components/schemas/workers_api-response-common-failure' security: - api_token: [] - api_email: [] api_key: [] tags: - Workers for Platforms x-api-token-group: - Workers Scripts Write x-fern-audiences: - sdk x-fern-availability: generally-available x-fern-sdk-group-name: workers-for-platforms.dispatch-namespaces x-fern-sdk-method-name: update /accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace}/scripts: delete: operationId: namespace-worker-delete-scripts summary: Delete Workers for Platforms Scripts description: Delete multiple scripts from a Workers for Platforms dispatch namespace based on optional tag filters. parameters: - name: account_id in: path required: true schema: $ref: '#/components/schemas/workers_identifier' - name: dispatch_namespace in: path required: true schema: $ref: '#/components/schemas/workers_dispatch_namespace_name' - name: tags in: query description: 'Filter scripts by tags before deletion. Format: comma-separated list of tag:allowed pairs where allowed is ''yes'' or ''no''.' required: true schema: type: string example: production:yes,staging:no - name: limit in: query description: Limit the number of scripts to delete. schema: type: integer example: 1000 responses: '200': description: Delete scripts in namespace response. content: application/json: schema: $ref: '#/components/schemas/workers_namespace-script-delete-bulk-response' 4XX: description: Delete scripts in namespace response failure. content: application/json: schema: $ref: '#/components/schemas/workers_api-response-common-failure' security: - api_token: [] - api_email: [] api_key: [] tags: - Workers for Platforms x-api-token-group: - Workers Scripts Write x-fern-audiences: - sdk x-fern-availability: generally-available x-fern-sdk-group-name: workers-for-platforms.dispatch-namespaces.scripts x-fern-sdk-method-name: bulk-delete x-forge-require-confirmation: This will permanently delete matching scripts in the Workers for Platforms dispatch namespace. get: operationId: namespace-worker-list-scripts summary: List Workers for Platforms Scripts description: Fetch a list of scripts uploaded to a Workers for Platforms dispatch namespace. parameters: - name: account_id in: path required: true schema: $ref: '#/components/schemas/workers_identifier' - name: dispatch_namespace in: path required: true schema: $ref: '#/components/schemas/workers_dispatch_namespace_name' - name: tags in: query description: 'Filter scripts by tags. Format: comma-separated list of tag:allowed pairs where allowed is ''yes'' or ''no''.' schema: type: string example: production:yes,staging:no responses: '200': description: List scripts in namespace response. content: application/json: schema: allOf: - $ref: '#/components/schemas/workers_api-response-common' - properties: result: type: array items: $ref: '#/components/schemas/workers_namespace-script-response' required: - result type: object 4XX: description: List scripts in namespace response failure. content: application/json: schema: $ref: '#/components/schemas/workers_api-response-common-failure' security: - api_token: [] - api_email: [] api_key: [] tags: - Workers for Platforms x-api-token-group: - Workers Tail Read - Workers Scripts Write - Workers Scripts Read x-fern-availability: generally-available x-fern-sdk-group-name: workers-for-platforms.dispatch-namespaces.scripts x-fern-sdk-method-name: list /accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace}/scripts/{script_name}: delete: operationId: namespace-worker-script-delete-worker summary: Delete Workers for Platforms Script description: Delete a script from a Workers for Platforms dispatch namespace. This call has no response body on a successful delete. parameters: - name: account_id in: path required: true schema: $ref: '#/components/schemas/workers_identifier' - name: dispatch_namespace in: path required: true schema: $ref: '#/components/schemas/workers_dispatch_namespace_name' - name: script_name in: path required: true schema: $ref: '#/components/schemas/workers_script_name' - name: force in: query description: If true, delete the script even when other Workers still reference it. Service bindings in those Workers may be left broken. Durable Object namespaces implemented by the deleted script are deleted even if other Workers reference them. schema: type: boolean x-fern-parameter-name: delete-with-references responses: '200': description: Delete Worker response. content: application/json: schema: $ref: '#/components/schemas/workers_api-response-null-result' 4XX: description: Delete Worker response failure. content: application/json: schema: $ref: '#/components/schemas/workers_api-response-common-failure' security: - api_token: [] - api_email: [] api_key: [] tags: - Workers for Platforms x-api-token-group: - Workers Scripts Write x-fern-availability: generally-available x-fern-sdk-group-name: workers-for-platforms.dispatch-namespaces.scripts x-fern-sdk-method-name: delete x-forge-require-confirmation: This will permanently delete the Workers for Platforms script. get: operationId: namespace-worker-script-worker-details summary: Get Workers for Platforms Script details description: Fetch information about a script uploaded to a Workers for Platforms dispatch namespace. parameters: - name: account_id in: path required: true schema: $ref: '#/components/schemas/workers_identifier' - name: dispatch_namespace in: path required: true schema: $ref: '#/components/schemas/workers_dispatch_namespace_name' - name: script_name in: path required: true schema: $ref: '#/components/schemas/workers_script_name' responses: '200': description: Worker Details Response (Workers for Platforms). content: application/json: schema: $ref: '#/components/schemas/workers_namespace-script-response-single' 4XX: description: Worker Details Failure (Workers for Platforms). content: application/json: schema: $ref: '#/components/schemas/workers_api-response-common-failure' security: - api_token: [] - api_email: [] api_key: [] tags: - Workers for Platforms x-api-token-group: - Workers Tail Read - Workers Scripts Write - Workers Scripts Read x-fern-availability: generally-available x-fern-sdk-group-name: workers-for-platforms.dispatch-namespaces.scripts x-fern-sdk-method-name: get put: operationId: namespace-worker-script-upload-worker-module summary: Upload Workers for Platforms Script Module description: 'Upload a Workers for Platforms script module to a dispatch namespace. You can find more about the multipart metadata on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/.' parameters: - name: account_id in: path required: true schema: $ref: '#/components/schemas/workers_identifier' - name: dispatch_namespace in: path required: true schema: $ref: '#/components/schemas/workers_dispatch_namespace_name' - name: script_name in: path required: true schema: $ref: '#/components/schemas/workers_script_name' - name: bindings_inherit in: query description: When set to "strict", the upload will fail if any `inherit` type bindings cannot be resolved against the previous version of the script. Without this, unresolvable inherit bindings are silently dropped. schema: type: string enum: - strict requestBody: $ref: '#/components/requestBodies/workers_namespace_upload' responses: '200': $ref: '#/components/responses/workers_200' 4XX: $ref: '#/components/responses/workers_4XX' security: - api_token: [] - api_email: [] api_key: [] tags: - Workers for Platforms x-api-token-group: - Workers Scripts Write x-fern-audiences: - sdk x-fern-availability: generally-available x-fern-sdk-group-name: workers-for-platforms.dispatch-namespaces.scripts x-fern-sdk-method-name: update /accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace}/scripts/{script_name}/assets-upload-session: post: operationId: namespace-worker-script-update-create-assets-upload-session summary: Create Workers for Platforms Assets Upload Session description: Start uploading a collection of assets for use in a Workers for Platforms script version. To learn more about the direct uploads of assets, see https://developers.cloudflare.com/workers/static-assets/direct-upload/. parameters: - name: account_id in: path required: true schema: $ref: '#/components/schemas/workers_identifier' - name: dispatch_namespace in: path required: true schema: $ref: '#/components/schemas/workers_dispatch_namespace_name' - name: script_name in: path required: true schema: $ref: '#/components/schemas/workers_script_name' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/workers_create-assets-upload-session-object' responses: '200': description: Create Assets Upload Session response. content: application/json: schema: $ref: '#/components/schemas/workers_create-assets-upload-session-response' 4XX: description: Create Assets Upload Session response failure. content: application/json: schema: $ref: '#/components/schemas/workers_api-response-common-failure' security: - api_token: [] - api_email: [] api_key: [] tags: - Workers for Platforms x-fern-audiences: - sdk x-fern-availability: generally-available x-fern-sdk-group-name: workers-for-platforms.dispatch-namespaces.scripts.assets.upload x-fern-sdk-method-name: create-session /accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace}/scripts/{script_name}/bindings: get: operationId: namespace-worker-get-script-bindings summary: Get Workers for Platforms Script Bindings description: Fetch bindings from a script uploaded to a Workers for Platforms dispatch namespace. parameters: - name: account_id in: path required: true schema: $ref: '#/components/schemas/workers_identifier' - name: dispatch_namespace in: path required: true schema: $ref: '#/components/schemas/workers_dispatch_namespace_name' - name: script_name in: path required: true schema: $ref: '#/components/schemas/workers_script_name' responses: '200': description: Fetch script bindings (Workers for Platforms). content: application/json: schema: allOf: - $ref: '#/components/schemas/workers_api-response-common' - properties: result: $ref: '#/components/schemas/workers_bindings' required: - result type: object 4XX: description: Fetch script bindings failure (Workers for Platforms). content: application/json: schema: $ref: '#/components/schemas/workers_api-response-common-failure' security: - api_token: [] - api_email: [] api_key: [] tags: - Workers for Platforms x-api-token-group: - Workers Tail Read - Workers Scripts Write - Workers Scripts Read x-fern-availability: generally-available x-fern-sdk-group-name: workers-for-platforms.dispatch-namespaces.scripts.bindings x-fern-sdk-method-name: get /accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace}/scripts/{script_name}/content: get: operationId: namespace-worker-get-script-content summary: Get Workers for Platforms Script Content description: Fetch content from a script uploaded to a Workers for Platforms dispatch namespace. parameters: - name: account_id in: path required: true schema: $ref: '#/components/schemas/workers_identifier' - name: dispatch_namespace in: path required: true schema: $ref: '#/components/schemas/workers_dispatch_namespace_name' - name: script_name in: path required: true schema: $ref: '#/components/schemas/workers_script_name' responses: '200': description: Get script content. content: string: schema: type: string example: "export default {\n async fetch(request, env, ctx) {\n return new Response(\"Hello, world!\");\n }\n};\n" 4XX: description: Get script content failure. content: application/json: schema: $ref: '#/components/schemas/workers_api-response-common-failure' security: - api_token: [] - api_email: [] api_key: [] tags: - Workers for Platforms x-api-token-group: - Workers Tail Read - Workers Scripts Write - Workers Scripts Read x-fern-audiences: - sdk x-fern-availability: generally-available x-fern-sdk-group-name: workers-for-platforms.dispatch-namespaces.scripts.content x-fern-sdk-method-name: get put: operationId: namespace-worker-put-script-content summary: Replace Workers for Platforms Script Content description: Replace content for a script uploaded to a Workers for Platforms dispatch namespace. parameters: - name: account_id in: path required: true schema: $ref: '#/components/schemas/workers_identifier' - name: dispatch_namespace in: path required: true schema: $ref: '#/components/schemas/workers_dispatch_namespace_name' - name: script_name in: path required: true schema: $ref: '#/components/schemas/workers_script_name' - name: CF-WORKER-BODY-PART in: header description: The multipart name of a script upload part containing script content in service worker format. Alternative to including in a metadata part. schema: type: string - name: CF-WORKER-MAIN-MODULE-PART in: header description: The multipart name of a script upload part containing script content in es module format. Alternative to including in a metadata part. schema: type: string requestBody: required: true content: multipart/form-data: encoding: files: contentType: application/javascript+module, text/javascript+module, application/javascript, text/javascript, text/x-python, text/x-python-requirement, application/wasm, text/plain, application/octet-stream, application/source-map metadata: contentType: application/json schema: type: object properties: files: description: 'An array of modules (often JavaScript files) comprising a Worker script. At least one module must be present and referenced in the metadata as `main_module` or `body_part` by filename.
Possible Content-Type(s) are: `application/javascript+module`, `text/javascript+module`, `application/javascript`, `text/javascript`, `text/x-python`, `text/x-python-requirement`, `application/wasm`, `text/plain`, `application/octet-stream`, `application/source-map`.' type: array items: format: binary type: string x-stainless-collection-type: set metadata: description: JSON-encoded metadata about the uploaded parts and Worker configuration. type: object properties: body_part: description: Name of the part in the multipart request that contains the script (e.g. the file adding a listener to the `fetch` event). Indicates a `service worker syntax` Worker. type: string example: worker.js main_module: description: Name of the part in the multipart request that contains the main module (e.g. the file exporting a `fetch` handler). Indicates a `module syntax` Worker. type: string example: worker.js required: - metadata responses: '200': description: Put script content (Workers for Platforms). content: application/json: schema: $ref: '#/components/schemas/workers_script-response-single' 4XX: description: Put script content failure (Workers for Platforms). content: application/json: schema: $ref: '#/components/schemas/workers_api-response-common-failure' security: - api_token: [] - api_email: [] api_key: [] tags: - Workers for Platforms x-api-token-group: - Workers Scripts Write x-fern-audiences: - sdk x-fern-availability: generally-available x-fern-sdk-group-name: workers-for-platforms.dispatch-namespaces.scripts.content x-fern-sdk-method-name: update /accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace}/scripts/{script_name}/secrets: get: operationId: namespace-worker-list-script-secrets summary: List Workers for Platforms Script Secrets description: List secrets bound to a script uploaded to a Workers for Platforms dispatch namespace. parameters: - name: account_id in: path required: true schema: $ref: '#/components/schemas/workers_identifier' - name: dispatch_namespace in: path required: true schema: $ref: '#/components/schemas/workers_dispatch_namespace_name' - name: script_name in: path required: true schema: $ref: '#/components/schemas/workers_script_name' responses: '200': description: List script secrets. content: application/json: schema: allOf: - $ref: '#/components/schemas/workers_api-response-common' - properties: result: type: array items: $ref: '#/components/schemas/workers_secret' required: - result type: object 4XX: description: List script secrets failure. content: application/json: schema: $ref: '#/components/schemas/workers_api-response-common-failure' security: - api_token: [] - api_email: [] api_key: [] tags: - Workers for Platforms x-api-token-group: - Workers Tail Read - Workers Scripts Write - Workers Scripts Read x-fern-availability: generally-available x-fern-sdk-group-name: workers-for-platforms.dispatch-namespaces.scripts.secrets x-fern-sdk-method-name: list put: operationId: namespace-worker-put-script-secrets summary: Add a secret to a Workers for Platforms script description: 'Add a secret to a Workers for Platforms script by creating a new version with that secret. When changing more than one secret at a time, prefer the "Patch multiple script secrets" API instead of changing many secrets individually.' parameters: - name: account_id in: path required: true schema: $ref: '#/components/schemas/workers_identifier' - name: dispatch_namespace in: path required: true schema: $ref: '#/components/schemas/workers_dispatch_namespace_name' - name: script_name in: path required: true schema: $ref: '#/components/schemas/workers_script_name' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/workers_secret' responses: '200': description: Fetch script bindings (Workers for Platforms). content: application/json: schema: allOf: - $ref: '#/components/schemas/workers_api-response-common' - properties: result: $ref: '#/components/schemas/workers_secret' required: - result type: object '429': description: Too many requests are currently modifying the script. content: application/json: schema: $ref: '#/components/schemas/workers_api-response-common-failure' 4XX: description: Fetch script bindings failure (Workers for Platforms). content: application/json: schema: $ref: '#/components/schemas/workers_api-response-common-failure' security: - api_token: [] - api_email: [] api_key: [] tags: - Workers for Platforms x-api-token-group: - Workers Scripts Write x-fern-availability: generally-available x-fern-sdk-group-name: workers-for-platforms.dispatch-namespaces.scripts.secrets x-fern-sdk-method-name: update /accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace}/scripts/{script_name}/secrets-bulk: patch: operationId: namespace-worker-patch-script-secrets-bulk summary: Patch multiple Workers for Platforms script secrets description: 'Create, update, or delete multiple secrets on a Workers for Platforms script in a single operation using JSON Merge Patch (RFC 7396). This operation creates a single version with all changes included. Prefer this API instead of changing many secrets individually. Usage: - To create or update a secret, set its value to a secret object. - To delete a secret, set its value to `null`. - Secrets not included in the request are left unchanged.' parameters: - name: account_id in: path required: true schema: $ref: '#/components/schemas/workers_identifier' - name: dispatch_namespace in: path required: true schema: $ref: '#/components/schemas/workers_dispatch_namespace_name' - name: script_name in: path required: true schema: $ref: '#/components/schemas/workers_script_name' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/workers_secret-patch-request' application/merge-patch+json: schema: $ref: '#/components/schemas/workers_secret-patch-request' responses: '200': description: Patch script secrets bulk success (Workers for Platforms). content: application/json: schema: allOf: - $ref: '#/components/schemas/workers_api-response-common' - properties: result: $ref: '#/components/schemas/workers_secret-patch-response' required: - result type: object '429': description: Too many requests are currently modifying the script. content: application/json: schema: $ref: '#/components/schemas/workers_api-response-common-failure' 4XX: description: Patch script secrets bulk failure (Workers for Platforms). content: application/json: schema: $ref: '#/components/schemas/workers_api-response-common-failure' security: - api_token: [] - api_email: [] api_key: [] tags: - Workers for Platforms x-fern-availability: generally-available x-fern-sdk-group-name: workers-for-platforms.dispatch-namespaces.scripts.secrets x-fern-sdk-method-name: bulk /accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace}/scripts/{script_name}/secrets/{secret_name}: delete: operationId: namespace-worker-delete-script-secret summary: Delete Workers for Platforms script secret description: 'Remove a secret from a Workers for Platforms script by creating a new version without that secret. When changing more than one secret at a time, prefer the "Patch multiple script secrets" API instead of changing many secrets individually.' parameters: - name: account_id in: path required: true schema: $ref: '#/components/schemas/workers_identifier' - name: dispatch_namespace in: path required: true schema: $ref: '#/components/schemas/workers_dispatch_namespace_name' - name: script_name in: path required: true schema: $ref: '#/components/schemas/workers_script_name' - name: secret_name in: path required: true schema: $ref: '#/components/schemas/workers_secret_name' - name: url_encoded in: query schema: $ref: '#/components/schemas/workers_secret_name_url_encoded' responses: '200': description: Delete script secret binding (Workers for Platforms). content: application/json: schema: $ref: '#/components/schemas/workers_api-response-null-result' 4XX: description: Delete script secret failure (Workers for Platforms). content: application/json: schema: $ref: '#/components/schemas/workers_api-response-common-failure' security: - api_token: [] - api_email: [] api_key: [] tags: - Workers for Platforms x-api-token-group: - Workers Scripts Write x-fern-availability: generally-available x-fern-sdk-group-name: workers-for-platforms.dispatch-namespaces.scripts.secrets x-fern-sdk-method-name: delete x-forge-require-confirmation: This will permanently delete the Workers for Platforms script secret. get: operationId: namespace-worker-get-script-secrets summary: Get Workers for Platforms Script Secret description: Get a given secret binding (value omitted) on a script uploaded to a Workers for Platforms dispatch namespace. parameters: - name: account_id in: path required: true schema: $ref: '#/components/schemas/workers_identifier' - name: dispatch_namespace in: path required: true schema: $ref: '#/components/schemas/workers_dispatch_namespace_name' - name: script_name in: path required: true schema: $ref: '#/components/schemas/workers_script_name' - name: secret_name in: path required: true schema: $ref: '#/components/schemas/workers_secret_name' - name: url_encoded in: query schema: $ref: '#/components/schemas/workers_secret_name_url_encoded' responses: '200': description: Get script secret (Workers for Platforms). content: application/json: schema: allOf: - $ref: '#/components/schemas/workers_api-response-common' - properties: result: $ref: '#/components/schemas/workers_secret' required: - result type: object 4XX: description: Get script secret failure (Workers for Platforms). content: application/json: schema: $ref: '#/components/schemas/workers_api-response-common-failure' security: - api_token: [] - api_email: [] api_key: [] tags: - Workers for Platforms x-api-token-group: - Workers Tail Read - Workers Scripts Write - Workers Scripts Read x-fern-availability: generally-available x-fern-sdk-group-name: workers-for-platforms.dispatch-namespaces.scripts.secrets x-fern-sdk-method-name: get /accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace}/scripts/{script_name}/settings: get: operationId: namespace-worker-get-script-settings summary: Get Workers for Platforms Script Settings description: Get settings for a script uploaded to a Workers for Platforms dispatch namespace. parameters: - name: account_id in: path required: true schema: $ref: '#/components/schemas/workers_identifier' - name: dispatch_namespace in: path required: true schema: $ref: '#/components/schemas/workers_dispatch_namespace_name' - name: script_name in: path required: true schema: $ref: '#/components/schemas/workers_script_name' responses: '200': description: Fetch script settings. content: application/json: schema: allOf: - $ref: '#/components/schemas/workers_api-response-common' - properties: result: $ref: '#/components/schemas/workers_namespace-script-and-version-settings-item' type: object 4XX: description: Fetch script settings failure. content: application/json: schema: $ref: '#/components/schemas/workers_api-response-common-failure' security: - api_token: [] - api_email: [] api_key: [] tags: - Workers for Platforms x-api-token-group: - Workers Tail Read - Workers Scripts Write - Workers Scripts Read x-fern-availability: generally-available x-fern-sdk-group-name: workers-for-platforms.dispatch-namespaces.scripts.settings x-fern-sdk-method-name: get patch: operationId: namespace-worker-patch-script-settings summary: Patch Workers for Platforms Script Settings description: Patch metadata for a script uploaded to a Workers for Platforms dispatch namespace, such as bindings. parameters: - name: account_id in: path required: true schema: $ref: '#/components/schemas/workers_identifier' - name: dispatch_namespace in: path required: true schema: $ref: '#/components/schemas/workers_dispatch_namespace_name' - name: script_name in: path required: true schema: $ref: '#/components/schemas/workers_script_name' requestBody: required: true content: multipart/form-data: encoding: settings: contentType: application/json schema: type: object properties: settings: $ref: '#/components/schemas/workers_namespace-script-and-version-settings-item' responses: '200': description: Patch script settings. content: application/json: schema: allOf: - $ref: '#/components/schemas/workers_api-response-common' - properties: result: $ref: '#/components/schemas/workers_namespace-script-and-version-settings-item' type: object 4XX: description: 'Patch script settings failure. When the patch uses the declarative `exports` field and one or more entries fail reconciliation, the response is the exports reconciliation error envelope (error code 100402) with per-class detail in `errors[].meta.details`. ' content: application/json: schema: anyOf: - $ref: '#/components/schemas/workers_api-response-common-failure' - $ref: '#/components/schemas/workers_exports_reconciliation_error_response' security: - api_token: [] - api_email: [] api_key: [] tags: - Workers for Platforms x-api-token-group: - Workers Scripts Write x-fern-availability: generally-available x-fern-sdk-group-name: workers-for-platforms.dispatch-namespaces.scripts.settings x-fern-sdk-method-name: edit /accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace}/scripts/{script_name}/tags: get: operationId: namespace-worker-get-script-tags summary: List Workers for Platforms Script Tags description: Fetch tags from a script uploaded to a Workers for Platforms dispatch namespace. parameters: - name: account_id in: path required: true schema: $ref: '#/components/schemas/workers_identifier' - name: dispatch_namespace in: path required: true schema: $ref: '#/components/schemas/workers_dispatch_namespace_name' - name: script_name in: path required: true schema: $ref: '#/components/schemas/workers_script_name' responses: '200': description: Fetch script tags. content: application/json: schema: allOf: - $ref: '#/components/schemas/workers_api-response-common' - properties: result: type: array items: $ref: '#/components/schemas/workers_tag' example: - free - customer type: object 4XX: description: Fetch script tags failure. content: application/json: schema: $ref: '#/components/schemas/workers_api-response-common-failure' security: - api_token: [] - api_email: [] api_key: [] tags: - Workers for Platforms x-api-token-group: - Workers Tail Read - Workers Scripts Write - Workers Scripts Read x-fern-availability: generally-available x-fern-sdk-group-name: workers-for-platforms.dispatch-namespaces.scripts.tags x-fern-sdk-method-name: list put: operationId: namespace-worker-put-script-tags summary: Replace Workers for Platforms Script Tags description: Replace tags for a script uploaded to a Workers for Platforms dispatch namespace. parameters: - name: account_id in: path required: true schema: $ref: '#/components/schemas/workers_identifier' - name: dispatch_namespace in: path required: true schema: $ref: '#/components/schemas/workers_dispatch_namespace_name' - name: script_name in: path required: true schema: $ref: '#/components/schemas/workers_script_name' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/workers_tags' responses: '200': description: Fetch script tags. content: application/json: schema: allOf: - $ref: '#/components/schemas/workers_api-response-common' - properties: result: type: array items: $ref: '#/components/schemas/workers_tag' example: - my-tag required: - result type: object 4XX: description: Fetch script tags failure. content: application/json: schema: $ref: '#/components/schemas/workers_api-response-common-failure' security: - api_token: [] - api_email: [] api_key: [] tags: - Workers for Platforms x-api-token-group: - Workers Scripts Write x-fern-availability: generally-available x-fern-sdk-group-name: workers-for-platforms.dispatch-namespaces.scripts.tags x-fern-sdk-method-name: update /accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace}/scripts/{script_name}/tags/{tag}: delete: operationId: namespace-worker-delete-script-tag summary: Delete Workers for Platforms Script Tag description: 'Delete a tag from a script uploaded to a Workers for Platforms dispatch namespace. On `api-version` dates on or after `2026-10-01`, `tag` identifies a key and the operation returns the complete updated tag map. Deleting a missing key succeeds. Earlier versions retain the legacy string-tag behavior and return a null result.' parameters: - name: account_id in: path required: true schema: $ref: '#/components/schemas/workers_identifier' - name: dispatch_namespace in: path required: true schema: $ref: '#/components/schemas/workers_dispatch_namespace_name' - name: script_name in: path required: true schema: $ref: '#/components/schemas/workers_script_name' - name: tag in: path required: true schema: oneOf: - allOf: - $ref: '#/components/schemas/workers_typed_tag_key' x-version-after: '2026-10-01T00:00:00Z' - allOf: - $ref: '#/components/schemas/workers_tag' x-version-before: '2026-10-01T00:00:00Z' - $ref: '#/components/parameters/workers_api_version_header' responses: '200': description: Delete script tag. headers: api-version: description: The resolved API compatibility date used to serve this request. schema: type: string pattern: ^\d{4}-\d{2}-\d{2}$ content: application/json: schema: oneOf: - allOf: - $ref: '#/components/schemas/workers_tags-kv-response' x-version-after: '2026-10-01T00:00:00Z' - allOf: - $ref: '#/components/schemas/workers_api-response-null-result' x-version-before: '2026-10-01T00:00:00Z' 4XX: description: Delete script tag failure. content: application/json: schema: $ref: '#/components/schemas/workers_api-response-common-failure' security: - api_token: [] - api_email: [] api_key: [] tags: - Workers for Platforms x-api-token-group: - Workers Scripts Write x-fern-availability: generally-available x-fern-sdk-group-name: workers-for-platforms.dispatch-namespaces.scripts.tags x-fern-sdk-method-name: delete x-forge-require-confirmation: This will delete the tag from the Workers for Platforms script. patch: operationId: namespace-worker-patch-script-tag summary: Update Workers for Platforms Script Tag description: 'Add or update one tag key/value on a script uploaded to a Workers for Platforms dispatch namespace without replacing its other tags. This operation requires an `api-version` on or after `2026-10-01`.' parameters: - name: account_id in: path required: true schema: $ref: '#/components/schemas/workers_identifier' - name: dispatch_namespace in: path required: true schema: $ref: '#/components/schemas/workers_dispatch_namespace_name' - name: script_name in: path required: true schema: $ref: '#/components/schemas/workers_script_name' - name: tag in: path description: Tag key. Cloudflare-reserved prefixes are not accepted. required: true schema: $ref: '#/components/schemas/workers_typed_tag_key' - $ref: '#/components/parameters/workers_api_version_header' requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/workers_tag_patch' responses: '200': description: The complete updated tag map. headers: api-version: description: The resolved API compatibility date used to serve this request. schema: type: string pattern: ^\d{4}-\d{2}-\d{2}$ content: application/json: schema: $ref: '#/components/schemas/workers_tags-kv-response' 4XX: description: Update script tag failure. content: application/json: schema: $ref: '#/components/schemas/workers_api-response-common-failure' security: - api_token: [] - api_email: [] api_key: [] tags: - Workers for Platforms x-fern-audiences: - sdk x-fern-availability: generally-available x-fern-sdk-group-name: workers-for-platforms.dispatch-namespaces.scripts.tags x-fern-sdk-method-name: edit put: operationId: namespace-worker-put-script-tag summary: Create Workers for Platforms Script Tag description: Add a single tag to a script uploaded to a Workers for Platforms dispatch namespace. parameters: - name: account_id in: path required: true schema: $ref: '#/components/schemas/workers_identifier' - name: dispatch_namespace in: path required: true schema: $ref: '#/components/schemas/workers_dispatch_namespace_name' - name: script_name in: path required: true schema: $ref: '#/components/schemas/workers_script_name' - name: tag in: path required: true schema: $ref: '#/components/schemas/workers_tag' responses: '200': description: Put script tag. content: application/json: schema: $ref: '#/components/schemas/workers_api-response-null-result' 4XX: description: Put script tag failure. content: application/json: schema: $ref: '#/components/schemas/workers_api-response-common-failure' security: - api_token: [] - api_email: [] api_key: [] tags: - Workers for Platforms x-api-token-group: - Workers Scripts Write x-fern-audiences: - sdk x-fern-availability: generally-available x-fern-sdk-group-name: workers-for-platforms.dispatch-namespaces.scripts.tags x-fern-sdk-method-name: create components: schemas: workers_namespace-response: type: object properties: created_by: $ref: '#/components/schemas/workers_identifier' created_on: $ref: '#/components/schemas/workers_created_on' modified_by: $ref: '#/components/schemas/workers_identifier' modified_on: $ref: '#/components/schemas/workers_modified_on' namespace_id: $ref: '#/components/schemas/workers_uuid' namespace_name: $ref: '#/components/schemas/workers_dispatch_namespace_name' script_count: $ref: '#/components/schemas/workers_script_count' trusted_workers: $ref: '#/components/schemas/workers_trusted_workers' workers_placement_mode: description: Configuration for [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). Specify mode='smart' for Smart Placement, or one of region/hostname/host. type: string enum: - smart - targeted x-auditable: true workers_binding_kind_secrets_store_secret: type: object properties: name: $ref: '#/components/schemas/workers_binding_name' secret_name: description: Name of the secret in the store. type: string example: my_secret x-auditable: true store_id: description: ID of the store containing the secret. type: string example: 8c8b1387108e49be85669169793e7bd2 x-auditable: true type: description: The kind of resource that the binding provides. type: string enum: - secrets_store_secret x-auditable: true required: - name - type - store_id - secret_name workers_tail_consumers: description: List of Workers that will consume logs from the attached Worker. type: - array - 'null' items: $ref: '#/components/schemas/workers_tail_consumers_script' x-stainless-collection-type: set workers_binding_kind_data_blob: type: object properties: name: $ref: '#/components/schemas/workers_binding_name' part: description: The name of the file containing the data content. Only accepted for `service worker syntax` Workers. type: string example: my-module.bin x-auditable: true type: description: The kind of resource that the binding provides. type: string enum: - data_blob deprecated: true x-auditable: true required: - name - type - part workers_secret: description: A secret value accessible through a binding. type: object discriminator: mapping: secret_key: '#/components/schemas/workers_binding_kind_secret_key' secret_text: '#/components/schemas/workers_binding_kind_secret_text' propertyName: type oneOf: - $ref: '#/components/schemas/workers_binding_kind_secret_text' - $ref: '#/components/schemas/workers_binding_kind_secret_key' workers_durable_object_export: description: 'A live Durable Object export (`state: created`, the default). The platform auto-provisions the namespace on first deploy, matches it on subsequent deploys, and never mutates or deletes it as a side effect of a code-only change. `storage` is required; `renamed_to`, `transferred_to` and `transfer_from` are not allowed on a live entry. ' type: object properties: container: description: 'Name of the container (declared in the upload''s `metadata.containers`) that backs this Durable Object. When set, the namespace is container-enabled. Valid only on live entries. ' type: string example: my-container maxLength: 128 state: description: Live export. May be omitted; defaults to `created`. type: string default: created enum: - created storage: $ref: '#/components/schemas/workers_export_storage' type: description: Marks this entry as a Durable Object export. type: string enum: - durable-object additionalProperties: false required: - type - storage workers_placement_status: description: Status of [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). type: string enum: - SUCCESS - UNSUPPORTED_APPLICATION - INSUFFICIENT_INVOCATIONS readOnly: true x-auditable: true workers_usage_model: description: Usage model for the Worker invocations. type: string example: standard default: standard enum: - standard - bundled - unbound x-auditable: true workers_binding_kind_ratelimit: type: object properties: name: $ref: '#/components/schemas/workers_binding_name' namespace_id: description: Identifier of the rate limit namespace to bind to. type: string example: '1234' x-auditable: true simple: description: The rate limit configuration. type: object properties: limit: description: The limit (requests per period). type: number example: 100 x-auditable: true mitigation_timeout: description: 'Duration in seconds to apply the mitigation action after the rate limit is exceeded. Valid values are 0 (disabled), 10, or multiples of 60 up to 86400. Must be greater than or equal to the period when non-zero. ' type: integer example: 60 x-auditable: true period: description: The period in seconds. type: integer example: 60 x-auditable: true required: - limit - period type: description: The kind of resource that the binding provides. type: string enum: - ratelimit x-auditable: true required: - name - type - namespace_id - simple workers_tag_patch: description: The value to assign to the tag key. An empty string is valid. The complete UTF-8 encoded tag (the key plus `=` and the value when the value is non-empty) must not exceed 1024 bytes. type: object properties: value: type: string example: production additionalProperties: false required: - value workers_binding_kind_assets: type: object properties: name: $ref: '#/components/schemas/workers_binding_name' type: description: The kind of resource that the binding provides. type: string enum: - assets x-auditable: true required: - name - type workers_uuid: description: API Resource UUID tag. type: string example: f174e90a-fafe-4643-bbbc-4a0ed4fc8415 maxLength: 36 x-auditable: true workers_binding_kind_vectorize: type: object properties: index_name: description: Name of the Vectorize index to bind to. type: string example: my-index-name x-auditable: true name: $ref: '#/components/schemas/workers_binding_name' type: description: The kind of resource that the binding provides. type: string enum: - vectorize x-auditable: true required: - name - type - index_name workers_binding_kind_inherit: type: object properties: name: description: The name of the inherited binding. type: string example: MY_BINDING x-auditable: true old_name: description: The old name of the inherited binding. If set, the binding will be renamed from `old_name` to `name` in the new version. If not set, the binding will keep the same name between versions. type: string example: MY_OLD_BINDING x-auditable: true type: description: The kind of resource that the binding provides. type: string enum: - inherit x-auditable: true version_id: description: Identifier for the version to inherit the binding from, which can be the version ID or the literal "latest" to inherit from the latest version. Defaults to inheriting the binding from the latest version. type: string example: 8969331f-7192-434c-9938-6aea24ed58bf default: latest x-auditable: true required: - name - type workers_script_count: description: The current number of scripts in this Dispatch Namespace. type: integer example: 800 workers_exports_config_map: description: 'Declarative exports for the Worker, keyed by export name. Worker entrypoint entries (`type: worker`) carry cache configuration for that entrypoint. Durable Object entries (`type: durable-object`) are also configured here and drive namespace reconciliation. At most 100 entries; class names are at most 128 characters. ' type: object example: Admin: cache: enabled: true type: worker Counter: storage: sqlite type: durable-object OldCounter: renamed_to: Counter state: renamed type: durable-object default: cache: enabled: false type: worker additionalProperties: $ref: '#/components/schemas/workers_export_config' maxProperties: 100 workers_binding_name: description: A JavaScript variable name for the binding. type: string example: myBinding x-auditable: true workers_exports_reconciliation_result: description: 'Summary of what the declarative exports reconciliation did on this upload. Present only on uploads that included an `exports` block. Reconciliation acts on Durable Object entries; `type: worker` entries in the same map do not participate. Every array is always present (possibly empty) so clients can iterate unconditionally. Clients should surface `warnings` prominently, render `info` at lower visibility, and use `removable_entries` as the "safe to delete from your config" hint. ' type: object properties: created: description: Class names for which a new namespace was provisioned. type: array items: type: string deleted: description: Class names whose namespace was deleted by a `deleted` tombstone. type: array items: type: string info: description: 'Non-blocking info entries (stale tombstones, tombstone applied with class still in code). See `exports_reconciliation_info`. ' type: array items: $ref: '#/components/schemas/workers_exports_reconciliation_info' removable_entries: description: 'Source class names whose tombstone entry is now stale and safe to delete from `exports` (no remaining referencing scripts). ' type: array items: type: string renamed: description: Applied `renamed` tombstones. type: array items: $ref: '#/components/schemas/workers_exports_reconciliation_rename' transfer_pending: description: Phase-1 transfer hints recorded on the target side. type: array items: $ref: '#/components/schemas/workers_exports_reconciliation_transfer_pending' transferred: description: Committed `transferred` tombstones (phase-2). type: array items: $ref: '#/components/schemas/workers_exports_reconciliation_transfer' updated: description: Class names whose provisioned namespace was mutated in place. type: array items: type: string warnings: description: Non-blocking warnings. See `exports_reconciliation_warning`. type: array items: $ref: '#/components/schemas/workers_exports_reconciliation_warning' readOnly: true required: - created - updated - deleted - renamed - transferred - transfer_pending - warnings - info - removable_entries workers_secret-patch-request: description: 'JSON Merge Patch (RFC 7396) request body for bulk secret changes. ' type: object properties: secrets: description: 'Map of secret names to secret values: - Set to a secret object to create or update. - Set to `null` to delete. - Omit to leave unchanged. ' type: object additionalProperties: allOf: - $ref: '#/components/schemas/workers_secret' type: - object - 'null' version_tags: description: Optional version tags to apply to the new script version. type: object additionalProperties: true workers_secret-patch-response: description: Map of secret names to secret metadata for resulting secrets. type: object additionalProperties: $ref: '#/components/schemas/workers_secret' workers_migration_step: type: object properties: deleted_classes: description: A list of classes to delete Durable Object namespaces from. type: array items: type: string x-auditable: true writeOnly: true new_classes: description: A list of classes to create Durable Object namespaces from. type: array items: type: string x-auditable: true writeOnly: true new_sqlite_classes: description: A list of classes to create Durable Object namespaces with SQLite from. type: array items: type: string x-auditable: true writeOnly: true renamed_classes: description: A list of classes with Durable Object namespaces that were renamed. type: array items: properties: from: type: string writeOnly: true x-auditable: true to: type: string writeOnly: true x-auditable: true type: object writeOnly: true transferred_classes: description: A list of transfers for Durable Object namespaces from a different Worker and class to a class defined in this Worker. type: array items: properties: from: type: string writeOnly: true x-auditable: true from_script: type: string writeOnly: true x-auditable: true to: type: string writeOnly: true x-auditable: true type: object writeOnly: true workers_create-assets-upload-session-object: type: object properties: manifest: description: 'A manifest ([path]: {hash, size}) map of files to upload. As an example, `/blog/hello-world.html` would be a valid path key.' type: object additionalProperties: $ref: '#/components/schemas/workers_manifest-value' required: - manifest workers_binding_item: description: A binding to allow the Worker to communicate with resources. type: object discriminator: mapping: ai: '#/components/schemas/workers_binding_kind_ai' ai_search: '#/components/schemas/workers_binding_kind_ai_search' ai_search_namespace: '#/components/schemas/workers_binding_kind_ai_search_namespace' analytics_engine: '#/components/schemas/workers_binding_kind_analytics_engine' artifacts: '#/components/schemas/workers_binding_kind_artifacts' assets: '#/components/schemas/workers_binding_kind_assets' browser: '#/components/schemas/workers_binding_kind_browser' d1: '#/components/schemas/workers_binding_kind_d1' data_blob: '#/components/schemas/workers_binding_kind_data_blob' dispatch_namespace: '#/components/schemas/workers_binding_kind_dispatch_namespace' durable_object_namespace: '#/components/schemas/workers_binding_kind_durable_object_namespace' flagship: '#/components/schemas/workers_binding_kind_flagship' hyperdrive: '#/components/schemas/workers_binding_kind_hyperdrive' images: '#/components/schemas/workers_binding_kind_images' inherit: '#/components/schemas/workers_binding_kind_inherit' json: '#/components/schemas/workers_binding_kind_json' k2: '#/components/schemas/workers_binding_kind_k2' kv_namespace: '#/components/schemas/workers_binding_kind_kv_namespace' media: '#/components/schemas/workers_binding_kind_media' messaging: '#/components/schemas/workers_binding_kind_messaging' mtls_certificate: '#/components/schemas/workers_binding_kind_mtls_certificate' pipelines: '#/components/schemas/workers_binding_kind_pipelines' plain_text: '#/components/schemas/workers_binding_kind_plain_text' queue: '#/components/schemas/workers_binding_kind_queue' r2_bucket: '#/components/schemas/workers_binding_kind_r2_bucket' ratelimit: '#/components/schemas/workers_binding_kind_ratelimit' secret_key: '#/components/schemas/workers_binding_kind_secret_key' secret_text: '#/components/schemas/workers_binding_kind_secret_text' secrets_store_secret: '#/components/schemas/workers_binding_kind_secrets_store_secret' send_email: '#/components/schemas/workers_binding_kind_send_email' service: '#/components/schemas/workers_binding_kind_service' text_blob: '#/components/schemas/workers_binding_kind_text_blob' vectorize: '#/components/schemas/workers_binding_kind_vectorize' version_metadata: '#/components/schemas/workers_binding_kind_version_metadata' vpc_network: '#/components/schemas/workers_binding_kind_vpc_network' vpc_service: '#/components/schemas/workers_binding_kind_vpc_service' wasm_module: '#/components/schemas/workers_binding_kind_wasm_module' workflow: '#/components/schemas/workers_binding_kind_workflow' propertyName: type oneOf: - $ref: '#/components/schemas/workers_binding_kind_ai' - $ref: '#/components/schemas/workers_binding_kind_ai_search' - $ref: '#/components/schemas/workers_binding_kind_ai_search_namespace' - $ref: '#/components/schemas/workers_binding_kind_messaging' - $ref: '#/components/schemas/workers_binding_kind_analytics_engine' - $ref: '#/components/schemas/workers_binding_kind_artifacts' - $ref: '#/components/schemas/workers_binding_kind_assets' - $ref: '#/components/schemas/workers_binding_kind_browser' - $ref: '#/components/schemas/workers_binding_kind_d1' - $ref: '#/components/schemas/workers_binding_kind_data_blob' - $ref: '#/components/schemas/workers_binding_kind_dispatch_namespace' - $ref: '#/components/schemas/workers_binding_kind_durable_object_namespace' - $ref: '#/components/schemas/workers_binding_kind_hyperdrive' - $ref: '#/components/schemas/workers_binding_kind_inherit' - $ref: '#/components/schemas/workers_binding_kind_images' - $ref: '#/components/schemas/workers_binding_kind_json' - $ref: '#/components/schemas/workers_binding_kind_kv_namespace' - $ref: '#/components/schemas/workers_binding_kind_media' - $ref: '#/components/schemas/workers_binding_kind_mtls_certificate' - $ref: '#/components/schemas/workers_binding_kind_plain_text' - $ref: '#/components/schemas/workers_binding_kind_pipelines' - $ref: '#/components/schemas/workers_binding_kind_k2' - $ref: '#/components/schemas/workers_binding_kind_queue' - $ref: '#/components/schemas/workers_binding_kind_ratelimit' - $ref: '#/components/schemas/workers_binding_kind_r2_bucket' - $ref: '#/components/schemas/workers_binding_kind_secret_text' - $ref: '#/components/schemas/workers_binding_kind_send_email' - $ref: '#/components/schemas/workers_binding_kind_service' - $ref: '#/components/schemas/workers_binding_kind_text_blob' - $ref: '#/components/schemas/workers_binding_kind_vectorize' - $ref: '#/components/schemas/workers_binding_kind_version_metadata' - $ref: '#/components/schemas/workers_binding_kind_secrets_store_secret' - $ref: '#/components/schemas/workers_binding_kind_flagship' - $ref: '#/components/schemas/workers_binding_kind_secret_key' - $ref: '#/components/schemas/workers_binding_kind_workflow' - $ref: '#/components/schemas/workers_binding_kind_wasm_module' - $ref: '#/components/schemas/workers_binding_kind_vpc_service' - $ref: '#/components/schemas/workers_binding_kind_vpc_network' workers_namespace-script-and-version-settings-item: description: 'Script and version settings for Workers for Platforms namespace scripts. Same as script-and-version-settings-item but without annotations, which are not supported for namespace scripts. ' type: object properties: bindings: allOf: - $ref: '#/components/schemas/workers_bindings' - default: [] items: $ref: '#/components/schemas/workers_binding_item' type: array cache_options: $ref: '#/components/schemas/workers_cache_options' compatibility_date: allOf: - $ref: '#/components/schemas/workers_compatibility_date' - default: '' type: string x-auditable: true compatibility_flags: allOf: - $ref: '#/components/schemas/workers_compatibility_flags' - default: [] items: type: string x-auditable: true type: array x-stainless-collection-type: set exports: description: 'Declarative exports for the Worker. Worker entrypoint entries (`type: worker`) carry cache configuration for that entrypoint. ' allOf: - $ref: '#/components/schemas/workers_exports_config_map' writeOnly: true exports_reconciliation: description: 'Summary of the declarative exports reconciliation that ran on this upload. Populated only when the uploaded metadata included an `exports` block. Durable Object entries drive reconciliation; `type: worker` entries do not contribute to this summary. ' allOf: - $ref: '#/components/schemas/workers_exports_reconciliation_result' limits: $ref: '#/components/schemas/workers_limits' logpush: $ref: '#/components/schemas/workers_logpush' migrations: description: 'Migrations to apply for Durable Objects associated with this Worker. ' oneOf: - $ref: '#/components/schemas/workers_single_step_migrations' - $ref: '#/components/schemas/workers_multiple_step_migrations' writeOnly: true observability: $ref: '#/components/schemas/workers_observability-2' placement: allOf: - $ref: '#/components/schemas/workers_placement_info_no_status' - default: {} type: object tags: allOf: - $ref: '#/components/schemas/workers_tags' - default: [] items: type: string x-auditable: true type: array x-stainless-collection-type: set tail_consumers: allOf: - $ref: '#/components/schemas/workers_tail_consumers' - default: [] items: $ref: '#/components/schemas/workers_tail_consumers_script' type: array x-stainless-collection-type: set usage_model: $ref: '#/components/schemas/workers_usage_model' workers_binding_kind_ai_search: type: object properties: instance_name: description: The user-chosen instance name. Must exist at deploy time. The worker can search, chat, update, and manage items/jobs on this instance. type: string example: cloudflare-blog x-auditable: true name: $ref: '#/components/schemas/workers_binding_name' namespace: description: The namespace the instance belongs to. Defaults to "default" if omitted. Customers who don't use namespaces can simply omit this field. type: string example: production x-auditable: true type: description: The kind of resource that the binding provides. type: string enum: - ai_search x-auditable: true required: - name - type - instance_name workers_api-response-single: type: object allOf: - $ref: '#/components/schemas/workers_api-response-common' workers_script-response-upload-single: allOf: - $ref: '#/components/schemas/workers_api-response-common' - properties: result: $ref: '#/components/schemas/workers_script-response-upload' required: - result type: object x-cfLinkErrors: '10001': Unsupported or unexpected Content Type '10002': Unexpected internal server error '10003': Missing required URL parameter '10004': Malformed URL parameter '10006': Unparseable script body '10007': Resource not found (similar to HTTP 404) '10015': The current account is not authorized to use workers '10018': Attempted to update a script where the e-tag does not match '10021': Script content failed validation checks, but was otherwise parseable '10023': Unauthorized access attempt '10027': Script body was too large '10075': Requires a Workers Paid plan workers_binding_kind_secret_key: type: object properties: algorithm: description: Algorithm-specific key parameters. [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#algorithm). type: object x-auditable: true format: description: Data format of the key. [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format). type: string example: raw enum: - raw - pkcs8 - spki - jwk x-auditable: true key_base64: description: Base64-encoded key data. Required if `format` is "raw", "pkcs8", or "spki". type: string writeOnly: true x-sensitive: true key_jwk: description: Key data in [JSON Web Key](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#json_web_key) format. Required if `format` is "jwk". type: object writeOnly: true x-sensitive: true name: $ref: '#/components/schemas/workers_binding_name' type: description: The kind of resource that the binding provides. type: string enum: - secret_key x-auditable: true usages: description: Allowed operations with the key. [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#keyUsages). type: array items: enum: - encrypt - decrypt - sign - verify - deriveKey - deriveBits - wrapKey - unwrapKey type: string example: - encrypt - decrypt x-auditable: true x-stainless-collection-type: set required: - name - type - format - algorithm - usages workers_namespace_identifier: description: Namespace identifier tag. type: string example: 0f2ac74b498b48028cb68387c421e279 maxLength: 32 x-auditable: true workers_identifier: description: Identifier. type: string example: 023e105f4ecef8ad9ca31a8372d0c353 maxLength: 32 x-auditable: true workers_binding_kind_dispatch_namespace: type: object properties: name: $ref: '#/components/schemas/workers_binding_name' namespace: description: The name of the dispatch namespace. type: string example: my-namespace x-auditable: true outbound: description: Outbound worker. type: object properties: params: description: Pass information from the Dispatch Worker to the Outbound Worker through the parameters. type: array items: properties: name: description: Name of the parameter. type: string example: customer_name x-auditable: true required: - name type: object worker: description: Outbound worker. type: object properties: entrypoint: description: Entrypoint to invoke on the outbound worker. type: string x-auditable: true environment: description: Environment of the outbound worker. type: string x-auditable: true service: description: Name of the outbound worker. type: string x-auditable: true type: description: The kind of resource that the binding provides. type: string enum: - dispatch_namespace x-auditable: true required: - name - type - namespace workers_exports_reconciliation_scenario: description: 'Stable, machine-readable tag identifying which reconciliation scenario produced an error, warning, or info entry. Clients may branch on this value instead of parsing `message`. ' type: string enum: - code_class_not_in_exports - provisioned_class_missing_from_config - config_export_not_in_code - config_references_nonexistent_class - orphaned_provisioned_namespace - storage_type_mismatch - free_tier_requires_sqlite - invalid_export - tombstone_delete_class_still_in_code - tombstone_delete_blocked_by_external_bindings - tombstone_renamed_to_occupied - transferred_pending_not_found - transferred_target_missing - transferred_target_mismatch - phase_one_transfer_source_missing - phase_one_transfer_source_namespace_missing - phase_one_transfer_target_class_provisioned - phase_one_transfer_after_commit_mismatch - phase_one_transfer_duplicate - phase_one_transfer_target_in_dispatch_namespace - phase_one_transfer_source_in_dispatch_namespace - transferred_source_in_dispatch_namespace - transferred_target_in_dispatch_namespace - container_undeclared_reference - container_class_not_durable_object - container_wiring_inconsistent - container_multiple_durable_objects - transfer_container_parity_mismatch - transfer_container_parity_mismatch_on_commit - tombstone_class_still_in_code - stale_tombstone - transfer_receive_already_applied - transfer_receive_cleanup_complete workers_binding_kind_hyperdrive: type: object properties: id: description: Identifier of the Hyperdrive connection to bind to. type: string example: 57b7076f58be42419276f058a8968187 x-auditable: true name: $ref: '#/components/schemas/workers_binding_name' type: description: The kind of resource that the binding provides. type: string enum: - hyperdrive x-auditable: true required: - name - type - id workers_script-response-upload: allOf: - $ref: '#/components/schemas/workers_script-response' - properties: entry_point: description: The entry point for the script. type: string example: index.js readOnly: true startup_time_ms: type: integer example: 10 readOnly: true x-auditable: true required: - startup_time_ms type: object workers_exports_reconciliation_error_response: description: 'The v4 error envelope returned with HTTP 400 when one or more declared `exports` entries fail reconciliation (error code 100402). The top-level error `message` aggregates the per-class failures as human-readable prose; the structured per-class payload is carried in `errors[].meta.details`, sorted by class name. ' type: object properties: errors: type: array items: properties: code: type: integer example: 100402 enum: - 100402 message: description: 'Aggregate, multi-line, human-readable summary of every per-class reconciliation failure. ' type: string meta: type: object properties: details: description: 'Structured per-class reconciliation failures, sorted by class name. ' type: array items: $ref: '#/components/schemas/workers_exports_reconciliation_error' required: - details required: - code - message - meta type: object messages: $ref: '#/components/schemas/workers_messages' result: type: - object - 'null' enum: - null success: type: boolean example: false enum: - false required: - success - errors - messages - result workers_binding_kind_text_blob: type: object properties: name: $ref: '#/components/schemas/workers_binding_name' part: description: The name of the file containing the text content. Only accepted for `service worker syntax` Workers. type: string example: my-module.txt x-auditable: true type: description: The kind of resource that the binding provides. type: string enum: - text_blob deprecated: true x-auditable: true required: - name - type - part workers_compatibility_flag: description: Flag that enables or disables a specific feature in the Workers runtime. type: string example: nodejs_compat x-auditable: true workers_bindings: description: 'List of bindings attached to a Worker. You can find more about bindings on our docs: https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings.' type: array items: $ref: '#/components/schemas/workers_binding_item' example: - name: MY_ENV_VAR text: my_data type: plain_text workers_logpush: description: Whether Logpush is turned on for the Worker. type: boolean example: false default: false x-auditable: true workers_created_on: description: When the script was created. type: string format: date-time example: '2017-01-01T00:00:00Z' readOnly: true x-auditable: true workers_binding_kind_flagship: type: object properties: app_id: description: ID of the Flagship app to bind to for feature flag evaluation. type: string example: app-12345678-1234-1234-1234-123456789012 maxLength: 128 x-auditable: true name: $ref: '#/components/schemas/workers_binding_name' type: description: The kind of resource that the binding provides. type: string enum: - flagship x-auditable: true required: - name - type - app_id workers_assets-2: description: Configuration for assets within a Worker. type: object properties: config: description: Configuration for assets within a Worker. type: object properties: _headers: description: The contents of a _headers file (used to attach custom headers on asset responses). type: string example: '/dashboard/* X-Frame-Options: DENY /static/* Access-Control-Allow-Origin: *' _redirects: description: The contents of a _redirects file (used to apply redirects or proxy paths ahead of asset serving). type: string example: '/foo /bar 301 /news/* /blog/:splat' base_path: description: The public URL path prefix under which assets are served. A null request value resets it to `/`; responses represent the root as `/`. All versions in a gradual deployment must use the same canonical value. To change it, first deploy the version containing the change at 100%. type: - string - 'null' example: /docs/ default: / x-auditable: true x-stainless-terraform-configurability: computed_optional html_handling: description: Determines the redirects and rewrites of requests for HTML content. type: string example: auto-trailing-slash enum: - auto-trailing-slash - force-trailing-slash - drop-trailing-slash - none not_found_handling: description: Determines the response when a request does not match a static asset, and there is no Worker script. type: string example: 404-page enum: - none - 404-page - single-page-application run_worker_first: oneOf: - description: Contains a list path rules to control routing to either the Worker or assets. Glob (*) and negative (!) rules are supported. Rules must start with either '/' or '!/'. At least one non-negative rule must be provided, and negative rules have higher precedence than non-negative rules. example: '["/api/*", "/oauth/callback", "!/api/assets/*"]' items: type: string type: array - description: Enables routing to always invoke the Worker script ahead of all requests. When true, this is equivalent to `["/*"]` in the string array version of this field. example: true type: boolean serve_directly: description: When true and the incoming request matches an asset, that will be served instead of invoking the Worker script. When false, requests will always invoke the Worker script. type: boolean example: true deprecated: true jwt: description: Token provided upon successful upload of all files from a registered manifest. type: string x-sensitive: true workers_exports_reconciliation_warning: description: 'A non-blocking reconciliation warning. Reserved: no scenario populates this array today (`code_class_not_in_exports` is surfaced as info and `provisioned_class_missing_from_config` is a hard error). Clients should still surface any entries that appear. ' type: object properties: class: description: The class name the warning is about. type: string message: description: Human-readable explanation of the warning. type: string namespace_id: description: The provisioned namespace the warning relates to, when applicable. type: string format: uuid scenario: $ref: '#/components/schemas/workers_exports_reconciliation_scenario' required: - class - scenario - message workers_placement_info_no_status: description: Configuration for [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). Specify mode='smart' for Smart Placement, or one of region/hostname/host. type: object oneOf: - additionalProperties: false properties: mode: description: Enables [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). type: string enum: - smart x-auditable: true required: - mode type: object - additionalProperties: false properties: region: description: Cloud region for targeted placement in format 'provider:region'. type: string example: aws:us-east-1 x-auditable: true required: - region type: object - additionalProperties: false properties: hostname: description: HTTP hostname for targeted placement. type: string example: api.example.com x-auditable: true required: - hostname type: object - additionalProperties: false properties: host: description: TCP host and port for targeted placement. type: string example: db.example.com:5432 x-auditable: true required: - host type: object - additionalProperties: false properties: mode: description: Targeted placement mode. type: string enum: - targeted x-auditable: true region: description: Cloud region for targeted placement in format 'provider:region'. type: string example: aws:us-east-1 x-auditable: true required: - mode - region type: object - additionalProperties: false properties: hostname: description: HTTP hostname for targeted placement. type: string example: api.example.com x-auditable: true mode: description: Targeted placement mode. type: string enum: - targeted x-auditable: true required: - mode - hostname type: object - additionalProperties: false properties: host: description: TCP host and port for targeted placement. type: string example: db.example.com:5432 x-auditable: true mode: description: Targeted placement mode. type: string enum: - targeted x-auditable: true required: - mode - host type: object - additionalProperties: false properties: mode: description: Targeted placement mode. type: string enum: - targeted x-auditable: true target: description: Array of placement targets (currently limited to single target). type: array items: $ref: '#/components/schemas/workers_placement_target' maxItems: 1 minItems: 1 x-auditable: true required: - mode - target type: object workers_binding_kind_wasm_module: type: object properties: name: $ref: '#/components/schemas/workers_binding_name' part: description: The name of the file containing the WebAssembly module content. Only accepted for `service worker syntax` Workers. type: string example: my-module.wasm x-auditable: true type: description: The kind of resource that the binding provides. type: string enum: - wasm_module deprecated: true x-auditable: true required: - name - type - part workers_namespace-script-response: description: Details about a worker uploaded to a Workers for Platforms namespace. type: object properties: created_on: $ref: '#/components/schemas/workers_created_on' dispatch_namespace: $ref: '#/components/schemas/workers_dispatch_namespace_name' modified_on: $ref: '#/components/schemas/workers_modified_on' script: $ref: '#/components/schemas/workers_script-response' workers_compatibility_flags: description: Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a `compatibility_date`. type: array items: $ref: '#/components/schemas/workers_compatibility_flag' example: - nodejs_compat default: [] x-stainless-collection-type: set workers_secret_name_url_encoded: description: Flag that indicates whether the secret name is URL encoded. type: boolean example: true readOnly: true x-auditable: true workers_binding_kind_browser: type: object properties: name: $ref: '#/components/schemas/workers_binding_name' type: description: The kind of resource that the binding provides. type: string enum: - browser x-auditable: true required: - name - type workers_durable_object_transferred_export: description: 'A `transferred` tombstone (source side of a two-phase transfer): hands ownership of the provisioned namespace to another script in the same account, named by `transferred_to`. The target must have already deployed a matching `expecting-transfer` entry. The source class may stay in code during the rollout window (an info notice is emitted). `storage`, `renamed_to` and `transfer_from` are not allowed. ' type: object properties: state: description: Tombstone that transfers the namespace to another script. type: string enum: - transferred transferred_to: description: 'The destination script name. Must be in the same account and the same dispatch-namespace context (or both non-dispatch). Cross-dispatch-namespace transfers are rejected. Write-only: never present in GET responses. ' type: string example: target-worker maxLength: 128 writeOnly: true type: description: Marks this entry as a Durable Object export. type: string enum: - durable-object additionalProperties: false required: - type - state - transferred_to workers_single_step_migrations: description: A single set of migrations to apply. allOf: - $ref: '#/components/schemas/workers_migration_tag_conditions' - $ref: '#/components/schemas/workers_migration_step' workers_script_name: description: Name of the script. type: string example: this-is_my_script-01 pattern: ^[a-z0-9_][a-z0-9-_]*$ x-auditable: true workers_binding_kind_ai_search_namespace: type: object properties: name: $ref: '#/components/schemas/workers_binding_name' namespace: description: The user-chosen namespace name. Must exist before deploy -- Wrangler handles auto-creation on deploy failure (R2 bucket pattern). The "default" namespace is auto-created by config-api for new accounts. Grants full access (CRUD + search + chat) to all instances within the namespace. type: string example: production x-auditable: true type: description: The kind of resource that the binding provides. type: string enum: - ai_search_namespace x-auditable: true required: - name - type - namespace workers_tag: type: string example: my-tag maxLength: 1024 pattern: ^[^,&]*$ workers_script-response-single: allOf: - $ref: '#/components/schemas/workers_api-response-single' - properties: result: $ref: '#/components/schemas/workers_script-response' required: - result type: object x-cfLinkErrors: '10001': Unsupported or unexpected Content Type '10002': Unexpected internal server error '10003': Missing required URL parameter '10004': Malformed URL parameter '10006': Unparseable script body '10007': Resource not found (similar to HTTP 404) '10015': The current account is not authorized to use workers '10018': Attempted to update a script where the e-tag does not match '10021': Script content failed validation checks, but was otherwise parseable '10023': Unauthorized access attempt '10027': Script body was too large '10075': Requires a Workers Paid plan workers_messages: type: array items: properties: code: type: integer minimum: 1000 documentation_url: type: string message: type: string source: type: object properties: pointer: type: string required: - code - message type: object uniqueItems: true example: [] workers_export_storage: description: 'Durable Object storage backend. `sqlite` is the recommended (and only) backend for new namespaces. `legacy-kv` is accepted only for a class whose namespace already exists as KV-backed; the `exports` flow never provisions a new `legacy-kv` namespace. ' type: string enum: - sqlite - legacy-kv workers_api-response-common-failure: type: object properties: errors: example: - code: 7003 message: No route for the URI allOf: - $ref: '#/components/schemas/workers_messages' minLength: 1 messages: example: [] allOf: - $ref: '#/components/schemas/workers_messages' result: type: - object - 'null' enum: - null success: description: Whether the API call was successful. type: boolean example: false enum: - false required: - success - errors - messages - result workers_binding_kind_images: type: object properties: name: $ref: '#/components/schemas/workers_binding_name' type: description: The kind of resource that the binding provides. type: string enum: - images x-auditable: true required: - name - type workers_binding_kind_secret_text: type: object properties: name: $ref: '#/components/schemas/workers_binding_name' text: description: The secret value to use. type: string example: My secret. writeOnly: true x-sensitive: true type: description: The kind of resource that the binding provides. type: string enum: - secret_text x-auditable: true required: - name - type - text workers_binding_kind_workflow: type: object properties: class_name: description: Class name of the Workflow. Should only be provided if the Workflow belongs to this script. type: string example: my-workflow name: $ref: '#/components/schemas/workers_binding_name' script_name: description: Script name that contains the Workflow. If not provided, defaults to this script name. type: string example: my-workflow x-auditable: true type: description: The kind of resource that the binding provides. type: string enum: - workflow workflow_name: description: Name of the Workflow to bind to. type: string example: my-workflow required: - name - type - workflow_name workers_binding_kind_send_email: type: object properties: allowed_destination_addresses: description: List of allowed destination addresses. type: array items: format: email type: string example: - user1@example.com - user2@example.com x-auditable: true allowed_sender_addresses: description: List of allowed sender addresses. type: array items: format: email type: string example: - user1@example.com - user2@example.com x-auditable: true destination_address: description: Destination address for the email. type: string format: email example: user@example.com x-auditable: true name: $ref: '#/components/schemas/workers_binding_name' type: description: The kind of resource that the binding provides. type: string enum: - send_email x-auditable: true required: - name - type workers_binding_kind_vpc_service: type: object properties: name: $ref: '#/components/schemas/workers_binding_name' service_id: description: Identifier of the VPC service to bind to. type: string example: 8c8b1387108e49be85669169793e7bd2 x-auditable: true type: description: The kind of resource that the binding provides. type: string enum: - vpc_service x-auditable: true required: - name - type - service_id workers_durable_object_deleted_export: description: 'A `deleted` tombstone: retires the provisioned namespace for this class and all of its data. The class must be absent from the uploaded code and no other Worker in the account may bind to the namespace, otherwise the deploy is rejected. No other fields are allowed. Deletion is irreversible. ' type: object properties: state: description: Tombstone that deletes the namespace. type: string enum: - deleted type: description: Marks this entry as a Durable Object export. type: string enum: - durable-object additionalProperties: false required: - type - state workers_durable_object_renamed_export: description: 'A `renamed` tombstone: rewrites the provisioned namespace''s class name from this map key to `renamed_to`. The source class may stay in code during the rollout window (an info notice is emitted). `storage`, `transferred_to` and `transfer_from` are not allowed. ' type: object properties: renamed_to: description: 'The destination class name. Must differ from the source class (the map key) and must be declared as a live (`created`) entry in the same `exports` map. Write-only: never present in GET responses. ' type: string example: NewName maxLength: 128 writeOnly: true state: description: Tombstone that renames the namespace's class. type: string enum: - renamed type: description: Marks this entry as a Durable Object export. type: string enum: - durable-object additionalProperties: false required: - type - state - renamed_to workers_modified_on: description: When the script was last modified. type: string format: date-time example: '2017-01-01T00:00:00Z' readOnly: true x-auditable: true workers_binding_kind_d1: type: object properties: database_id: description: Identifier of the D1 database to bind to. type: string example: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx x-auditable: true id: description: Identifier of the D1 database to bind to. type: string example: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx deprecated: true x-auditable: true x-stainless-deprecation-message: This property has been renamed to `database_id`. name: $ref: '#/components/schemas/workers_binding_name' type: description: The kind of resource that the binding provides. type: string enum: - d1 x-auditable: true required: - name - type - database_id workers_binding_kind_analytics_engine: type: object properties: dataset: description: The name of the dataset to bind to. type: string example: some_dataset x-auditable: true name: $ref: '#/components/schemas/workers_binding_name' type: description: The kind of resource that the binding provides. type: string enum: - analytics_engine x-auditable: true required: - name - type - dataset workers_etag: description: Hashed script content, can be used in a If-None-Match header when updating. type: string example: ea95132c15732412d22c1476fa83f27a readOnly: true workers_cache_options: description: 'Global CacheW configuration for the Worker. When caching is on, the platform provisions a `cloudflare.app` zone for the Worker. A `type: worker` entry in the `exports` map can override this value for a single entrypoint. ' type: object properties: cross_version_cache: description: 'Whether cached responses are shared across Worker version uploads. This is independent of `enabled`. It can stay true while caching is off, so the preference survives turning caching off and back on. ' type: boolean example: true default: false x-auditable: true enabled: description: Whether caching is enabled for this Worker. type: boolean example: true default: false x-auditable: true additionalProperties: false required: - enabled workers_binding_kind_json: type: object properties: json: description: JSON data to use. type: object x-stainless-any: true name: $ref: '#/components/schemas/workers_binding_name' type: description: The kind of resource that the binding provides. type: string enum: - json x-auditable: true required: - name - type - json workers_exports_reconciliation_transfer: description: A single committed `transferred` tombstone (phase-2 commit). type: object properties: class: description: The source class name that was transferred. type: string phase: description: The transfer phase. Currently always `committed`. type: string example: committed enum: - committed to: description: The destination script that now owns the namespace. type: string required: - class - to - phase workers_placement_info: description: Configuration for [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). Specify mode='smart' for Smart Placement, or one of region/hostname/host. type: object allOf: - oneOf: - properties: mode: description: Enables [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). type: string enum: - smart x-auditable: true required: - mode type: object - properties: region: description: Cloud region for targeted placement in format 'provider:region'. type: string example: aws:us-east-1 x-auditable: true required: - region type: object - properties: hostname: description: HTTP hostname for targeted placement. type: string example: api.example.com x-auditable: true required: - hostname type: object - properties: host: description: TCP host and port for targeted placement. type: string example: db.example.com:5432 x-auditable: true required: - host type: object - properties: mode: description: Targeted placement mode. type: string enum: - targeted x-auditable: true region: description: Cloud region for targeted placement in format 'provider:region'. type: string example: aws:us-east-1 x-auditable: true required: - mode - region type: object - properties: hostname: description: HTTP hostname for targeted placement. type: string example: api.example.com x-auditable: true mode: description: Targeted placement mode. type: string enum: - targeted x-auditable: true required: - mode - hostname type: object - properties: host: description: TCP host and port for targeted placement. type: string example: db.example.com:5432 x-auditable: true mode: description: Targeted placement mode. type: string enum: - targeted x-auditable: true required: - mode - host type: object - properties: mode: description: Targeted placement mode. type: string enum: - targeted x-auditable: true target: description: Array of placement targets (currently limited to single target). type: array items: $ref: '#/components/schemas/workers_placement_target' maxItems: 1 minItems: 1 x-auditable: true required: - mode - target type: object - properties: last_analyzed_at: description: The last time the script was analyzed for [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). type: string format: date-time example: '2025-01-01T00:00:00Z' readOnly: true status: $ref: '#/components/schemas/workers_placement_status' type: object workers_script-response: type: object properties: cache_options: $ref: '#/components/schemas/workers_cache_options' compatibility_date: $ref: '#/components/schemas/workers_compatibility_date' compatibility_flags: $ref: '#/components/schemas/workers_compatibility_flags' created_on: $ref: '#/components/schemas/workers_created_on' etag: $ref: '#/components/schemas/workers_etag' exports: description: 'Declarative exports for the Worker''s most recent version, including Durable Object classes (with their `storage` backend) and named Worker entrypoints. Tombstoned lifecycle entries are omitted, so only live exports (`created` and `expecting-transfer`) are returned. ' allOf: - $ref: '#/components/schemas/workers_exports_config_map' readOnly: true handlers: description: The names of handlers exported as part of the default export. type: array items: type: string example: - fetch - scheduled has_assets: $ref: '#/components/schemas/workers_has_assets' has_modules: $ref: '#/components/schemas/workers_has_modules' id: description: The name used to identify the script. type: string example: my-workers-script readOnly: true x-auditable: true last_deployed_from: description: The client most recently used to deploy this Worker. type: string example: wrangler logpush: $ref: '#/components/schemas/workers_logpush' migration_tag: description: The tag of the Durable Object migration that was most recently applied for this Worker. type: string example: v1 modified_on: $ref: '#/components/schemas/workers_modified_on' named_handlers: description: Named exports, such as Durable Object class implementations and named entrypoints. type: array items: properties: handlers: description: The names of handlers exported as part of the named export. type: array items: type: string example: - class name: description: The name of the export. type: string example: MyDurableObject type: object observability: $ref: '#/components/schemas/workers_observability-2' placement: $ref: '#/components/schemas/workers_placement_info' placement_mode: allOf: - $ref: '#/components/schemas/workers_placement_mode' - deprecated: true type: string placement_status: allOf: - $ref: '#/components/schemas/workers_placement_status' - deprecated: true type: string tag: description: The immutable ID of the script. type: string example: e8f70fdbc8b1fb0b8ddb1af166186758 readOnly: true tags: $ref: '#/components/schemas/workers_tags' tail_consumers: $ref: '#/components/schemas/workers_tail_consumers' usage_model: $ref: '#/components/schemas/workers_usage_model' workers_export_config: description: 'A single entry in the `exports` map, keyed by export name (a `WorkerEntrypoint` class name, a Durable Object class name, or `default` for the Worker''s default export). The `type` discriminator selects the top-level shape: `worker` entrypoint entries may carry `cache` configuration, while `durable-object` entries are further refined by the optional `state` field (default `created`). Tombstone states (`deleted`, `renamed`, `transferred`) express destructive lifecycle operations declaratively; `expecting-transfer` is the live target side of a transfer. The server validates the exact per-(type, state) field combinations; fields not listed for a variant are rejected. ' discriminator: mapping: durable-object: '#/components/schemas/workers_durable_object_export_variants' worker: '#/components/schemas/workers_worker_export' propertyName: type oneOf: - $ref: '#/components/schemas/workers_worker_export' - $ref: '#/components/schemas/workers_durable_object_export_variants' workers_observability-2: description: Observability settings for the Worker. type: object properties: enabled: description: Whether observability is enabled for the Worker. type: boolean example: true x-auditable: true head_sampling_rate: description: The sampling rate for incoming requests. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1. type: - number - 'null' example: 0.1 x-auditable: true issues: description: Real-time Issues settings for the Worker. type: - object - 'null' properties: enabled: description: Whether real-time Issues are enabled for the Worker. type: boolean example: true x-auditable: true logs: description: Log settings for the Worker. type: - object - 'null' properties: destinations: description: A list of destinations where logs will be exported to. type: array items: type: string example: - cloudflare x-auditable: true enabled: description: Whether logs are enabled for the Worker. type: boolean example: true x-auditable: true head_sampling_rate: description: The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1. type: - number - 'null' example: 0.1 x-auditable: true invocation_logs: description: Whether [invocation logs](https://developers.cloudflare.com/workers/observability/logs/workers-logs/#invocation-logs) are enabled for the Worker. type: boolean example: true x-auditable: true persist: description: Whether log persistence is enabled for the Worker. type: boolean example: true default: true x-auditable: true required: - enabled - invocation_logs redact_query_string: description: Whether query strings are removed from request URLs in logs and traces. type: boolean example: false default: false x-auditable: true traces: description: Trace settings for the Worker. type: - object - 'null' properties: destinations: description: A list of destinations where traces will be exported to. type: array items: type: string example: - cloudflare x-auditable: true enabled: description: Whether traces are enabled for the Worker. type: boolean example: true x-auditable: true head_sampling_rate: description: The sampling rate for traces. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1. type: - number - 'null' example: 0.1 x-auditable: true persist: description: Whether trace persistence is enabled for the Worker. type: boolean example: true default: true x-auditable: true propagation_policy: description: Controls how inbound trace context (traceparent/tracestate) headers on incoming requests are handled. "authenticated" honors inbound trace context only when accompanied by a valid trace auth token. "accept" unconditionally accepts inbound trace context. Requires the trace propagation feature to be enabled. Returns null when the trace propagation feature is not enabled for the account. type: - string - 'null' enum: - authenticated - accept - null x-auditable: true required: - enabled workers_create-assets-upload-session-response: allOf: - $ref: '#/components/schemas/workers_api-response-common' - properties: result: type: object properties: buckets: description: The requests to make to upload assets. type: array items: description: The set of assets to include in each request while uploading. items: description: The file hash to include in this bucket. type: string type: array x-stainless-collection-type: set x-stainless-collection-type: set jwt: description: A JWT to use as authentication for uploading assets. type: string x-sensitive: true type: object workers_placement_target: description: A target to run your Worker near. type: object oneOf: - additionalProperties: false properties: region: description: Cloud region in format 'provider:region'. type: string example: aws:us-east-1 required: - region type: object - additionalProperties: false properties: hostname: description: HTTP hostname for targeted placement. type: string example: api.example.com required: - hostname type: object - additionalProperties: false properties: host: description: TCP host:port for targeted placement. type: string example: db.example.com:5432 required: - host type: object workers_binding_kind_mtls_certificate: type: object properties: certificate_id: description: Identifier of the certificate to bind to. type: string example: efwu2n6s-q69d-2kr9-184j-4913e8h391k6 x-auditable: true name: $ref: '#/components/schemas/workers_binding_name' type: description: The kind of resource that the binding provides. type: string enum: - mtls_certificate x-auditable: true required: - name - type - certificate_id workers_binding_kind_durable_object_namespace: type: object properties: class_name: description: The exported class name of the Durable Object. type: string example: MyDurableObject x-auditable: true x-stainless-terraform-configurability: computed_optional dispatch_namespace: description: The dispatch namespace the Durable Object script belongs to. type: string example: my-dispatch-namespace x-auditable: true environment: description: The environment of the script_name to bind to. type: string example: production x-auditable: true name: $ref: '#/components/schemas/workers_binding_name' namespace_id: allOf: - $ref: '#/components/schemas/workers_namespace_identifier' - type: string x-auditable: true x-stainless-terraform-configurability: computed_optional script_name: description: The script where the Durable Object is defined, if it is external to this Worker. type: string example: my-other-worker x-auditable: true x-stainless-terraform-configurability: computed_optional type: description: The kind of resource that the binding provides. type: string enum: - durable_object_namespace x-auditable: true required: - name - type workers_trusted_workers: description: Whether the Workers in the namespace are executed in a "trusted" manner. When a Worker is trusted, it has access to the shared caches for the zone in the Cache API, and has access to the `request.cf` object on incoming Requests. When a Worker is untrusted, caches are not shared across the zone, and `request.cf` is undefined. By default, Workers in a namespace are "untrusted". type: boolean example: false default: false x-auditable: true workers_binding_kind_plain_text: type: object properties: name: $ref: '#/components/schemas/workers_binding_name' text: description: The text value to use. type: string example: Hello, world! x-auditable: true type: description: The kind of resource that the binding provides. type: string enum: - plain_text x-auditable: true required: - name - type - text workers_tags_kv: description: Tags associated with the Worker, as a key/value object. Each complete UTF-8 encoded tag (the key plus `=` and the value when the value is non-empty) must not exceed 1024 bytes. type: object example: environment: production team: my-team additionalProperties: type: string maxProperties: 10 x-auditable: true workers_worker_export: description: 'A named Worker entrypoint export (`type: worker`). Worker entrypoints are always live (`state: created`) and carry no storage or lifecycle fields. The optional `cache` block overrides the Worker''s global `cache_options.enabled` for this entrypoint. ' type: object properties: cache: description: 'Cache override for this entrypoint. Overrides the Worker''s global `cache_options.enabled` for this entrypoint only. ' allOf: - $ref: '#/components/schemas/workers_entrypoint_cache_options' state: description: Live export. May be omitted; defaults to `created`. type: string default: created enum: - created type: description: Marks this entry as a Worker entrypoint export. type: string enum: - worker additionalProperties: false required: - type workers_dispatch_namespace_name: description: Name of the Workers for Platforms dispatch namespace. type: string example: my-dispatch-namespace pattern: ^.+$ x-auditable: true workers_namespace-script-delete-bulk-response: description: Detail about bulk deletion of scripts in a namespace. type: object properties: deleted: type: array items: properties: id: $ref: '#/components/schemas/workers_uuid' type: object deleted_count: type: integer example: 100 has_more: type: boolean example: false workers_binding_kind_r2_bucket: type: object properties: bucket_name: description: R2 bucket to bind to. type: string example: my-r2-bucket x-auditable: true jurisdiction: description: The [jurisdiction](https://developers.cloudflare.com/r2/reference/data-location/#jurisdictional-restrictions) of the R2 bucket. type: string example: eu enum: - eu - fedramp - fedramp-high - us x-auditable: true name: $ref: '#/components/schemas/workers_binding_name' type: description: The kind of resource that the binding provides. type: string enum: - r2_bucket x-auditable: true required: - name - type - bucket_name workers_manifest-value: type: object properties: hash: description: The hash of the file. type: string size: description: The size of the file in bytes. type: integer required: - hash - size workers_compatibility_date: description: Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker. type: string example: '2021-01-01T00:00:00Z' x-auditable: true workers_durable_object_expecting_transfer_export: description: 'The target side of a two-phase transfer (`state: expecting-transfer`). Declares that this script expects to receive a namespace for this class from the `transfer_from` script. This is a live entry, not a tombstone: bindings resolve through the source''s namespace until the source commits with a `transferred` tombstone. `storage` and `transfer_from` are required; `renamed_to` and `transferred_to` are not allowed. ' type: object properties: container: description: 'Name of the container (declared in the upload''s `metadata.containers`) that backs this Durable Object once the transfer settles. Valid only on live entries. ' type: string example: my-container maxLength: 128 state: description: Target side of a two-phase transfer. type: string enum: - expecting-transfer storage: $ref: '#/components/schemas/workers_export_storage' transfer_from: description: 'The source script name to receive the namespace from. Must be in the same account and dispatch-namespace context. Present on reads for `expecting-transfer` entries. ' type: string example: source-worker maxLength: 128 type: description: Marks this entry as a Durable Object export. type: string enum: - durable-object additionalProperties: false required: - type - state - storage - transfer_from workers_multipart-script: type: object properties: files: description: 'An array of modules (often JavaScript files) comprising a Worker script. At least one module must be present and referenced in the metadata as `main_module` or `body_part` by filename.
Possible Content-Type(s) are: `application/javascript+module`, `text/javascript+module`, `application/javascript`, `text/javascript`, `text/x-python`, `text/x-python-requirement`, `application/wasm`, `text/plain`, `application/octet-stream`, `application/source-map`.' type: array items: format: binary type: string x-stainless-collection-type: set metadata: description: JSON-encoded metadata about the uploaded parts and Worker configuration. type: object properties: assets: $ref: '#/components/schemas/workers_assets-2' bindings: $ref: '#/components/schemas/workers_bindings' body_part: description: Name of the uploaded file that contains the script (e.g. the file adding a listener to the `fetch` event). Indicates a `service worker syntax` Worker. type: string example: worker.js cache_options: $ref: '#/components/schemas/workers_cache_options' compatibility_date: $ref: '#/components/schemas/workers_compatibility_date' compatibility_flags: $ref: '#/components/schemas/workers_compatibility_flags' exports: description: 'Declarative exports for the Worker. Worker entrypoint entries (`type: worker`) carry cache configuration for that entrypoint. ' allOf: - $ref: '#/components/schemas/workers_exports_config_map' writeOnly: true exports_reconciliation: description: 'Summary of the declarative exports reconciliation that ran on this upload. Populated only when the uploaded metadata included an `exports` block. Durable Object entries drive reconciliation; `type: worker` entries do not contribute to this summary. ' allOf: - $ref: '#/components/schemas/workers_exports_reconciliation_result' keep_assets: description: Retain assets which exist for a previously uploaded Worker version; used in lieu of providing a completion token. An explicit `assets` upload takes precedence over `keep_assets`. type: boolean example: false keep_bindings: description: List of binding types to keep from previous_upload. type: array items: type: string x-stainless-collection-type: set limits: $ref: '#/components/schemas/workers_limits' logpush: $ref: '#/components/schemas/workers_logpush' main_module: description: Name of the uploaded file that contains the main module (e.g. the file exporting a `fetch` handler). Indicates a `module syntax` Worker. type: string example: worker.js migrations: description: Migrations to apply for Durable Objects associated with this Worker. oneOf: - $ref: '#/components/schemas/workers_single_step_migrations' - $ref: '#/components/schemas/workers_multiple_step_migrations' writeOnly: true observability: $ref: '#/components/schemas/workers_observability-2' package_dependencies: description: 'The list of npm packages that were installed and used when this Worker version was built. ' type: array items: properties: installedVersion: description: The exact version that was resolved and installed by the package manager. type: string example: 4.17.22 name: description: The npm package name. type: string example: lodash packageJsonVersion: description: The version constraint as written in package.json. type: string example: ^4.17.21 required: - name - packageJsonVersion - installedVersion type: object x-auditable: true placement: $ref: '#/components/schemas/workers_placement_info' tags: description: List of strings to use as tags for this Worker. type: array items: type: string x-stainless-collection-type: set tail_consumers: $ref: '#/components/schemas/workers_tail_consumers' usage_model: $ref: '#/components/schemas/workers_usage_model' example: files: - "export default {\n async fetch(request, env, ctx) {\n return new Response(\"Hello, world!\");\n }\n};" metadata: compatibility_date: {} compatibility_flags: - nodejs_compat main_module: worker.js required: - metadata workers_namespace-single-response: allOf: - $ref: '#/components/schemas/workers_api-response-common' - properties: result: $ref: '#/components/schemas/workers_namespace-response' type: object workers_api-response-common: type: object properties: errors: $ref: '#/components/schemas/workers_messages' messages: $ref: '#/components/schemas/workers_messages' success: description: Whether the API call was successful. type: boolean example: true enum: - true required: - success - errors - messages workers_namespace-script-response-single: allOf: - $ref: '#/components/schemas/workers_api-response-common' - properties: result: $ref: '#/components/schemas/workers_namespace-script-response' required: - result type: object workers_exports_reconciliation_transfer_pending: description: 'A single phase-1 transfer hint recorded on the target side (a live `expecting-transfer` entry). ' type: object properties: class: description: The target-side class name awaiting transfer. type: string from: description: The source script the namespace will be transferred from. type: string required: - class - from workers_migration_tag_conditions: type: object properties: new_tag: description: Tag to set as the latest migration tag. type: string example: v2 writeOnly: true x-auditable: true old_tag: description: Tag used to verify against the latest migration tag for this Worker. If they don't match, the upload is rejected. type: string example: v1 writeOnly: true x-auditable: true workers_exports_reconciliation_rename: description: A single applied `renamed` tombstone. type: object properties: from: description: The original (source) class name. type: string to: description: The new class name (`renamed_to`). type: string required: - from - to workers_binding_kind_messaging: type: object properties: name: $ref: '#/components/schemas/workers_binding_name' namespace: description: The Messaging namespace to bind to. type: string example: production x-auditable: true type: description: The kind of resource that the binding provides. type: string enum: - messaging x-auditable: true required: - name - type - namespace workers_limits: description: Limits to apply for this Worker. type: object properties: cpu_ms: description: The amount of CPU time this Worker can use in milliseconds. type: integer example: 50 x-auditable: true subrequests: description: The number of subrequests this Worker can make per request. type: integer example: 1000 x-auditable: true workers_durable_object_export_variants: description: 'Any Durable Object export entry (`type: durable-object`), across all lifecycle states. The optional `state` field selects the variant (default `created`); the tombstone states (`deleted`, `renamed`, `transferred`) and the live transfer target (`expecting-transfer`) are the alternatives. The server validates the exact per-state field combinations; fields not listed for a variant are rejected. ' oneOf: - $ref: '#/components/schemas/workers_durable_object_export' - $ref: '#/components/schemas/workers_durable_object_deleted_export' - $ref: '#/components/schemas/workers_durable_object_renamed_export' - $ref: '#/components/schemas/workers_durable_object_transferred_export' - $ref: '#/components/schemas/workers_durable_object_expecting_transfer_export' workers_binding_kind_k2: description: A K2 stream binding. Available only to accounts enabled for K2. type: object properties: name: $ref: '#/components/schemas/workers_binding_name' stream: description: ID of a K2 stream owned by the account deploying the Worker. type: string example: 0123456789abcdef0123456789abcdef pattern: ^[a-f0-9]{32}$ x-auditable: true type: description: The kind of resource that the binding provides. type: string enum: - k2 x-auditable: true required: - name - type - stream workers_secret_name: description: A JavaScript variable name for the secret binding. type: string example: mySecret readOnly: true x-auditable: true workers_entrypoint_cache_options: description: 'CacheW configuration for a single `type: worker` entrypoint. When present it overrides the Worker''s global `cache_options.enabled` for that entrypoint, so a Worker can turn caching on globally and opt one entrypoint out, or the reverse. ' type: object properties: enabled: description: Whether caching is enabled for this entrypoint. type: boolean example: true x-auditable: true additionalProperties: false required: - enabled workers_exports_reconciliation_error: description: 'A single blocking reconciliation error. Returned in the v4 error envelope under `meta.details` on the exports reconciliation failure error (code 100402). All per-class failures are reported together, sorted by class name. ' type: object properties: class: description: The class name the error is about. type: string message: description: Human-readable explanation. type: string namespace_id: description: The provisioned namespace the error relates to, when applicable. type: string format: uuid referencing_scripts: description: 'Other Workers in the account whose bindings block the operation (e.g. a `deleted` tombstone blocked by external bindings). ' type: array items: type: string scenario: $ref: '#/components/schemas/workers_exports_reconciliation_scenario' suggestion: description: An actionable hint for resolving the error, when available. type: string required: - class - scenario - message workers_binding_kind_ai: type: object properties: name: $ref: '#/components/schemas/workers_binding_name' type: description: The kind of resource that the binding provides. type: string enum: - ai x-auditable: true required: - name - type workers_api-response-null-result: allOf: - $ref: '#/components/schemas/workers_api-response-common' - properties: result: type: - object - 'null' enum: - null type: object workers_tags-kv-response: allOf: - $ref: '#/components/schemas/workers_api-response-common' - properties: result: $ref: '#/components/schemas/workers_tags_kv' required: - result type: object workers_has_modules: description: Whether a Worker contains modules. type: boolean example: false x-auditable: true workers_binding_kind_vpc_network: type: object properties: identity: description: 'Enables Gateway identity for the binding. Requires network_id to be "cf1:network" and cannot be combined with tunnel_id. ' type: string enum: - runtime-email-alpha x-auditable: true name: $ref: '#/components/schemas/workers_binding_name' network_id: description: 'Identifier of the network to bind to. Only "cf1:network" is currently supported. Mutually exclusive with tunnel_id. ' type: string example: cf1:network x-auditable: true tunnel_id: description: 'UUID of the Cloudflare Tunnel to bind to. Mutually exclusive with network_id. ' type: string example: abcd1234-5678-90ef-ghij-klmnopqrstuv x-auditable: true type: description: The kind of resource that the binding provides. type: string enum: - vpc_network x-auditable: true required: - name - type workers_binding_kind_media: type: object properties: name: $ref: '#/components/schemas/workers_binding_name' type: description: The kind of resource that the binding provides. type: string enum: - media x-auditable: true required: - name - type workers_binding_kind_queue: type: object properties: name: $ref: '#/components/schemas/workers_binding_name' queue_name: description: Name of the Queue to bind to. type: string example: my-queue type: description: The kind of resource that the binding provides. type: string enum: - queue x-auditable: true required: - name - type - queue_name workers_binding_kind_version_metadata: type: object properties: name: $ref: '#/components/schemas/workers_binding_name' type: description: The kind of resource that the binding provides. type: string enum: - version_metadata x-auditable: true required: - name - type workers_exports_reconciliation_info: description: 'A non-blocking reconciliation info entry. Emitted for stale tombstones (a no-op on this deploy) and for tombstones applied with the source class still in code (the supported zero-downtime rollout pattern). ' type: object properties: class: description: The class name the info entry is about. type: string message: description: Human-readable explanation. type: string namespace_id: description: The provisioned namespace the entry relates to, when applicable. type: string format: uuid referencing_scripts: description: 'Other Workers in the account that still bind to the affected class. Advisory: while non-empty the tombstone is not yet safe to remove — redeploy these Workers with bindings re-pointed first. ' type: array items: type: string scenario: $ref: '#/components/schemas/workers_exports_reconciliation_scenario' required: - class - scenario - message workers_typed_tag_key: description: A typed tag key containing only Unicode letters or numbers, underscores, periods, or hyphens. The complete UTF-8 encoded tag (the key plus `=` and the value when the value is non-empty) must not exceed 1024 bytes. Cloudflare-reserved prefixes are not accepted. type: string example: environment maxLength: 256 minLength: 1 workers_tags: description: Tags associated with the Worker. type: - array - 'null' items: $ref: '#/components/schemas/workers_tag' example: - my-team - my-public-api maxItems: 10 x-auditable: true x-stainless-collection-type: set workers_binding_kind_service: type: object properties: entrypoint: description: Entrypoint to invoke on the target Worker. type: string example: MyHandler x-auditable: true environment: description: Optional environment if the Worker utilizes one. type: string example: production default: production x-auditable: true name: $ref: '#/components/schemas/workers_binding_name' service: description: Name of Worker to bind to. type: string example: my-worker x-auditable: true type: description: The kind of resource that the binding provides. type: string enum: - service x-auditable: true required: - name - type - service workers_multiple_step_migrations: allOf: - $ref: '#/components/schemas/workers_migration_tag_conditions' - properties: steps: description: Migrations to apply in order. type: array items: $ref: '#/components/schemas/workers_migration_step' writeOnly: true type: object workers_binding_kind_kv_namespace: type: object properties: name: $ref: '#/components/schemas/workers_binding_name' namespace_id: $ref: '#/components/schemas/workers_namespace_identifier' type: description: The kind of resource that the binding provides. type: string enum: - kv_namespace x-auditable: true required: - name - type - namespace_id workers_tail_consumers_script: description: A reference to a script that will consume logs from the attached Worker. type: object properties: environment: description: Optional environment if the Worker utilizes one. type: string example: production x-auditable: true namespace: description: Optional dispatch namespace the script belongs to. type: string example: my-namespace x-auditable: true service: description: Name of Worker that is to be the consumer. type: string example: my-log-consumer x-auditable: true required: - service workers_namespace-list-response: allOf: - $ref: '#/components/schemas/workers_api-response-common' - properties: result: type: array items: $ref: '#/components/schemas/workers_namespace-response' type: object workers_binding_kind_pipelines: type: object properties: name: $ref: '#/components/schemas/workers_binding_name' pipeline: description: Name of the Pipeline to bind to. type: string example: my-pipeline x-auditable: true type: description: The kind of resource that the binding provides. type: string enum: - pipelines x-auditable: true required: - name - type - pipeline workers_binding_kind_artifacts: type: object properties: name: $ref: '#/components/schemas/workers_binding_name' namespace: description: The Artifacts namespace exposed to the Worker in the Worker's account. Must be 2-63 characters, start with an ASCII alphanumeric character, contain only ASCII alphanumeric characters, dots, underscores, and hyphens, and must not end with a hyphen. The namespace does not need to be created before binding it. type: string example: agent-workspace maxLength: 63 minLength: 2 pattern: ^[a-zA-Z0-9]([a-zA-Z0-9._-]*[a-zA-Z0-9._])?$ x-auditable: true type: description: The kind of resource that the binding provides. type: string enum: - artifacts x-auditable: true required: - name - type - namespace workers_has_assets: description: Whether a Worker contains assets. type: boolean example: false x-auditable: true responses: workers_4XX: description: 'Upload Worker Module response failure. When the upload uses the declarative `exports` field and one or more entries fail reconciliation, the response is the exports reconciliation error envelope (error code 100402) with per-class detail in `errors[].meta.details`. ' content: application/json: schema: anyOf: - $ref: '#/components/schemas/workers_api-response-common-failure' - $ref: '#/components/schemas/workers_exports_reconciliation_error_response' workers_200: description: Upload Worker Module response. content: application/json: schema: allOf: - $ref: '#/components/schemas/workers_script-response-upload-single' - example: errors: [] messages: [] result: created_on: '2022-05-05T05:15:11.602148Z' etag: 777f24a43bef5f69174aa69ceaf1dea67968d510a31d1vw3e49d34a0187c06d1 handlers: - fetch id: this-is_my_script-01 logpush: false modified_on: '2022-05-20T19:02:56.446492Z' placement: mode: smart startup_time_ms: 10 tail_consumers: - environment: production service: my-log-consumer usage_model: standard success: true type: object requestBodies: workers_namespace_upload: content: application/javascript: schema: description: Raw javascript content comprising a Worker. Must be in service worker syntax. type: string example: addEventListener('fetch', (event) => event.respondWith(new Response('OK'))) multipart/form-data: encoding: files: contentType: application/javascript+module, text/javascript+module, application/javascript, text/javascript, text/x-python, text/x-python-requirement, application/wasm, text/plain, application/octet-stream, application/source-map metadata: contentType: application/json schema: $ref: '#/components/schemas/workers_multipart-script' text/javascript: schema: description: Raw javascript content comprising a Worker. Must be in service worker syntax. type: string example: addEventListener('fetch', (event) => event.respondWith(new Response('OK'))) required: true parameters: workers_api_version_header: description: 'Requested API compatibility date in `YYYY-MM-DD[.release]` format (UTC). The optional release suffix contains lowercase letters; for example, `2026-10-01.epoch`. Typed Worker tag operations require a date on or after `2026-10-01`. ' in: header name: api-version schema: type: string example: 2026-10-01.epoch pattern: ^\d{4}-\d{2}-\d{2}(\.[a-z]+)?$ securitySchemes: api_email: in: header name: X-Auth-Email type: apiKey api_key: in: header name: X-Auth-Key type: apiKey api_token: scheme: bearer type: http user_service_key: in: header name: X-Auth-User-Service-Key type: apiKey externalDocs: description: Cloudflare Radar Documentation url: https://developers.cloudflare.com/radar/ x-forge-commands: abuse-reports: description: Submit and track abuse reports for phishing, malware, and other policy violations on Cloudflare-proxied sites groups: appeals: description: Appeal eligibility for abuse reports emails: description: Emails sent for abuse reports mitigations: description: Mitigation actions taken in response to abuse reports accounts: description: Account settings, members, roles, subscriptions, and API tokens for your Cloudflare account groups: applications: description: Applications operations categories: description: Categories operations organizations: description: Move accounts between organizations profile: description: View and manage the profile for a Cloudflare account roles: description: View the roles available for assigning to account members, each defining a set of permissions subscriptions: description: View and manage plan subscriptions attached to this account tokens: description: Create and manage scoped API tokens for programmatic access to the Cloudflare API ai-gateway: description: Proxy, cache, rate-limit, and observe requests to AI providers — OpenAI, Anthropic, Workers AI, and more groups: custom-domains: description: Manage custom hostnames that route requests through an AI Gateway custom-providers: description: Manage account-level custom AI providers and their endpoint settings datasets: description: 'Deprecated: manage filtered collections of gateway logs used by evaluations' dynamic-routing: description: Route requests across multiple AI providers with fallback, load-balancing, and versioned deployments dynamic-routing.deployments: description: Deploy dynamic route versions and view deployment history dynamic-routing.versions: description: Create and inspect saved versions of a dynamic route evaluation-types: description: 'Deprecated: list the evaluator types that evaluations can use' evaluations: description: 'Deprecated: score the logs in a dataset with selected evaluator types' gateways: description: Create and configure AI Gateways for an account gateways.providers: description: Store and rotate upstream AI provider keys for a gateway logs: description: Inspect, annotate, and delete gateway request logs stored by Legacy Logs ai-search: description: 'Managed search-as-a-service: crawl, index, and query content with AI-powered relevance and chat completions' groups: items: description: Content indexed by AI Search instances jobs: description: Indexing job lifecycle for AI Search instances namespace: description: Logical groupings for organizing AI Search instances tokens: description: Credentials used by AI Search instances ai-security: description: Detect prompt injection, PII, and unsafe topics in traffic to your AI applications groups: custom-topics: description: Organization-specific topic categories used by AI Security for Apps content detection analytics: description: Zone-level traffic analytics — dashboard summaries, per-colo breakdowns, and Argo latency metrics groups: colo: description: Per-data-center (colo) traffic analytics breakdown for the zone dashboard: description: Aggregated zone dashboard analytics — requests, bandwidth, threats, and page views latency: description: Argo Smart Routing latency analytics showing time-to-first-byte improvements argo: description: Network optimization features that speed up and improve reliability of traffic to your origins groups: smart-routing: description: Route traffic through the fastest network paths to your origin using real-time latency data tiered-caching: description: Reduce origin load by having upper-tier data centers serve cache misses before reaching your origin basin-catalog: description: Iceberg-compatible data catalog for R2 — organize objects into tables and namespaces for SQL query engines groups: credentials: description: Catalog access credentials for external query engines (Spark, Trino, etc.) maintenance-configs: description: Table maintenance settings — compaction schedules and snapshot expiration policies namespaces: description: Logical namespaces that group related tables within the data catalog namespaces.tables: description: Tables within catalog namespaces namespaces.tables.maintenance-configs: description: Table-level maintenance configurations and operations namespaces.tables.maintenance-runs: description: History of maintenance runs performed on tables billing: description: Account billing profiles and usage data for Cloudflare subscriptions and add-on services groups: profiles: description: Billing profile with payment method, address, and invoice preferences usage: description: Metered usage data for billed services — requests, bandwidth, and feature consumption botnet-feed: description: Botnet threat intelligence feeds — IP and ASN-level data on known command-and-control infrastructure groups: asn: description: ASN-level botnet activity data showing networks with known C2 infrastructure configs: description: Botnet feed subscription configuration and notification preferences builds: description: Build and deploy Workers from connected repositories, then inspect build status and logs. groups: deploy-hooks: description: Manage branch-specific HTTP hooks that start builds. limits: description: View build-minute availability and refresh information. logs: description: Retrieve build logs. repos: description: Manage source repository connections for Workers Builds. tokens: description: Manage credentials used by Workers Builds to deploy Workers. triggers: description: Configure how repository changes build and deploy Workers. versions: description: Find builds associated with Worker versions. workers: description: Manage repository-backed build configuration for Workers. cache: description: Purge cached content and configure Cache Reserve, tiered caching, and variant serving groups: origin-cloud-regions: description: Manage Origin Cloud Regions routing and failover configurations settings: description: Configure Cache Reserve, tiered caching, and variant serving settings.regional-tiered-cache: description: Restrict tiered cache topology to data centers within a specific geographic region settings.reserve: description: Persistent storage tier that keeps cached assets even after eviction from edge caches settings.smart-tiered-cache: description: Automatically determine the best upper-tier data centers for tiered cache topology settings.variants: description: Serve different cached versions of an image based on the Accept header (WebP, AVIF, etc.) client-side-security: description: Client-Side Security — monitor JavaScript, connections, and cookies on your pages for supply-chain attacks groups: connections: description: Third-party connections made by scripts on your pages — track data exfiltration risks cookies: description: Cookies set by your pages with classification and same-site attribute tracking policies: description: Content Security Policies that control which scripts and connections are allowed on your pages scripts: description: JavaScript files detected on your pages with change tracking and malicious code detection settings: description: Fine tune Client-Side Security behaviors cloud-connector: description: Route traffic from Cloudflare directly to cloud provider services (AWS, Azure, GCP) without origin servers groups: rules: description: Routing rules that map request patterns to cloud provider endpoints cloudforce-one: description: Detection rule management APIs groups: binary-storage: description: Upload and retrieve malware samples and suspicious binaries for analysis requests: description: Additional request operations — priority listing and asset creation rules: description: Rule management operations groups: approvals: description: Approval workflow operations email: description: Email rule operations exemptions: description: Exemption rule operations managed: description: Managed rule operations stats: description: Rule statistics operations tree: description: Rule navigation tree operations scans: description: Scan URLs, IPs, and domains for threat intelligence indicators containers: description: Deploy and manage Containers applications on Cloudflare's global network groups: applications: description: Manage Containers applications applications.instances: description: Inspect Containers instances belonging to applications applications.rollouts: description: Manage rollouts for scheduler-backed applications applications.versions: description: Inspect versions of scheduler-backed applications registries: description: Manage Containers image registries registries.credentials: description: Generate image registry credentials content-scan: description: Malicious uploads detection, scan uploaded content in HTTP requests for malware and malicious payloads groups: expressions: description: Custom expressions that tell the scanner how to reach content objects it cannot parse on its own custom-pages: description: Manage custom error and challenge pages and their assets for accounts and zones groups: account-custom-pages: description: Manage account-level custom pages account-custom-pages.preview-tokens: description: Preview tokens for account-level custom pages assets: description: Manage account- and zone-level custom assets zone-custom-pages: description: Manage zone-level custom pages zone-custom-pages.preview-tokens: description: Preview tokens for zone-level custom pages d1: description: D1 is Cloudflare's managed, serverless database with SQLite's SQL semantics, built-in disaster recovery, and Worker and HTTP API access. groups: time-travel: description: use specific point-in-time backups of your D1 database x-forge-epilogue: For more information about Time Travel, see https://developers.cloudflare.com/d1/reference/time-travel diagnostics: description: Network diagnostic tools — traceroutes from Cloudflare's edge and endpoint health checks groups: endpoint-healthchecks: description: Monitor external endpoint availability with periodic HTTP/HTTPS health checks traceroutes: description: Run traceroutes from Cloudflare data centers to diagnose network path issues email-routing: description: Route incoming email to verified destination addresses or Workers with routing rules, catch-all behavior, and managed DNS records groups: addresses: description: Verified destination email addresses that can receive forwarded mail dns: description: Inspect or unlock the DNS records required by Email Routing rules: description: Match incoming email addresses and forward messages to destination mailboxes or Workers settings: description: Inspect and update Email Routing settings email-security: description: Cloud email security — investigate threats, manage allow/block policies, and detect phishing groups: analytics: description: Analytics and reporting — monthly report and per-day breakdowns of threat activity bulk-actions: description: Asynchronous jobs that move or release every message matching a search — create, monitor, and manage bulk jobs investigate: description: Search and investigate email messages — view detections, traces, raw content, and take remediation actions phishguard: description: PhishGuard user-reported phishing reports — view detected threats for a date range settings: description: Email security configuration — block senders, allow policies, content policies, domains, trusted domains, impersonation registry, and URL handling submissions: description: Reclassify submissions — track user and team reports of false positives and missed detections email-sending: description: Send transactional email and manage sending subdomains and their DNS configuration groups: limits: description: Inspect account-level sending quotas and current usage subdomains: description: Configure sending subdomains and keep their DNS records healthy suppressions: description: Prevent delivery to suppressed addresses and manage the account suppression list filters: description: Filter expressions used by legacy firewall rules to match requests — prefer Rulesets for new configurations firewall: description: Legacy firewall rules, zone lockdowns, access rules, user-agent blocking, and WAF packages groups: access-rules: description: IP-based access rules that allow, block, challenge, or whitelist traffic globally or per-zone lockdowns: description: Zone lockdown rules that restrict access to URLs by IP address or range rules: description: Legacy firewall rules with filter expressions — prefer Rulesets for new configurations ua-rules: description: Block or challenge requests based on the User-Agent header string waf: description: Legacy WAF managed rule packages, rule groups, individual rules, and override configurations zone-access-rules: description: Zone-scoped IP access rules for blocking or allowing traffic google-tag-gateway: description: Google Tag Gateway operations groups: config: description: Google Tag Gateway config operations healthchecks: description: Standalone health checks that monitor origin server availability from Cloudflare's edge groups: previews: description: Test a health check configuration before deploying it to production hyperdrive: description: Accelerate access to existing databases by caching queries and pooling connections at the edge iam: description: Identity and access management — permission groups, resource groups, user groups, and SSO connectors groups: permission-groups: description: View the permission groups that can be assigned to API tokens and policies resource-groups: description: Define scopes that limit which account resources a policy or token can access sso: description: Configure single sign-on connectors to authenticate account members through an external identity provider user-groups: description: Organize account members into groups for easier permission assignment images: description: Store, resize, and deliver optimized images globally — variants, signing keys, and direct uploads groups: flows: description: Zone-level transformation flows that control how images are resized and optimized on delivery import: description: Import images from S3 keys: description: Manage signing keys for generating private image URLs variants: description: Manage named resize variants for transforming images on delivery intel: description: Threat intelligence lookups — IP reputation, domain info, ASN details, WHOIS, and indicator feeds groups: asn: description: ASN intelligence — ownership, geolocation, and subnet details for autonomous systems attack-surface-report: description: Attack surface intelligence — exposed assets, vulnerabilities, and infrastructure mapping dns: description: Passive DNS data showing historical DNS resolution records for domains domain-history: description: Historical domain registration and categorization changes over time domains: description: Domain intelligence — risk scores, categories, and associated infrastructure indicator-feeds: description: Threat indicator feeds — subscribe to and manage curated lists of malicious IPs, domains, and URLs ip-lists: description: Curated IP lists used for threat detection and policy enforcement ips: description: IP address intelligence — geolocation, risk assessment, and hosting provider details miscategorizations: description: Report and track domain miscategorization corrections whois: description: WHOIS registration data for domains including registrant, registrar, and nameservers k2: description: Durable, ordered event streams that you produce records to and consume from with subscriptions groups: streams: description: K2 streams, their retention, and the HTTP and Workers binding inputs used to produce records streams.subscriptions: description: Subscriptions that consume a K2 stream, with committed-position lag leaked-credential-checks: description: Detect compromised credentials in login requests by checking against known breach databases groups: detections: description: Custom detection locations that tell the WAF where to find usernames and passwords in requests load-balancers: description: Distribute traffic across origin pools with health monitoring, geo-steering, and failover groups: monitor-groups: description: Group monitors together for shared configuration and bulk management monitor-groups.references: description: List references to monitor groups used by load balancer pools monitors: description: Health check configurations that probe origin servers and determine pool availability monitors.previews: description: Health check configurations that probe origin servers and determine pool availability monitors.references: description: Health check configurations that probe origin servers and determine pool availability pools: description: Origin server pools with weighted traffic distribution, health thresholds, and geographic preferences pools.health: description: Origin server pools with weighted traffic distribution, health thresholds, and geographic preferences pools.references: description: Origin server pools with weighted traffic distribution, health thresholds, and geographic preferences previews: description: Preview the result of a health check monitor configuration before applying it regions: description: Geographic regions used for regional pool steering and traffic policies searches: description: Search across all load balancer resources (pools, monitors, load balancers) by name or reference logs: description: Log control, retention, and raw log access — CMB config, ray ID lookups, and received fields groups: control: description: Log control operations received: description: Received log operations magic-network-monitoring: description: Flow-based network traffic monitoring with configurable alerting rules and VPC flow ingestion groups: configs: description: Account-level monitoring configuration — sampling rates, thresholds, and notification settings rules: description: Monitoring rules that define traffic thresholds and trigger alerts or prefix advertisements vpc-flows: description: Ingest VPC flow logs from cloud providers for network visibility and anomaly detection magic-transit: description: DDoS-protected network transit — GRE/IPsec tunnels, static routes, Magic WAN sites, connectors, and packet captures groups: advanced-dns-protection: description: Advanced Dns Protection operations advanced-tcp-protection: description: Advanced Tcp Protection operations apps: description: Application-aware traffic policies for Magic WAN that steer traffic by app type bgp-filter-profiles: description: BGP filter profiles for controlling which routes are allowed or denied on Magic Transit tunnels bgp-settings: description: BGP settings for controlling default ASN and route redistribution on Magic Transit tunnels cf-interconnects: description: Cloudflare Network Interconnect (CNI) links for direct physical or virtual peering gre-tunnels: description: GRE tunnel endpoints that connect your network to Cloudflare for Magic Transit ipsec-tunnels: description: IPsec tunnel endpoints with pre-shared key management for encrypted transit pcaps: description: Packet capture requests for debugging traffic flowing through Magic Transit tunnels routes: description: Static routes that direct IP prefix traffic through specific GRE/IPsec tunnels sites: description: Magic WAN branch sites — base CRUD, LAN/WAN interface configuration, ACLs, connectors, app configuration, and NetFlow config mcp: description: Manage MCP portals and upstream MCP servers for Cloudflare Access AI controls groups: portals: description: Manage MCP portals, attached servers, and Code Mode settings servers: description: Manage upstream MCP servers, credentials, capabilities, and sync state network-interconnects: description: Physical and virtual private interconnects between your infrastructure and Cloudflare's network groups: cnis: description: Cloud Network Interconnect (CNI) connections — private links from cloud providers to Cloudflare interconnects: description: Physical cross-connect and partner interconnect sessions with LOA and status tracking settings: description: Account-level interconnect settings and default configurations slots: description: Available interconnect facility slots showing port capacity at Cloudflare data centers organizations: description: Multi-user organizations that group accounts, members, and shared settings under a single entity groups: account-organizations: description: List organizations associated with a specific account accounts: description: Accounts operations members: description: Members operations members-batch-create: description: Members Batch Create operations organization-profile: description: View and update the public profile information for an organization shares: description: Shares operations origin-post-quantum-encryption: description: Enable post-quantum key exchange for connections between Cloudflare and your origin server pages: description: Full-stack application hosting with Git-integrated builds, preview deployments, and custom domains groups: projects: description: Pages projects, deployments, build logs, and custom domain bindings pipelines: description: Ingest, transform, and route event streams into R2, analytics, or other destinations in real time groups: sinks: description: Destinations where pipeline data is written — R2 buckets, HTTP endpoints, or other storage streams: description: Inbound data streams that feed events into a pipeline for processing precursor: description: Precursor settings for a zone queues: description: Reliable message queuing between Workers — produce, consume, and batch-process messages at scale groups: consumers: description: Workers that automatically receive and process messages from a queue messages: description: Push messages to a queue and pull or acknowledge them from consumers purge: description: Remove all pending messages from a queue subscriptions: description: Manage queue subscriptions for event-driven message routing r2: description: S3-compatible object storage with zero egress fees — buckets, lifecycle rules, event notifications, and data migration groups: buckets: description: Create and configure R2 buckets including CORS, lifecycle, custom domains, event notifications, and object locks buckets.jobs: description: Create and inspect background jobs for an R2 bucket buckets.local-uploads: description: R2 bucket local upload configuration super-slurper: description: Migrate data from external S3-compatible storage into R2 buckets with resumable transfer jobs temporary-credentials: description: Generate short-lived S3-compatible credentials scoped to specific buckets and operations r2-data-catalog: description: Iceberg-compatible data catalog for R2 — organize objects into tables and namespaces for SQL query engines groups: credentials: description: Catalog access credentials for external query engines (Spark, Trino, etc.) maintenance-configs: description: Table maintenance settings — compaction schedules and snapshot expiration policies namespaces: description: Logical namespaces that group related tables within the data catalog namespaces.tables: description: Tables within catalog namespaces namespaces.tables.maintenance-configs: description: Table-level maintenance configurations and operations namespaces.tables.maintenance-runs: description: History of maintenance runs performed on tables radar: description: Internet-wide traffic intelligence — BGP, DNS, HTTP trends, attack data, and network quality insights groups: agent-readiness: description: Agent readiness summary statistics across the Cloudflare network ai: description: AI inference trends and model usage statistics across the Cloudflare network annotations: description: Radar annotations marking significant Internet events (outages, cable cuts, etc.) as112: description: AS112 DNS sinkhole statistics — reverse DNS query volumes for private address space attacks: description: DDoS and application-layer attack trends, vectors, and target analysis bgp: description: BGP routing data — prefix announcements, AS-level stats, route leaks, and hijack events bots: description: Internet-wide bot traffic trends, categories, and distribution statistics ct: description: Certificate Transparency log monitoring and newly-issued certificate discovery datasets: description: Downloadable Radar datasets for offline analysis and research dns: description: Global DNS query trends — top domains, resolver stats, and DNSSEC adoption email: description: Email security trends — DMARC/SPF/DKIM adoption, spam, and phishing statistics entities: description: Look up ASNs, IPs, domains, and locations with metadata and traffic summaries geolocations: description: Geographic location metadata used for regional traffic analysis http: description: HTTP protocol trends — TLS versions, HTTP versions, browser share, and OS distribution leaked-credentials: description: Leaked credential detection trends and exposure statistics netflows: description: Network-layer traffic flow data and volumetric trend analysis origins: description: Cloud and hosting origin providers (e.g. Amazon, by region) and their traffic metrics post-quantum: description: Post-quantum encryption adoption and deployment trends across the Internet quality: description: Internet connection quality metrics — speed, latency, and jitter by geography and ASN ranking: description: Top domain rankings based on DNS query popularity across the Cloudflare network robots-txt: description: Robots.txt adoption and crawler directive trends across the web search: description: Search Radar data across IPs, ASNs, domains, and locations tcp-resets-timeouts: description: TCP connection reset and timeout statistics indicating network health issues tlds: description: Top-level domain (TLD) metadata and performance trends traffic-anomalies: description: Detected traffic anomalies and unusual patterns in Internet traffic flows verified-bots: description: Catalog of known good bots (Googlebot, Bingbot, etc.) and their traffic patterns rate-limits: description: Legacy per-zone rate limiting rules — prefer Advanced Rate Limiting in Rulesets for new configurations realtime: description: Real-time audio, video, and data services on Cloudflare's global network groups: kit: description: SDK-backed meetings, participants, recordings, livestreams, and webhooks kit.analytics: description: Usage and livestream analytics for RealtimeKit applications kit.analytics.livestreams: description: Livestream analytics for RealtimeKit applications kit.analytics.livestreams.daily: description: Daily livestream analytics for RealtimeKit applications kit.analytics.usage: description: Usage analytics for RealtimeKit applications kit.apps: description: RealtimeKit applications that group meetings, sessions, and configuration kit.livestreams: description: Independent and meeting-based livestreams and their sessions kit.livestreams.sessions: description: Sessions for RealtimeKit livestreams kit.meetings: description: Meetings, participants, access tokens, and meeting livestreams kit.meetings.active: description: Live meeting state and participant controls kit.meetings.active.polls: description: Polls for active meeting sessions kit.meetings.livestream: description: Livestream operations associated with RealtimeKit meetings kit.meetings.participants: description: Participants in RealtimeKit meetings kit.meetings.participants.tokens: description: Access tokens for RealtimeKit meeting participants kit.presets: description: Reusable meeting configuration for media, permissions, and interface behavior kit.recordings: description: Meeting and participant-track recordings and recording controls kit.recordings.active: description: Active recordings for RealtimeKit meetings kit.recordings.tracks: description: Participant-track recordings for RealtimeKit meetings kit.sessions: description: Historical session data, participants, chat, transcripts, and summaries kit.sessions.chat: description: Chat messages from historical RealtimeKit sessions kit.sessions.livestreams: description: Livestreams associated with historical RealtimeKit sessions kit.sessions.participants: description: Participants in historical RealtimeKit sessions kit.sessions.peers: description: Peer details from historical RealtimeKit sessions kit.sessions.summaries: description: Summaries of historical RealtimeKit sessions kit.sessions.transcripts: description: Transcripts from historical RealtimeKit sessions kit.webhooks: description: Webhook endpoints and supported events for RealtimeKit notifications kit.webhooks.events: description: Supported events for RealtimeKit webhooks moq: description: MoQ relays for publishing and subscribing to media streams moq.relays: description: Relays are isolated MoQ scopes that carry media between publishers and subscribers moq.relays.tokens: description: Tokens that authorize publishers and subscribers to connect to a relay sfu: description: SFU apps that route WebRTC media and data between participants sfu.apps: description: SFU application namespaces for sessions and tracks turn: description: TURN keys that help clients traverse NATs and firewalls turn.keys: description: Keys used to generate short-lived TURN credentials request-tracers: description: Trace how a request would be processed through Cloudflare's rules and configuration pipeline groups: traces: description: Simulate request processing to debug rule matches, transforms, and routing decisions resource-sharing: description: Share Cloudflare resources (zones, accounts) across organizations with granular access controls groups: recipients: description: Update share recipients resources: description: Individual resources (zones, configs) that have been shared with recipients rules: description: Resources used by Cloudflare rules and rulesets groups: lists: description: Custom account-level lists of IPs, hostnames, ASNs, or redirects used in rule expressions rum: description: Real User Measurement (Web Analytics) — track page loads, Core Web Vitals, and visitor metrics groups: rules: description: Rules that control which pages and paths are tracked by Web Analytics site-info: description: Web Analytics sites — register domains and get the JavaScript beacon snippet scim: description: SCIM 2.0 provisioning — manage users, groups, and identity provider sync for your account groups: groups: description: Groups operations resource-types: description: Resource Types operations schemas: description: Schemas operations service-provider-config: description: Service Provider Config operations users: description: Users operations secrets-store: description: Centralized secret management — store API keys, tokens, and credentials for use across Workers and other products groups: quota: description: Account quota limits for secrets stores, secrets count, and storage capacity secrets: description: Encrypted key-value secrets within a store. Pass --store-id to scope. stores: description: Secret stores that hold encrypted key-value secrets accessible by Workers and services security-center: description: Security posture dashboard — view and manage security insights, misconfigurations, and vulnerabilities groups: insights: description: Security findings and recommendations across your account — DNS, SSL, WAF misconfigurations, etc. zone-insights: description: Zone-scoped security insights — counts by class, severity, type, and dismissal security-txt: description: Manage the /.well-known/security.txt file that tells security researchers how to report vulnerabilities smart-shield: description: Smart Shield settings, health checks, and cache reserve management groups: cache-reserve-clear: description: Cache Reserve Clear operations health-checks: description: Health checks operations spectrum: description: Proxy and protect arbitrary TCP/UDP applications through Cloudflare's network with DDoS mitigation groups: analytics: description: Real-time and historical connection analytics for Spectrum applications apps: description: Spectrum application configurations that map protocols and ports to origin servers speed: description: Observatory speed tests — run Lighthouse audits, track performance trends, and schedule recurring tests groups: availabilities: description: Check which speed test regions and configurations are available for your zone pages: description: Tested pages with their performance history, trends, and individual test results schedule: description: Scheduled recurring speed tests that automatically run at regular intervals ssl: description: SSL/TLS certificate management — certificate packs, Universal SSL, verification, and TLS mode recommendations groups: automatic-upgrader: description: SSL automatic mode enrollment — get or update automatic SSL/TLS upgrader settings recommendations: description: Get the recommended SSL/TLS encryption mode based on your origin server's certificate configuration stream: description: Video encoding, storage, and delivery — upload, live-stream, clip, caption, and embed video at scale groups: audio-tracks: description: Add, edit, or remove additional audio tracks on a video captions: description: Upload, generate, or retrieve captions and subtitles for videos in multiple languages clip: description: Create a new video clip from an existing video by specifying start and end times copy: description: Import a video from a URL into Stream for processing and delivery direct-upload: description: Generate a tokenized URL that lets end-users upload video directly to Stream downloads: description: Create downloadable MP4 renditions of a video for offline viewing embed: description: Retrieve the HTML embed code snippet for a video keys: description: Signing keys used to generate short-lived signed URLs for private video playback live-inputs: description: Enable and disable live input streams token: description: Generate short-lived signed URL tokens for secure private video playback typed-downloads: description: Type-specific stream download creation and deletion videos: description: Aggregate video storage usage statistics for the account watermarks: description: Watermark profiles that overlay an image on every video in the account webhooks: description: Webhook notifications for video lifecycle events (ready, error, etc.) tenants: description: Multi-tenant account management — manage tenant accounts, entitlements, and memberships groups: account-types: description: Account Types operations accounts: description: Accounts operations entitlements: description: Entitlements operations memberships: description: Memberships operations turnstile: description: CAPTCHA-free bot verification widgets that protect forms and APIs without degrading user experience groups: widgets: description: Turnstile widget configurations — site keys, secret rotation, and challenge mode settings url-scanner: description: Scan URLs for phishing, malware, and other threats — submit scans and retrieve detailed results groups: response: description: Response operations responses: description: Raw HTTP response data captured during URL scans scan: description: Scan operations scans: description: URL scan requests and results — submit URLs for analysis and retrieve threat verdicts user: description: Your Cloudflare user profile, invitations, organizations, billing, and personal API tokens groups: billing: description: View billing history and payment profile for your user (deprecated — prefer account-level billing) firewall: description: Firewall operations load-balancers.monitors: description: Load Balancers operations load-balancers.monitors.preview: description: Load Balancers operations load-balancers.monitors.references: description: Load Balancers operations load-balancers.pools: description: Load Balancers operations load-balancers.pools.edit.pools: description: Load Balancers operations load-balancers.pools.health: description: Load Balancers operations load-balancers.pools.preview: description: Load Balancers operations load-balancers.pools.references: description: Load Balancers operations load-balancers.preview: description: Load Balancers operations load-balancing-analytics.events: description: Load Balancing Analytics operations subscriptions: description: View and manage zone-level plan subscriptions owned by your user tenants: description: Tenants operations tokens: description: Create and manage personal API tokens scoped to your user for programmatic API access user.analytics: description: User-level traffic analytics — aggregated totals and timeseries across all zones vectorize: description: Globally distributed vector database for building semantic search, recommendations, and RAG applications on Workers groups: deprecated-indexes: description: Deprecated v1 Vectorize index operations metadata-index: description: Metadata indexes for filtered vector search waiting-rooms: description: Virtual queues that throttle traffic to your site during peak demand with customizable waiting pages groups: account-waiting-rooms: description: Account-scoped waiting room listing events: description: Scheduled events that temporarily override waiting room settings for sales, launches, etc. page: description: Custom HTML waiting page templates and preview rendering rules: description: Rules that bypass or modify waiting room behavior for specific request patterns settings: description: Zone-level waiting room defaults and cookie configuration statuses: description: Real-time queue status showing active users, queued users, and estimated wait times workflows: description: Durable, multi-step workflows that run on Workers with automatic retries and state persistence groups: instances: description: Workflow instance operations versions: description: Workflow version operations zaraz: description: Server-side tag manager — load third-party tools (analytics, pixels, etc.) from Cloudflare's edge without client-side JS groups: config: description: Full Zaraz configuration including tools, triggers, and variables for the zone default: description: Default Zaraz configuration template used as a starting point for new zones export: description: Export the current Zaraz configuration as a portable JSON document history: description: Configuration version history — browse and restore previous Zaraz configurations publish: description: Publish pending Zaraz configuration changes to make them live on the zone workflow: description: Workflow state for Zaraz configuration changes (draft vs. published) zero-trust: description: Cloudflare's SASE platform — secure access, device posture, DLP, tunnels, gateway policies, and network segmentation groups: dex: description: Digital Experience Monitoring — synthetic tests, fleet-wide device metrics, and network path diagnostics dlp.custom-prompt-topics: description: Data Loss Prevention - manage custom prompt topics for AI-based content detection dlp.data-classes: description: Data Loss Prevention - manage data classes used to classify sensitive information dlp.data-tag-categories: description: Data Loss Prevention - manage categories that organize data tags dlp.data-tag-category-templates: description: Data Loss Prevention - browse templates for creating data tag categories dlp.data-tags: description: Data Loss Prevention - manage tags used to classify and organize sensitive data dlp.datasets: description: Data Loss Prevention - manage datasets, versions, and uploads dlp.document-fingerprints: description: Data Loss Prevention - manage document fingerprints for detecting matching documents dlp.email.account-mapping: description: Data Loss Prevention - configure account mappings for outbound email scanning dlp.email.rules: description: Data Loss Prevention - manage outbound email scanning rules and their priorities dlp.entries: description: Data Loss Prevention - list and manage detection entries dlp.limits: description: Data Loss Prevention - view account limits and resource quotas dlp.patterns: description: Data Loss Prevention - validate regular expressions used for content detection dlp.profiles: description: Data Loss Prevention - list and retrieve profiles dlp.profiles.custom: description: Data Loss Prevention - manage custom profiles dlp.profiles.predefined: description: Data Loss Prevention - manage predefined profiles dlp.sensitivity-group-templates: description: Data Loss Prevention - browse templates for creating sensitivity groups dlp.sensitivity-groups: description: Data Loss Prevention - manage sensitivity groups and their level ordering dlp.sensitivity-levels: description: Data Loss Prevention - manage sensitivity levels within sensitivity groups dlp.settings: description: Data Loss Prevention - manage account-level settings dlp.validators: description: Data Loss Prevention - list and retrieve content validators dlp.validators.proximity-words: description: Data Loss Prevention - manage proximity-word validators risk-scoring: description: User Risk Scoring - retrieve and reset user risk scores risk-scoring.behaviours: description: User Risk Scoring - manage behaviors used to calculate user risk scores risk-scoring.integrations: description: User Risk Scoring - manage integrations that provide risk score signals risk-scoring.integrations.references: description: User Risk Scoring - retrieve integrations by external reference risk-scoring.summary: description: User Risk Scoring - retrieve account risk score summaries zones: description: Zones are domains on Cloudflare — list, create, and configure domain settings groups: aegis: description: Aegis operations fonts: description: Fonts operations origin-h2-max-streams: description: Origin H2 Max Streams operations origin-max-http-version: description: Origin Max Http Version operations origin-tls-compliance-modes: description: Manage zone Origin TLS Compliance Modes setting rum: description: Rum operations speed-brain: description: Speed Brain operations