Skip to main content
POST
Send events

Authorizations

Authorization
string
header
required

Waniwani API key passed as Authorization: Bearer wwk_<key>.

Body

application/json
sentAt
string<date-time>
required
source
object
required
events
object[]
required

Each event is checked on its own: one that fails is listed in rejected and the others are still accepted. Each event needs a sessionId, externalUserId or visitorId in correlation.

Minimum array length: 1

Response

200

accepted
integer
required

How many events passed the checks. An event whose id is already stored counts again but is not stored twice, so this is not a count of new events.

Required range: x >= 0
requestId
string
required
rejected
object[]

The events that did not pass. Absent when every event was accepted.