Reset cursor
A reset cursor is used for the first request you make to the API to create a new point from which to start fetching data. You can also use a reset cursor any time you need to reset the parameters of your cursor – such as the number of records to return with each request – or go back to an earlier point in the records. For the first POST request you make to the API, you must include aResetCursor object with an optional start time, end time, and limit parameters in the request body. The return will include a cursor in the response body that you can save to use in the next call made to the API. If no parameters are provided, the API will use the default values indicated in the schema.
For example:
- Example reset cursor request
- ResetCursor object schema
Cursor
Thecursor is a persistent checkpoint that marks your exact position in the event stream and remains valid across API sessions.
For continued calling of the API, you should save the cursor you receive from each response. In your next call to the API, include the cursor from the previous response in the request body to start fetching data from the last indicated position. This allows you to resume from where you left off without missing any events.
- Example cursor
- Cursor object schema
cursor position for future requests.