Cloudflare Workers for Platforms API

The Cloudflare Workers for Platforms API enables SaaS providers to deploy and manage customer code at scale using dispatch namespaces. It provides endpoints for creating namespaces, uploading user worker scripts, and dynamically routing requests to the appropriate worker with unlimited script limits and isolation.

GitHub OpenAPI

Operations 27

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /accounts/{account_id}/workers/dispatch/namespaces List Workers for Platforms dispatch namespaces · List Workers for Platforms Dispatch Namespaces #
Ask an LLM
“Which dispatch namespaces exist for my Workers for Platforms account?”
“Can I see all the dispatch namespaces in one account?”
Tell an agent
List Workers for Platforms dispatch namespaces in account {account_id}.
Show every dispatch namespace for account {account_id}.
POST /accounts/{account_id}/workers/dispatch/namespaces Create a Workers for Platforms dispatch namespace · Create Workers for Platforms Dispatch Namespace #
Ask an LLM
“How do I create a new dispatch namespace for Workers for Platforms?”
“Can I give a Workers for Platforms dispatch namespace a name when I create it?”
Tell an agent
Create a Workers for Platforms dispatch namespace named {name} in account {account_id}.
Add a new dispatch namespace to account {account_id}.
DELETE /accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace} Delete a Workers for Platforms dispatch namespace · Delete Workers for Platforms Dispatch Namespace #
Ask an LLM
“How do I delete a Workers for Platforms dispatch namespace?”
“Can I remove a dispatch namespace I no longer use?”
Tell an agent destructive · confirm first
Delete Workers for Platforms dispatch namespace {dispatch_namespace} from account {account_id}.
Remove dispatch namespace {dispatch_namespace} in account {account_id}.
GET /accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace} Get a Workers for Platforms dispatch namespace · Get Workers for Platforms Dispatch Namespace #
Ask an LLM
“What are the settings of one Workers for Platforms dispatch namespace?”
“Can I look up a single dispatch namespace by name?”
Tell an agent
Get Workers for Platforms dispatch namespace {dispatch_namespace} in account {account_id}.
Show the configuration of dispatch namespace {dispatch_namespace} for account {account_id}.
PATCH /accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace} Patch a Workers for Platforms dispatch namespace · Patch Workers for Platforms Dispatch Namespace #
Ask an LLM
“Can I change just the name of a Workers for Platforms dispatch namespace?”
“What happens to fields I leave out when patching a dispatch namespace?”
Tell an agent
Patch Workers for Platforms dispatch namespace {dispatch_namespace} in account {account_id} with name {name}.
Set trusted workers to {trusted_workers} on dispatch namespace {dispatch_namespace} in account {account_id} without touching the rest.
PUT /accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace} Update a Workers for Platforms dispatch namespace · Update Workers for Platforms Dispatch Namespace #
Ask an LLM
“How do I rename a Workers for Platforms dispatch namespace?”
“Can I make the Workers in a dispatch namespace trusted?”
Tell an agent
Rename Workers for Platforms dispatch namespace {dispatch_namespace} in account {account_id} to {name}.
Set trusted workers to {trusted_workers} on dispatch namespace {dispatch_namespace} in account {account_id}.
DELETE /accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace}/scripts Delete scripts in a Workers for Platforms namespace · Delete Workers for Platforms Scripts #
Ask an LLM
“How do I delete several dispatch scripts tagged with a certain name?”
“Can I limit how many Workers for Platforms scripts are removed per call?”
Tell an agent destructive · confirm first
Delete scripts in namespace {namespace} of account {account} matching tags {tags}.
Remove at most {limit} scripts from {namespace} in account {account} with tags {tags}.
GET /accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace}/scripts List scripts in a Workers for Platforms dispatch namespace · List Workers for Platforms Scripts #
Ask an LLM
“Which scripts are uploaded to my Workers for Platforms dispatch namespace?”
“Can I list dispatch namespace scripts tagged with a certain value?”
Tell an agent
List scripts in Workers for Platforms dispatch namespace {dispatch_namespace} of account {account_id}.
Show dispatch namespace {dispatch_namespace} scripts in account {account_id} tagged {tags}.
DELETE /accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace}/scripts/{script_name} Delete a Workers for Platforms script · Delete Workers for Platforms Script #
Ask an LLM
“How do I delete a script from a Workers for Platforms dispatch namespace?”
“Can I force-delete a dispatch namespace script that other Workers still reference?”
Tell an agent destructive · confirm first
Delete script {script_name} from Workers for Platforms dispatch namespace {dispatch_namespace} in account {account_id}.
Force-delete dispatch namespace {dispatch_namespace} script {script_name} in account {account_id} with force {force}.
GET /accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace}/scripts/{script_name} Get a Workers for Platforms script's details · Get Workers for Platforms Script details #
Ask an LLM
“What are the details of a script uploaded to a Workers for Platforms dispatch namespace?”
“Can I look up one dispatch namespace script by name?”
Tell an agent
Get details of script {script_name} in Workers for Platforms dispatch namespace {dispatch_namespace}, account {account_id}.
Show the metadata of dispatch namespace {dispatch_namespace} script {script_name} for account {account_id}.
PUT /accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace}/scripts/{script_name} Upload a Workers for Platforms script module · Upload Workers for Platforms Script Module #
Ask an LLM
“How do I upload a script module to a Workers for Platforms dispatch namespace?”
“Can I upload a dispatch namespace script with a metadata manifest?”
Tell an agent
Upload script {script_name} to Workers for Platforms dispatch namespace {dispatch_namespace} in account {account_id} with metadata {metadata}.
Upload dispatch namespace {dispatch_namespace} script {script_name} in account {account_id} using metadata {metadata} and files {files}.
POST /accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace}/scripts/{script_name}/assets-upload-session Start uploading assets for a Workers for Platforms script · Create Workers for Platforms Assets Upload Session #
Ask an LLM
“How do I start uploading static assets for a Workers for Platforms script?”
“Can I upload a collection of assets for a dispatch namespace script version?”
Tell an agent
Create an assets upload session for script {script_name} in Workers for Platforms dispatch namespace {dispatch_namespace}, account {account_id}, with manifest {manifest}.
Start uploading assets for dispatch namespace {dispatch_namespace} script {script_name} in account {account_id} using manifest {manifest}.
GET /accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace}/scripts/{script_name}/bindings Get a Workers for Platforms script's bindings · Get Workers for Platforms Script Bindings #
Ask an LLM
“Which bindings does a script in my Workers for Platforms dispatch namespace have?”
“Can I see the bindings of a dispatch namespace script?”
Tell an agent
Get bindings of script {script_name} in Workers for Platforms dispatch namespace {dispatch_namespace}, account {account_id}.
Show the bindings on dispatch namespace {dispatch_namespace} script {script_name} for account {account_id}.
GET /accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace}/scripts/{script_name}/content Get a Workers for Platforms script's content · Get Workers for Platforms Script Content #
Ask an LLM
“What code is in a script uploaded to a Workers for Platforms dispatch namespace?”
“Can I read the content of a dispatch namespace script?”
Tell an agent
Get content of script {script_name} in Workers for Platforms dispatch namespace {dispatch_namespace}, account {account_id}.
Show the code of dispatch namespace {dispatch_namespace} script {script_name} for account {account_id}.
PUT /accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace}/scripts/{script_name}/content Replace a Workers for Platforms script's content · Replace Workers for Platforms Script Content #
Ask an LLM
“How do I replace the code of a script in a Workers for Platforms dispatch namespace?”
“Can I upload new script content for a dispatch namespace script?”
Tell an agent
Replace content of script {script_name} in Workers for Platforms dispatch namespace {dispatch_namespace}, account {account_id} with metadata {metadata}.
Upload new code for dispatch namespace {dispatch_namespace} script {script_name} in account {account_id} using metadata {metadata} and files {files}.
GET /accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace}/scripts/{script_name}/secrets List secrets bound to a Workers for Platforms script · List Workers for Platforms Script Secrets #
Ask an LLM
“Which secrets are bound to a script in my Workers for Platforms dispatch namespace?”
“Can I see all the secrets on a dispatch namespace script?”
Tell an agent
List secrets bound to script {script_name} in Workers for Platforms dispatch namespace {dispatch_namespace}, account {account_id}.
Show every secret on dispatch namespace {dispatch_namespace} script {script_name} for account {account_id}.
PUT /accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace}/scripts/{script_name}/secrets Add a secret to a Workers for Platforms script · Add a secret to a Workers for Platforms script #
Ask an LLM
“How do I add a secret to a Workers for Platforms script?”
“Can I create a new version of a dispatch namespace script with one secret?”
Tell an agent
Add a secret to script {script_name} in Workers for Platforms dispatch namespace {dispatch_namespace}, account {account_id}.
Create a new version of dispatch namespace {dispatch_namespace} script {script_name} in account {account_id} with a secret.
PATCH /accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace}/scripts/{script_name}/secrets-bulk Patch many secrets on a Workers for Platforms script · Patch multiple Workers for Platforms script secrets #
Ask an LLM
“How do I create, update or delete several secrets on a Workers for Platforms script at once?”
“Can I change multiple dispatch namespace script secrets in one request?”
Tell an agent
Patch secrets {secrets} on script {script_name} in Workers for Platforms dispatch namespace {dispatch_namespace}, account {account_id}.
Apply version tags {version_tags} to dispatch namespace {dispatch_namespace} script {script_name} in account {account_id} while patching secrets {secrets}.
DELETE /accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace}/scripts/{script_name}/secrets/{secret_name} Delete a secret from a dispatch script · Delete Workers for Platforms script secret #
Ask an LLM
“How do I remove a secret from a Workers for Platforms script?”
“Does deleting a script secret also encode the secret name?”
Tell an agent destructive · confirm first
Delete secret {secret} from script {script} in namespace {namespace} of account {account}.
Remove dispatch script secret {secret} on {script} in namespace {namespace} (account {account}).
GET /accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace}/scripts/{script_name}/secrets/{secret_name} Get a Workers for Platforms script secret · Get Workers for Platforms Script Secret #
Ask an LLM
“What value is stored in one secret bound to a Workers for Platforms script?”
“Can I read a single dispatch namespace script secret?”
Tell an agent
Get secret {secret_name} on script {script_name} in Workers for Platforms dispatch namespace {dispatch_namespace}, account {account_id}.
Show dispatch namespace {dispatch_namespace} script {script_name} secret {secret_name} for account {account_id}.
GET /accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace}/scripts/{script_name}/settings Get settings of a dispatch namespace script · Get Workers for Platforms Script Settings #
Ask an LLM
“What metadata is set on a script in a Workers for Platforms dispatch namespace?”
“Can I read the settings of a script uploaded to a dispatch namespace?”
Tell an agent
Get the settings of script {script_name} in dispatch namespace {dispatch_namespace} on account {account_id}.
Show metadata for dispatch namespace script {script_name}.
PATCH /accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace}/scripts/{script_name}/settings Patch settings of a dispatch namespace script · Patch Workers for Platforms Script Settings #
Ask an LLM
“Can I change the metadata of a script in a dispatch namespace?”
“How do I update the bindings on a dispatch namespace script?”
Tell an agent
Patch the settings of script {script_name} in dispatch namespace {dispatch_namespace} on account {account_id}.
Update dispatch namespace script {script_name} metadata to {settings}.
GET /accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace}/scripts/{script_name}/tags List tags on a dispatch namespace script · List Workers for Platforms Script Tags #
Ask an LLM
“Which tags are attached to a script in a dispatch namespace?”
“Can I list the tags on a dispatch namespace script?”
Tell an agent
List tags on script {script_name} in dispatch namespace {dispatch_namespace} on account {account_id}.
Show dispatch namespace script {script_name} tags.
PUT /accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace}/scripts/{script_name}/tags Replace tags on a dispatch namespace script · Replace Workers for Platforms Script Tags #
Ask an LLM
“Can I overwrite all tags on a dispatch namespace script?”
“How do I replace a dispatch namespace script's tag list?”
Tell an agent
Replace the tags on script {script_name} in dispatch namespace {dispatch_namespace} on account {account_id}.
Overwrite dispatch namespace script {script_name} tags.
DELETE /accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace}/scripts/{script_name}/tags/{tag} Delete a tag from a dispatch namespace script · Delete Workers for Platforms Script Tag #
Ask an LLM
“Can I remove a tag from a script in a dispatch namespace?”
“What happens if I delete a tag that doesn't exist on a dispatch namespace script?”
Tell an agent destructive · confirm first
Delete tag {tag} from script {script_name} in dispatch namespace {dispatch_namespace} on account {account_id}.
Remove dispatch namespace script {script_name} tag {tag}.
PATCH /accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace}/scripts/{script_name}/tags/{tag} Update one tag on a dispatch namespace script · Update Workers for Platforms Script Tag #
Ask an LLM
“Can I change just one key of a dispatch namespace script's tags?”
“Which API version do I need to update a single tag on a dispatch namespace script?”
Tell an agent
Update tag {tag} on script {script_name} in dispatch namespace {dispatch_namespace} on account {account_id} to {value}.
Set dispatch namespace script {script_name} tag {tag} to {value}.
PUT /accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace}/scripts/{script_name}/tags/{tag} Add a tag to a dispatch namespace script · Create Workers for Platforms Script Tag #
Ask an LLM
“Can I add a single tag to a script in a dispatch namespace?”
“How do I attach one tag to a dispatch namespace script?”
Tell an agent
Add tag {tag} to script {script_name} in dispatch namespace {dispatch_namespace} on account {account_id}.
Create dispatch namespace script {script_name} tag {tag}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/cloudflare:cloudflare-workers-for-platforms-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

cloudflare-workers-for-platforms-api-openapi.yml Raw ↑
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:


# --- truncated at 32 KB (210 KB total) ---
# Full source: https://artifacts.apis.io/cloudflare/openapi/cloudflare-workers-for-platforms-api-openapi.yml