© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developers•2y ago•
2 replies
marko.333

Can an external http client make an RPC call to a Worker?

I would like to externally make RPC calls to Workers (mostly for testing) using something like Postman or curl.
I'm hoping some general gateway like this exists...
curl -X POST https://worker-url.com \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "method": "someMethod", "params": {"key1": "value1"}, "id": 1}'
curl -X POST https://worker-url.com \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "method": "someMethod", "params": {"key1": "value1"}, "id": 1}'

My current hack is to implement a wrapper Worker http endpoint for each RPC call. It works, but it at takes time, and it feels ugly/redundant?
Any suggestions? Thx.
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

How can I make requests to my RPC WorkerEntrypoint worker.
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
9mo ago
Can a worker (with a router) call itself?
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3y ago
How to make a worker call itself and verify that the call came from that same worker
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3y ago