Create event using curl and bearer token

I need to write sentry events but I cannot use the SDK and would prefer not to use sentry-cli. I will be distributing this code in a FOSS project to untrusted clients. I have created an Authorization token that only has event:write permission.

I tried this…

curl https://sentry.io/api/{PROJECTID}/store/ -H 'Authorization: Bearer {TOKEN}' -H 'Content-Type: application/json' -X POST -d "{""event_id"":""1234""}"

The result:

{"detail":"missing authorization information"}

What am I missing?
Thank you.

The answer appears to be that the store endpoint does not support bearer tokens and instead requires that the sentry_key be included in the URL instead.

Please refer to How can I post with curl a sentry event? Which authentication credentials?

I saw that but my question was originally about using a bearer token as opposed to using the key. Is it safe to distribute a sentry key? What permissions does that provide?