Annotations API: how to enable?

Grafana v11.6.1 on Linux RHEL. I am trying to use the annotations API to create a global annotation, something not related to a particular dashboard or panel. I have configured user, access token etc… When I try to create an annotation via the API using curl, I always get the same error:

curl -X POST 'http://localhost:3000/api/annotations' -H "Content-Type: application/json" -H "Authorization: Bearer <TOKEN>" -d '{"message":"Test annotation"}'
{"message":"Failed to save annotation"}

I am sure about the token, using a wrong one gives {"message":"Access denied to save the annotation"}

Log file (warn) empty.

Is there anything else I need to do to create new annotations?

I see in v12 the configuration item actions_allow_post_url but I cannot find anything equivalent for v11.

Found the problem (going to “debug” in the logs): I should have used -d '{"text":"Test annotation"}' instead of -d '{"message":"Test annotation"}'