curl --request POST \
--url https://dev.seqhq.io/api/usage-events \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"customerEventId": "event-id-H4twuTWpYx1rkd8OMTki2hTUcZ",
"customerAlias": "customer-id-2H4u5BBwBWsS5V2sroRFqJfTXpW",
"eventType": "message-sent",
"eventTimestamp": "2022-10-01T00:00:00Z",
"eventProperties": {
"length": 500,
"type": "text_message"
}
}
'{
"id": "0184421a-8202-70ea-a729-30308a40bbf7",
"customerEventId": "event-id-H4twuTWpYx1rkd8OMTki2hTUcZ",
"customerAlias": "customer-id-2H4u5BBwBWsS5V2sroRFqJfTXpW",
"eventType": "message-sent",
"sequenceAccountId": "0184421e-a9cc-711b-af93-bf0511d4d833",
"eventTimestamp": "2022-10-01T00:00:00Z",
"eventProperties": {
"length": 500,
"type": "text_message"
}
}Create a new Usage Event
curl --request POST \
--url https://dev.seqhq.io/api/usage-events \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"customerEventId": "event-id-H4twuTWpYx1rkd8OMTki2hTUcZ",
"customerAlias": "customer-id-2H4u5BBwBWsS5V2sroRFqJfTXpW",
"eventType": "message-sent",
"eventTimestamp": "2022-10-01T00:00:00Z",
"eventProperties": {
"length": 500,
"type": "text_message"
}
}
'{
"id": "0184421a-8202-70ea-a729-30308a40bbf7",
"customerEventId": "event-id-H4twuTWpYx1rkd8OMTki2hTUcZ",
"customerAlias": "customer-id-2H4u5BBwBWsS5V2sroRFqJfTXpW",
"eventType": "message-sent",
"sequenceAccountId": "0184421e-a9cc-711b-af93-bf0511d4d833",
"eventTimestamp": "2022-10-01T00:00:00Z",
"eventProperties": {
"length": 500,
"type": "text_message"
}
}Your API credentials. Eg. Basic {credentials}.
Use this header to select an API version
2024-07-30 End-customer alias or ID
"customer-id-2H4u5BBwBWsS5V2sroRFqJfTXpW"
Event type. This can be referenced from a usage metric.
"message-sent"
ID provided by customer. Another event with the same customer event ID will supersede this one.
"event-id-H4twuTWpYx1rkd8OMTki2hTUcZ"
Event timestamp, in ISO 8601 format.
"2022-10-01T00:00:00Z"
Event properties. These can be referenced by a usage metric.
Show child attributes
Created
Unique ID
"0184421a-8202-70ea-a729-30308a40bbf7"
ID provided by customer. Another event with the same customer event ID will supersede this one.
"event-id-H4twuTWpYx1rkd8OMTki2hTUcZ"
End-customer alias or ID
"customer-id-2H4u5BBwBWsS5V2sroRFqJfTXpW"
Event type. This can be referenced from a usage metric.
"message-sent"
Sequence account ID
"0184421e-a9cc-711b-af93-bf0511d4d833"
Event timestamp, in ISO 8601 format.
"2022-10-01T00:00:00Z"
Event properties. These can be referenced by a usage metric.
Show child attributes