Skip to main content
POST
Ingest website or app tracking data

Authorizations

Authorization
string
header
required

API token (okt_...) or dashboard JWT

Headers

X-Request-ID
string

Correlation id, echoed in the response header and in requestId; generated when absent or unsafe.

Pattern: ^[\w.-]{1,128}$

Body

application/json
visitorId
string
required
session
object
events
object[]
identifiers
object

Response

Accepted

Additive envelope fields present on every migrated v1 success body. All fields the route returned before are still returned unchanged.

success
boolean
required

true on success. The webhook test delivery returns 200 with success: false when the receiver failed.

data
object
required
requestId
string

Same value as the X-Request-ID response header. Added to every JSON object success body.

timestamp
string<date-time>

Server time when the response was produced.

meta
object

Additive mirror of the legacy pagination object. Only the keys that the legacy object has are present. Responses without pagination have no meta.