Skip to main content
https://.thoughtindustries.com

Extract

List subscriptionCancel

List subscriptionCancel

GEThttps://example.thoughtindustries.com/incoming/v2/events/subscriptionCancel

Retrieves a paginated list of subscription cancellation events. Emitted when a learner cancels a subscription. Use cursor and date range filters to page through or narrow results.

Example request

curl "https://example.thoughtindustries.com/incoming/v2/events/subscriptionCancel" \
  -H 'Authorization: Bearer YOUR_API_KEY'

Parameters

NameTypeRequiredLocationDescription
kindstringNoqueryFilters events by kind subtype.
cursorstringNoqueryOpaque cursor string returned by a previous response; use to fetch the next page of results.
startDateISO 8601 timestampNoqueryReturns only events that occurred at or after this ISO 8601 timestamp.
endDateISO 8601 timestampNoqueryReturns only events that occurred at or before this ISO 8601 timestamp.
notifiableIduuidNoqueryFilters events to those associated with the specified notifiable resource UUID.
userIduuidNoqueryFilters events to those triggered by the specified user UUID.

Example response

{
  "data": {
    "APIEvents": {
      "pageInfo": {
        "perPage": 0,
        "cursor": "string",
        "total": 0,
        "hasMore": true
      },
      "events": [
        {}
      ]
    }
  }
}

Response fields

FieldTypeDescription
pageInfoCursorPageInfoPagination metadata for the current result set.
pageInfo.perPageintegerNumber of events returned per page.
pageInfo.cursorstringOpaque cursor to pass as the cursor parameter to retrieve the next page.
pageInfo.totalintegerTotal number of matching events across all pages.
pageInfo.hasMorebooleanIndicates whether additional pages of results are available.
eventsobject[]Array of subscription cancellation event objects for the current page.