Cloudflare WAF security Event API

I’m having trouble making a successful API request using cURL to a shared API. I attempted to use a Python script provided in the documentation, but it doesn’t seem to be working. Can you please provide guidance on how to correctly make this API request in Python?