POST
/
usage-events
curl --request POST \
  --url https://eu.sequencehq.com/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"
  }
}

Headers

Authorization
string
required

Your API credentials. Eg. Basic {credentials}.

Body

application/json
customerEventId
string

ID provided by customer. Another event with the same customer event ID will supersede this one.

customerAlias
string
required

End-customer alias or ID

eventType
string
required

Event type. This can be referenced from a usage metric.

eventTimestamp
string

Event timestamp, in ISO 8601 format.

eventProperties
object

Event properties. These can be referenced by a usage metric.

Response

201 - application/json
id
string
required

Unique ID

customerEventId
string
required

ID provided by customer. Another event with the same customer event ID will supersede this one.

customerAlias
string
required

End-customer alias or ID

eventType
string
required

Event type. This can be referenced from a usage metric.

sequenceAccountId
string
required

Sequence account ID

eventTimestamp
string
required

Event timestamp, in ISO 8601 format.

eventProperties
object
required

Event properties. These can be referenced by a usage metric.