POST
/
usage-events
Header
Body
curl --request POST \
  --url https://eu.sequencehq.com/api/usage-events \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "customerAlias": "customer-id-2H4u5BBwBWsS5V2sroRFqJfTXpW",
  "eventType": "message-sent"
}'
{
  "customerAlias": "customer-id-2H4u5BBwBWsS5V2sroRFqJfTXpW",
  "customerEventId": "event-id-H4twuTWpYx1rkd8OMTki2hTUcZ",
  "eventProperties": {
    "length": 500,
    "type": "text_message"
  },
  "eventTimestamp": "2022-10-01T00:00:00Z",
  "eventType": "message-sent",
  "id": "0184421a-8202-70ea-a729-30308a40bbf7",
  "sequenceAccountId": "0184421e-a9cc-711b-af93-bf0511d4d833"
}

Headers

Authorizationrequired
string

Your API credentials. Eg. Basic {credentials}.

Idempotency-Key
string

Specifying a unique ID for this request here lets you retry it without risk of performing the same operation twice.

Body

application/json
customerAliasrequired
string
customerEventId
string
eventProperties
object
eventTimestamp
string
eventTyperequired
string

Response

201 - application/json
customerAliasrequired
string
customerEventIdrequired
string
eventPropertiesrequired
object
eventTimestamprequired
string
eventTyperequired
string
idrequired
string
sequenceAccountIdrequired
string