Skip to main content
POST
Python (SDK)

Authorizations

Authorization
string
header
required

Gateway auth: send Authorization: Bearer <mka1-api-key>. For multi-user server-side integrations, you can also send X-On-Behalf-Of: <external-user-id>.

Path Parameters

id
string
required

ID of the analytics project.

Required string length: 1 - 128
Pattern: ^[^\u0000]*$

Body

application/json
from
string<date-time>
required

Start of the time range, inclusive. Use an ISO 8601 timestamp with Z for UTC or an offset such as -07:00. Must be before to.

Example:

"2026-09-01T00:00:00Z"

to
string<date-time>
required

End of the time range, exclusive. Use an ISO 8601 timestamp with Z for UTC or an offset such as -07:00. Must be after from.

Example:

"2026-09-02T00:00:00Z"

event_name
string

Only include events with this exact name. Omit to include all event names.

Required string length: 1 - 255
Example:

"page_view"

filters
object[]

Property filters combined with AND. An event must match every filter.

Maximum array length: 10
distinct_id
string

Only include events sent with this exact distinct_id.

Required string length: 1 - 255
Pattern: ^[^\u0000]*$
limit
integer
default:50

Maximum number of rows in this page.

Required range: 1 <= x <= 100
cursor
string

Opaque cursor of at most 4096 characters, copied from next_cursor of the previous page. Omit for the first page, which takes the snapshot the whole sequence reads at. Cursors belong to one list and one sort order; a cursor that does not decode, or one from another list, returns 400. A cursor is a position, not a capability: one that decodes only moves the caller within the same project.

Required string length: 1 - 4096

Response

Success

events
object[]
required

Matching events, newest first. Events with the same timestamp are ordered by event_id, descending.

next_cursor
string | null
required

Cursor for the next page, or null when there are no more rows. It continues the sequence at the snapshot its first page took.