When I use my global api key in development… the direct creator upload response works great.
I created a token that has edit access to Cloudflare Images… but I am getting an authorization error now.
What is the correct authorization I need to make direct creator upload work without using my global key?
Thanks for the help!
I just tested the following API call and it was successful:
curl --request POST \
--url https://api.cloudflare.com/client/v4/accounts/<ACCOUNT_ID>/images/v2/direct_upload \
--header 'Authorization: Bearer <API_TOKEN>' \
--form 'requireSignedURLs=true'
The API token only had the Account » Cloudflare Images » Edit permission.
Oh sweet. Thanks I am going to try this first thing tomorrow. Thanks for the response!
system
closed
#5
This topic was automatically closed after 15 days. New replies are no longer allowed.