Create services by API
Is it possible to create services ( Worker + environment variables, configure KV, ... ) by HTTP request?
2 Replies
Yes, in fact, the dashboard itself uses the same endpoints as the public api (although some products use undocumented ones). Sadly the documentation is kind of rough, espec for worker uploads, but it's all possible
https://developers.cloudflare.com/api/operations/workers-kv-namespace-create-a-namespace
https://developers.cloudflare.com/api/operations/worker-script-upload-worker-module?schema_url=https%3A%2F%2Fraw.githubusercontent.com%2Fcloudflare%2Fapi-schemas%2Fmain%2Fopenapi.yaml
Cloudflare API Documentation
Interact with Cloudflare's products and services via the Cloudflare API
Cloudflare API Documentation
Interact with Cloudflare's products and services via the Cloudflare API
PERFECT ! 😍