Extract
Returns a paginated list of visit events
Returns a paginated list of visit events.
GET
https://example.thoughtindustries.com/incoming/v2/events/visitExample request
curl "https://example.thoughtindustries.com/incoming/v2/events/visit" \
-H 'Authorization: Bearer YOUR_API_KEY'Parameters
| Name | Type | Required | Location | Description |
|---|---|---|---|---|
kind | string | Yes | path | The event kind to extract, supplied as the final path segment of the URL (visit for this endpoint). |
cursor | string | No | query | Opaque cursor string used to fetch the next page of results. |
startDate | integer | No | query | Returns only events that occurred at or after this time, expressed as a Unix timestamp in milliseconds. |
endDate | integer | No | query | Returns only events that occurred at or before this time, expressed as a Unix timestamp in milliseconds. |
Example response
{
"pageInfo": {
"cursor": "string",
"hasMore": true
},
"events": []
}Response fields
| Field | Type | Description |
|---|---|---|
pageInfo | object | Cursor-based pagination metadata for the event stream. |
pageInfo.cursor | string | Opaque cursor to pass on the next request to retrieve the following page. |
pageInfo.hasMore | boolean | Whether additional pages of results are available. |
events | object[] | Array of event objects matching the query parameters. |