POST
/
api
/
events
/
batch
/
For a walkthrough check out this guide
Authorization
string
required

Header for authenticating with Laudspeaker. Starts with Api-Key followed by the API key, for example Api-Key M4jxXt6diYz1Dds1YmhHe93KGPAUi24PlXgaiRXi.

batch
Event[]
required

This field contains the array of events.

An event looks like:

{
      "timestamp": "2024-03-15T02:31:05.295Z",
      "uuid": "F451DF0A-D713-4076-AE20-41AB1641BC98",
      "event": "purchase",
      "source": "mobile",
      "correlationKey": "_id",
      "payload": {
        "cart": true
      },
      "correlationValue": "FBBBCB26-B75E-4342-B40B-568BF879F7C5"
    },

An event must contain an event field (string), correlationKey field (string), correlationValue field (string), and a source set to “custom” and can optionally contain a payload object which contains data you want to send

Examples