In mobile apps, it's often a good idea to locally spool events instead of sending them in real time. Doing so can help reduce battery usage and allow for event collection when there isn't an active internet connection.
The current API is designed to post a single event in real time. In mobile apps we can simply call the single event endpoint multiple times, but and endpoint that accepts multiple events would be more efficient.
For example, if we had 3 events queued up we currently have to:
GET https://meta.wikimedia.org/beacon/event?<event-json-1> GET https://meta.wikimedia.org/beacon/event?<event-json-2> GET https://meta.wikimedia.org/beacon/event?<event-json-2>
Preferably we cold do something like:
POST https://meta.wikimedia.org/beacon/batch-event
with body something like:
{ "events": [<event-json-1>, <event-json-2>, <event-json-3>] }