API to create an event
EntityService:getEntityByIdentifier, EventService:createEvent, MeterService:createUsageByMeterJWT bearer token obtained from POST /auth/system-login using your client credentials.
Event object that needs to be created
Enso ID of the customer entity associated with the event. If Enso ID is not known, you can pass any unique identifier of the customer entity instead.
"ent_6CsgzAdRgTlzT_9O"
Metric name
"api_calls"
Value of the metric
42
Timestamp of the event
"2026-04-01T12:00:00Z"
Additional metadata for the event
{ "source": "billing-job" }
Unique identifier for the event. If not passed, an event ID may be generated from metric, value, timestamp, and CustomerEntityId.
"evt_123"
Job identifier for the event import or batch
"job_xI_wWRvcLpZzhiJF"
Job identifier for the event import or batch
"job_xI_wWRvcLpZzhiJF"
Event created
Enso ID of the customer entity associated with the event. If Enso ID is not known, you can pass any unique identifier of the customer entity instead.
"ent_6CsgzAdRgTlzT_9O"
Metric name
"api_calls"
Value of the metric
42
Timestamp of the event
"2026-04-01T12:00:00Z"
Additional metadata for the event
{ "source": "billing-job" }
Unique identifier for the event. If not passed, an event ID may be generated from metric, value, timestamp, and CustomerEntityId.
"evt_123"
Job identifier for the event import or batch
"job_xI_wWRvcLpZzhiJF"
Job identifier for the event import or batch
"job_xI_wWRvcLpZzhiJF"