Cloudflare Images batch API not work for doc api endpoint

I’ve encountered an issue with the documentation for Upload via batch API on Cloudflare’s developer site, specifically regarding the authentication process. The documentation suggests obtaining a token via the images/v1/batch_token endpoint for various API requests. You can find the documentation here.

It outlines the following steps:

  1. To obtain a token, use the images/v1/batch_token endpoint as indicated in the provided example.
  2. Once you have your token, it’s supposed to authorize requests for several operations, including:

However, in my testing, using the suggested BATCH_TOKEN for these API endpoints results in authentication errors, specifically:

  "success": false,
  "errors": [
      "code": 10000,
      "message": "Authentication error"

In contrast, when using a CLOUDFLARE_API_TOKEN, the authentication process succeeds, and I receive a successful response.

This discrepancy leads to confusion, and I personal do believe the documentation have previously included correct information regarding these endpoints but has since been updated, causing errors and confusion. The endpoints in question are as follows:

  • For listing images V2:
  • For uploading images V1:

This topic was automatically closed after 15 days. New replies are no longer allowed.