List all UsageEvents
curl --request GET \
--url https://eu.sequencehq.com/api/usage-events \
--header 'Authorization: <authorization>'
{
"items": [
{
"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": "af9b5988-1d7b-45f6-a188-326df5e59b24"
}
],
"pagination": {
"after": "MDE4NDUyNjYtNmQ2NC03N2M4LTlhZGYtNDQ4N2Q5NGQxNDU3",
"before": "MDE4NDQyMWUtYTljYy03MTFiLWFmOTMtYmYwNTExZDRkODMz",
"totalResultSize": 10
}
}
Headers
Your API credentials. Eg. Basic {credentials}
.
Specifying a unique ID for this request here lets you retry it without risk of performing the same operation twice.
Query Parameters
Pagination cursor. To page through items, omit this parameter to retrieve the first page, and then successively use the value you get from pagination.after
or pagination.before
to retrieve each page.
Pagination cursor. To page through items, omit this parameter to retrieve the first page, and then successively use the value you get from pagination.after
or pagination.before
to retrieve each page.
Sort order. Default: DESC (descending, most often used for reverse chronological sorting).
Pagination offset. To retrieve a non-contiguous page, use this parameter to specify the offset to fetch relative to pagination.after
or pagination.before
.
Maximum number of objects to return per-page.
Filter events by customer alias
Filter events by type
Filter events by event id
Filter events by timestamp before
Filter events by timestamp after
Sort column. Default: creation time.
Response
curl --request GET \
--url https://eu.sequencehq.com/api/usage-events \
--header 'Authorization: <authorization>'
{
"items": [
{
"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": "af9b5988-1d7b-45f6-a188-326df5e59b24"
}
],
"pagination": {
"after": "MDE4NDUyNjYtNmQ2NC03N2M4LTlhZGYtNDQ4N2Q5NGQxNDU3",
"before": "MDE4NDQyMWUtYTljYy03MTFiLWFmOTMtYmYwNTExZDRkODMz",
"totalResultSize": 10
}
}