cURL
curl --request POST \ --url https://api.trench.dev/events \ --header 'Content-Type: application/json' \ --data '{ "events": [ { "anonymousId": "guest-1234567890", "event": "UserSignedUp", "timestamp": "2021-01-01T00:00:00Z", "type": "track", "userId": "user-1234567890", "groupId": "group-1234567890", "properties": { "page": "/home", "referrer": "https://www.google.com" }, "traits": { "email": "john.doe@example.com", "name": "John Doe" }, "instanceId": "customer-1234567890" } ] }'
Use track, identify, and group to send events to Trench.
track
identify
group
/events
The events have been successfully created.
Was this page helpful?