For Workers & Pages, what is the name of the domain?
What is the issue or error you’re encountering
Wrong example
What steps have you taken to resolve the issue?
Id the docs there is an example:
curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/d1/database/$DATABASE_ID/query
-H ‘Content-Type: application/json’
-H “X-Auth-Email: $CLOUDFLARE_EMAIL”
-H “X-Auth-Key: $CLOUDFLARE_API_KEY”
-d ‘{
“sql”: “SELECT * FROM myTable WHERE field = ? OR field = ?;”,
“params”: [
“firstParam”,
“secondParam”
]
}’
In fact, correct auth header is Authorization: Bearer $CLOUDFLARE_API_KEY