For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Get access
Getting Started Key Concepts Integration Types Core Components Embed Hosted API API Reference
  • API Reference
    • Contribution Reports
    • Events and Webhooks
      • GETList all events
      • GETRetrieve an event
      • GETList all webhook endpoints
      • GETRetrieve a webhook endpoint
      • Working with webhooks
    • API Errors
Get access
LogoLogo
API ReferenceEvents and Webhooks

List all events

GET
/events
GET
/events
$curl https://test.api.kota.io/events \
> -H "Authorization: Bearer <apiKey>" \
> -H "Content-Type: application/json"
1{
2 "items": [
3 {
4 "id": "evt_9f8b7c6d5a4e3f2b1c0d9e8f7a6b5c4d",
5 "platform_id": "pt_1a2b3c4d5e6f7g8h9i0jklmnopqrstuv",
6 "created": "2024-05-15T14:22:30Z",
7 "type": "user.signup",
8 "api_version": "v1"
9 },
10 {
11 "id": "evt_4d3c2b1a0f9e8d7c6b5a4e3f2b1c0d9e",
12 "platform_id": "pt_0f1e2d3c4b5a69788796a5b4c3d2e1f0",
13 "created": "2024-05-10T09:15:00Z",
14 "type": "order.completed",
15 "api_version": "v2"
16 }
17 ],
18 "page": 1,
19 "page_size": 10,
20 "total_count": 25,
21 "has_next_page": true,
22 "has_previous_page": false
23}

Returns a list of events sorted by creation date, with the most recently created event appearing first. The event list includes data from up to the last 30 days.

Each event’s data is rendered according to the API version at the time of its creation, as specified by the api_version attribute in the event object, rather than the current API version.

Previous

Events and Webhooks

Next

Retrieve an event

Built with

Authentication

AuthorizationBearer
Authorization header using the Bearer scheme

Query parameters

created_afterdatetimeOptional

Filter events created after this date (limited to the last 30 days)

order_directionobjectOptional

Order direction of the events list asc or desc (default: desc)

versionobjectOptional

API version of the events to return v1 or v2 (default: based on registered webhook endpoint versions)

pageintegerOptional
The page of results to return. Defaults to 1 if not provided.
page_sizeintegerOptional
The number of results to return per page. Defaults to 10 if not provided. Maximum value is 100.

Response

OK
itemslist of objects
A paginated array containing the response elements
pageinteger
The current page of the results
page_sizeinteger
The number of results on this page. This can be different from the requested page size if the total number of results is less than the requested page size
total_countinteger
The total number of elements available in the response. This is the total number of elements available across all pages, not just the current page.
has_next_pagebooleanRead-only
Whether there are more pages available after this page
has_previous_pagebooleanRead-only
Whether there are more pages available before this page

Errors

400
Bad Request Error