What API permissions are required for getting deployments?

I’m trying to make a call to Get Deployments.

I’m deploying a Hugo static generator website.

I’ve tried the following:

Account - Account Custom Pages - Edit
Account - Cloudflare Pages - Edit
Zone - Custom Pages - Edit

None of them work.

But trying with my global API key works just fine, so I think it’s a permissions issue.

I also tried to use the real all template for creating the token and then setting all the options to edit (if possible). I still get an authentication error.

Try adding all of the “Workers” permissions.

1 Like

I updated the post, but I’m not doing anything with workers. Just having Cloudflare build a Hugo site and then deploy it.

nm, I was using the X-Auth-Key and email headers with bearer. Just using the bearer worked fine.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.