Create event using curl and bearer token

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