404 error in Audit_logs API


We are receiving a 404 error when we are trying to connect to audit_logs API ( NETWORK - Http error while connecting to https://api.cloudflare.com/client/v4/organizations/1e16997cd641989cea03901a2609f7d9/audit_logs?since=2024-04-25T19:00:00&before=2024-04-25T20:00:0)

Could you check if the API service is running?

Thanks and regards

Hello there,

I think you are trying to use a Deprecated API endpoint https://api.cloudflare.com/client/v4/organizations/<id>/audit_logs:

I suggest you to try to use this endpoint instead:

GET https://api.cloudflare.com/client/v4/accounts/{account_id}/audit_logs

Hope this helps you moving forward on this case.