v1
latestOpenAPI 3.0.02026-07-24102143224.1 KBEvents
Create an event
Creates a new usage event. Requires valid authentication and unique idempotency key. Reach out to your account manager if you would like to participate in the Beta for the new Usage API.
post/v1/events
Request body
Example request
{
"customerId": "550e8400-e29b-41d4-a716-446655440000",
"eventTypeId": "550e8400-e29b-41d4-a716-446655440000",
"datetime": "2024-01-15T10:30:00Z",
"idempotencyKey": "550e8400-e29b-41d4-a716-446655440000",
"value": 1.5,
"differentiator": "mobile",
"invoiceSplitKey": "invoice-123",
"metadata": {
"key": "value"
}
}Response
Event created successfully
Example response
{
"success": true,
"message": "Event created successfully",
"data": {
"events": {
"customerId": "550e8400-e29b-41d4-a716-446655440000",
"eventTypeId": "550e8400-e29b-41d4-a716-446655440000",
"datetime": "2024-01-15T10:30:00Z",
"idempotencyKey": "550e8400-e29b-41d4-a716-446655440000",
"value": 1.5,
"differentiator": "mobile",
"invoiceSplitKey": "invoice-123",
"parentEventId": "018c1234-5678-7abc-def0-123456789000",
"metadata": {
"key": "value"
}
}
}
}