Required API Token permission to create other API tokens

I need to programmatically create R2 scoped API tokens for specific Cloudflare R2 buckets.

This seems possible with the user/tokens endpoint but it’s not clear to me what permissions the API token needs this endpoint when authenticating.

Thanks!

It would need to have the “Account.Settings:Edit” permission.

There is a template for that:

And here is a quick link: https://dash.cloudflare.com/profile/api-tokens?permissionGroupKeys=[{"key"%3A"account_api_tokens"%2C"type"%3A"edit"}]&name=Create+Additional+Tokens

1 Like

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