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

customerEventId

customerAlias
string
required

customerAlias

eventType
string
required

eventType

eventTimestamp
string

eventTimestamp

eventProperties
object

eventProperties

Response

201 - application/json
id
string
required

id

customerEventId
string
required

customerEventId

customerAlias
string
required

customerAlias

eventType
string
required

eventType

sequenceAccountId
string
required

sequenceAccountId

eventTimestamp
string
required

eventTimestamp

eventProperties
object
required

eventProperties