Audit log API return error code 10000 when using API token

I’m using API (with API token) to get audit log, but Cloudflare return error code 10000, authentication error.


Error message:
“message”:“GET method with API Tokens is not supported by this API”

Please help. Thanks.

Hi @anh.le3

thanks for your message. The Cloudflare API supports API tokens as well as a Global API Key. It looks like this specific API method does not yet support API tokens, so you should use the Global API Key instead. Here’s a support article that will show you where to find your Global API Key.

Hope this helps

1 Like