Permission error - can't upload image through API call
Hello,
I'm new to Cloudinary, and trying to upload image through an API call.
I keep on getting a 403 error response, with the message "You don't have sufficient permissions to access this endpoint".
Here is my API call:
const asset = await this.$cloudinary.upload(data, {
...options,
apiKey: this.$config.cloudinary.apiKey,
signature,
})
cloudinary: {
apiKey: '565631973877227',
}
publicRuntimeConfig:{
cloudinary: {
apiKey: '565631973877227',
}
},
-
Hi Arthur,
You mentioned a Media Source, which is part of our Media Optimizer product, but the code sample you provided is calling the Upload API of our Programmable Media product.
If you're trying to use the Media Optimizer API, that's a different set of APIs: https://cloudinary.com/documentation/media_optimizer#media_optimizer_api
If you need to use the Programmable Media product, it's not currently possible to switch the product for an account after it's created, but you can sign up for another free account using a different email address, and select the Programmable Media product in the signup form.Thanks,
Stephen
0
Post is closed for comments.
Comments
1 comment