Skip to main content
POST
/
stream
/
api
/
v1
Ingest Streaming Event
curl --request POST \
  --url https://crawl.getmonita.io/stream/api/v1 \
  --header 'Content-Type: application/json' \
  --data '
{
  "t": "11111111-2222-3333-4444-555555555555",
  "dm": "script",
  "mv": "1.24g",
  "sv": "40",
  "tm": 1764757982.262,
  "e": "PAGE_VIEW",
  "vn": "Snapchat",
  "m": "GET",
  "vu": "https://tr.snapchat.com/p?...",
  "u": "https://demo-moncart.pages.dev/success?card=1&cvv=1&expM=1&expY=1",
  "p": "/success",
  "dt": [
    {
      "pid": "37f201ac-67d8-4b77-91e6-383d8ff78fd6",
      "ev": "PAGE_VIEW",
      "intg": "gtm",
      "ts": "1764757981906",
      "vendorName": "Snapchat",
      "__mon_method": "GET",
      "__mon_host": "tr.snapchat.com"
    }
  ],
  "np": [],
  "s": "google_tag_manager",
  "rl": "34",
  "env": "",
  "do": "GTM-M7L6DD5",
  "et": 0,
  "vid": null,
  "cn": null,
  "sid": "8c75639c-719c-4fe8-9845-fc98512dcd67",
  "cid": null
}
'
{
  "error": true,
  "message": "<string>"
}

Body

application/json

Raw payload accepted by the streaming ingestion endpoint. The Monita browser tag sends this body verbatim.

t
string<uuid>
required

Issued ingestion token used to authorize the event.

e
string
required

Event/action name such as PAGE_VIEW.

vn
string
required

Human readable vendor identifier.

dm
string

Source of the payload (for example script).

mv
string

Version of the Monita script that produced the event.

sv
string

Version of the customer deployment.

tm
number

Epoch timestamp with millisecond precision provided by the browser.

m
string

HTTP method used when contacting the vendor endpoint.

vu
string<uri>

Full URL of the vendor endpoint that fired.

u
string<uri>

URL of the monitored page.

p
string

Path portion of the monitored page.

dt
Event Details · object[]

Flexible event data emitted by the vendor. Each object may contain arbitrary keys that describe the vendor payload.

np
Non Persisted Data · object[]

Optional list of transient diagnostic values.

s
string

System or tag template that triggered the event.

rl

Internal release identifier.

env
string

Deployment environment string.

do
string

Identifier for the monitored container (for example GTM-M7L6DD5).

et
integer

Execution duration in milliseconds.

vid
string | null

Optional vendor specific identifier.

cn
string | null

Consent state encoded by the customer.

sid
string

Client session id (UUID).

cid
string | null

Optional customer identifier.

Response

Event accepted and normalized. The resulting record is persisted with fields such as event_id, event_timestamp, vendor, vendor_name, domain, session_id, deployment_method, browser metadata, and more (see data warehouse schema).