Which API Token to use?

Hello all,
I want to use cloudflare workers to return custom json data for specific route and subdomain
dev.mydomain.com/api/cfg => returns dev config json

www.mydomain.com/api/cfg => returns production config json
My question is which API token should I use?
Zone.Workers Routes or Account.Workers Scripts?
and do I need to have write permission or only read will suffice?
Thank you

Use for what?

I want to use a token to deploy my worker code using wrangler

There’s an “Edit Cloudflare Workers” template. I’d go with that.


Thanks, I think I understand, just leave all the templates’s permission as they are.

You can certainly play with them and remove some and check if it still works and revert if it doesn’t. But the template should be a good start.