Tags
Use tags to organize, search, and filter user Workers at scale. Tag Workers based on customer ID, plan type, project ID, or environment. After you tag user Workers, you can perform bulk operations like deleting all Workers for a specific customer.
- Go to Workers for Platforms in the Cloudflare dashboard and select your namespace.
- Select a user Worker from the list.
- Go to Settings > Tags.
- Add your tags (for example,
customer-123,pro-plan,production). - Select Save.
You can also search and filter Workers by tags in the namespace view.
For complete API documentation, refer to Workers for Platforms API.
Fetch all tags for a Worker script.
Required API token permissions
At least one of the following token permissions
is required:
Workers Tail ReadWorkers Scripts WriteWorkers Scripts Read
curl "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/workers/dispatch/namespaces/$DISPATCH_NAMESPACE/scripts/$SCRIPT_NAME/tags" \ --request GET \ --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN"Replace all tags on a Worker script. Existing tags not in the request are removed.
Required API token permissions
At least one of the following token permissions
is required:
Workers Scripts Write
curl "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/workers/dispatch/namespaces/$DISPATCH_NAMESPACE/scripts/$SCRIPT_NAME/tags" \ --request PUT \ --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN"Add one tag to a Worker script without affecting existing tags.
Required API token permissions
At least one of the following token permissions
is required:
Workers Scripts Write
curl "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/workers/dispatch/namespaces/$DISPATCH_NAMESPACE/scripts/$SCRIPT_NAME/tags/$TAG" \ --request PUT \ --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN"Remove one tag from a Worker script.
Required API token permissions
At least one of the following token permissions
is required:
Workers Scripts Write
curl "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/workers/dispatch/namespaces/$DISPATCH_NAMESPACE/scripts/$SCRIPT_NAME/tags/$TAG" \ --request DELETE \ --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN"List all Workers that match a tag filter. Use tag:yes to include or tag:no to exclude.
Required API token permissions
At least one of the following token permissions
is required:
Workers Tail ReadWorkers Scripts WriteWorkers Scripts Read
curl "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/workers/dispatch/namespaces/$DISPATCH_NAMESPACE/scripts?tags=production%3Ayes" \ --request GET \ --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN"Delete all Workers matching a tag filter. Use this to bulk delete Workers when a customer leaves your platform.
Required API token permissions
At least one of the following token permissions
is required:
Workers Scripts Write
curl "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/workers/dispatch/namespaces/$DISPATCH_NAMESPACE/scripts?tags=customer-123%3Ayes" \ --request DELETE \ --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN"Was this helpful?
- Resources
- API
- New to Cloudflare?
- Directory
- Sponsorships
- Open Source
- Support
- Help Center
- System Status
- Compliance
- GDPR
- Company
- cloudflare.com
- Our team
- Careers
- © 2026 Cloudflare, Inc.
- Privacy Policy
- Terms of Use
- Report Security Issues
- Trademark
-