Cloudflare Developer PlatformWednesday · June 3, 2026FREE

Workers - New Workers bulk secrets API endpoint

cloudflareworkerssecretsapi

Cloudflare has introduced a new bulk secrets API endpoint for Workers, enabling developers to manage multiple secrets in a single HTTP request. The endpoint accepts a JSON payload with a "secrets" object where each key is a secret name. To create or update a secret, include its value as an object with type and text fields; to delete a secret, set its value to null. Secrets omitted from the request are left unchanged. The same functionality is available via the command line using `npx wrangler secret bulk < secrets.json`. Each request supports up to 100 total operations (creates, updates, and deletes combined). This feature streamlines secret management, particularly for deployments or environments with many secrets, reducing the number of API calls and potential for errors. Previously, each secret operation required a separate API call. The bulk endpoint is available immediately through the Cloudflare API and Wrangler CLI.

// why it matters

Reduces API calls and simplifies secret management for Workers deployments.

Sources

Primary · Cloudflare Developer Platform
▸ Read original at developers.cloudflare.com

Like this? Get the next digest.

Workers - New Workers bulk secrets API endpoint — aigest.dev