Events

Get events

1GET https://api.markprompt.com/analytics/threads

Retrieves the list of analytics events.

Request body

KeyTypeDescription
fromstring

The start of the range, as an ISO 8601 string.

tostring

The end of the range, as an ISO 8601 string.

Example request

1curl "https://api.markprompt.com/analytics/events?from=2024-07-01T00%3A00%3A00Z&to=2024-08-01T00%3A00%3A00Z" \
2  -X GET \
3  -H "Authorization: Bearer <TOKEN>" \
4  -H "Content-type: application/json" \
5  -H "Accept: application/json" \
6  -H "X-Markprompt-API-Version: 2024-05-21"