Skip to main content
POST
/
events
/
cURL
curl --request POST \
  --url https://api.getenso.ai/events/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "metric": "<string>",
  "value": 123,
  "timestamp": "2023-11-07T05:31:56Z",
  "CustomerEntityId": "<string>",
  "metadata": {},
  "eventId": "<string>"
}'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Event object that needs to be created

metric
string
required

Metric name

value
number
required

Value of the metric

timestamp
string<date-time>
required

Timestamp of the event

CustomerEntityId
string
required

Enso ID of the customer entity associated with the event. If Enso id is not known, you can pass any of the unique identifiers of the customer entity instead.

metadata
object

Additional metadata for the event

eventId
string

Unique identifier for the event. This is an optional field that can be used to track events uniquely. If not passed, an eventId will be generated based on meteric, value, timestamp and CustomerEntityId.

I