POST
/
external
/
v1
/
collections
/
events
curl --request POST \
  --url https://api.castled.io/backend/external/v1/collections/events \
  --header 'Api-Key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "userId": "email@domain.com",
  "event": "Added to cart",
  "properties": {},
  "timestamp": "2012-12-02T00:30:08.276Z"
}'

Headers

Api-Key
string
required

API generated from Castled dashboard.

Body

application/json
Event data to be tracked.

Schema representing the event data.

Response

204

Event successfully tracked