Get an Event Cursor
GET {{baseUrl}}/1/admin/events/1/cursor/create?company_id=IMbAcASGu56&user_id=UTUAEAiZl6B&event_types=create_thread,open-thread&since_timestamp=1554241192914801&until_timestamp=1554244792914801&count=100
Gets a starting cursor to retrieve historical events that happened more than two hours ago.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
company_id | string | (Required) The ID of the company to get events for. | |
user_id | string | The ID of the user to get events for. | |
event_types | string | A comma-separated list of event types this cursor will be used to | |
search for. Event types are defined above. If this list is left | |||
empty, then all event types the authorized user has access to | |||
will be included. | |||
since_timestamp | number | (Required) Timestamp in microseconds since UNIX epoch to search for events from. | |
until_timestamp | number | (Required) Timestamp in microseconds since UNIX epoch to search for events until. Timestamp must be earlier than 2 hours before the current time. | |
count | number | Maximum number of events to return for each batch. |
RESPONSES
status: OK
{"next_cursor":"eyJjdXJzb3JfdmVyc2lvbiI6MSwic..."}