Ingest Streaming Event
curl --request POST \
--url https://stream.raptor.digital/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
}
'import requests
url = "https://stream.raptor.digital/stream/api/v1"
payload = {
"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": None,
"cn": None,
"sid": "8c75639c-719c-4fe8-9845-fc98512dcd67",
"cid": None
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
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
})
};
fetch('https://stream.raptor.digital/stream/api/v1', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://stream.raptor.digital/stream/api/v1",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'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
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://stream.raptor.digital/stream/api/v1"
payload := strings.NewReader("{\n \"t\": \"11111111-2222-3333-4444-555555555555\",\n \"dm\": \"script\",\n \"mv\": \"1.24g\",\n \"sv\": \"40\",\n \"tm\": 1764757982.262,\n \"e\": \"PAGE_VIEW\",\n \"vn\": \"Snapchat\",\n \"m\": \"GET\",\n \"vu\": \"https://tr.snapchat.com/p?...\",\n \"u\": \"https://demo-moncart.pages.dev/success?card=1&cvv=1&expM=1&expY=1\",\n \"p\": \"/success\",\n \"dt\": [\n {\n \"pid\": \"37f201ac-67d8-4b77-91e6-383d8ff78fd6\",\n \"ev\": \"PAGE_VIEW\",\n \"intg\": \"gtm\",\n \"ts\": \"1764757981906\",\n \"vendorName\": \"Snapchat\",\n \"__mon_method\": \"GET\",\n \"__mon_host\": \"tr.snapchat.com\"\n }\n ],\n \"np\": [],\n \"s\": \"google_tag_manager\",\n \"rl\": \"34\",\n \"env\": \"\",\n \"do\": \"GTM-M7L6DD5\",\n \"et\": 0,\n \"vid\": null,\n \"cn\": null,\n \"sid\": \"8c75639c-719c-4fe8-9845-fc98512dcd67\",\n \"cid\": null\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://stream.raptor.digital/stream/api/v1")
.header("Content-Type", "application/json")
.body("{\n \"t\": \"11111111-2222-3333-4444-555555555555\",\n \"dm\": \"script\",\n \"mv\": \"1.24g\",\n \"sv\": \"40\",\n \"tm\": 1764757982.262,\n \"e\": \"PAGE_VIEW\",\n \"vn\": \"Snapchat\",\n \"m\": \"GET\",\n \"vu\": \"https://tr.snapchat.com/p?...\",\n \"u\": \"https://demo-moncart.pages.dev/success?card=1&cvv=1&expM=1&expY=1\",\n \"p\": \"/success\",\n \"dt\": [\n {\n \"pid\": \"37f201ac-67d8-4b77-91e6-383d8ff78fd6\",\n \"ev\": \"PAGE_VIEW\",\n \"intg\": \"gtm\",\n \"ts\": \"1764757981906\",\n \"vendorName\": \"Snapchat\",\n \"__mon_method\": \"GET\",\n \"__mon_host\": \"tr.snapchat.com\"\n }\n ],\n \"np\": [],\n \"s\": \"google_tag_manager\",\n \"rl\": \"34\",\n \"env\": \"\",\n \"do\": \"GTM-M7L6DD5\",\n \"et\": 0,\n \"vid\": null,\n \"cn\": null,\n \"sid\": \"8c75639c-719c-4fe8-9845-fc98512dcd67\",\n \"cid\": null\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://stream.raptor.digital/stream/api/v1")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"t\": \"11111111-2222-3333-4444-555555555555\",\n \"dm\": \"script\",\n \"mv\": \"1.24g\",\n \"sv\": \"40\",\n \"tm\": 1764757982.262,\n \"e\": \"PAGE_VIEW\",\n \"vn\": \"Snapchat\",\n \"m\": \"GET\",\n \"vu\": \"https://tr.snapchat.com/p?...\",\n \"u\": \"https://demo-moncart.pages.dev/success?card=1&cvv=1&expM=1&expY=1\",\n \"p\": \"/success\",\n \"dt\": [\n {\n \"pid\": \"37f201ac-67d8-4b77-91e6-383d8ff78fd6\",\n \"ev\": \"PAGE_VIEW\",\n \"intg\": \"gtm\",\n \"ts\": \"1764757981906\",\n \"vendorName\": \"Snapchat\",\n \"__mon_method\": \"GET\",\n \"__mon_host\": \"tr.snapchat.com\"\n }\n ],\n \"np\": [],\n \"s\": \"google_tag_manager\",\n \"rl\": \"34\",\n \"env\": \"\",\n \"do\": \"GTM-M7L6DD5\",\n \"et\": 0,\n \"vid\": null,\n \"cn\": null,\n \"sid\": \"8c75639c-719c-4fe8-9845-fc98512dcd67\",\n \"cid\": null\n}"
response = http.request(request)
puts response.read_body{
"error": true,
"message": "<string>"
}API Reference
Ingest Streaming Event
Send vendor events from a whitelisted domain to the Monita streaming ingestion service. This endpoint expects the exact payload that the Monita tag emits (see example) and requires a valid token (t), vendor name (vn) and event (e).
POST
/
stream
/
api
/
v1
Ingest Streaming Event
curl --request POST \
--url https://stream.raptor.digital/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
}
'import requests
url = "https://stream.raptor.digital/stream/api/v1"
payload = {
"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": None,
"cn": None,
"sid": "8c75639c-719c-4fe8-9845-fc98512dcd67",
"cid": None
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
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
})
};
fetch('https://stream.raptor.digital/stream/api/v1', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://stream.raptor.digital/stream/api/v1",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'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
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://stream.raptor.digital/stream/api/v1"
payload := strings.NewReader("{\n \"t\": \"11111111-2222-3333-4444-555555555555\",\n \"dm\": \"script\",\n \"mv\": \"1.24g\",\n \"sv\": \"40\",\n \"tm\": 1764757982.262,\n \"e\": \"PAGE_VIEW\",\n \"vn\": \"Snapchat\",\n \"m\": \"GET\",\n \"vu\": \"https://tr.snapchat.com/p?...\",\n \"u\": \"https://demo-moncart.pages.dev/success?card=1&cvv=1&expM=1&expY=1\",\n \"p\": \"/success\",\n \"dt\": [\n {\n \"pid\": \"37f201ac-67d8-4b77-91e6-383d8ff78fd6\",\n \"ev\": \"PAGE_VIEW\",\n \"intg\": \"gtm\",\n \"ts\": \"1764757981906\",\n \"vendorName\": \"Snapchat\",\n \"__mon_method\": \"GET\",\n \"__mon_host\": \"tr.snapchat.com\"\n }\n ],\n \"np\": [],\n \"s\": \"google_tag_manager\",\n \"rl\": \"34\",\n \"env\": \"\",\n \"do\": \"GTM-M7L6DD5\",\n \"et\": 0,\n \"vid\": null,\n \"cn\": null,\n \"sid\": \"8c75639c-719c-4fe8-9845-fc98512dcd67\",\n \"cid\": null\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://stream.raptor.digital/stream/api/v1")
.header("Content-Type", "application/json")
.body("{\n \"t\": \"11111111-2222-3333-4444-555555555555\",\n \"dm\": \"script\",\n \"mv\": \"1.24g\",\n \"sv\": \"40\",\n \"tm\": 1764757982.262,\n \"e\": \"PAGE_VIEW\",\n \"vn\": \"Snapchat\",\n \"m\": \"GET\",\n \"vu\": \"https://tr.snapchat.com/p?...\",\n \"u\": \"https://demo-moncart.pages.dev/success?card=1&cvv=1&expM=1&expY=1\",\n \"p\": \"/success\",\n \"dt\": [\n {\n \"pid\": \"37f201ac-67d8-4b77-91e6-383d8ff78fd6\",\n \"ev\": \"PAGE_VIEW\",\n \"intg\": \"gtm\",\n \"ts\": \"1764757981906\",\n \"vendorName\": \"Snapchat\",\n \"__mon_method\": \"GET\",\n \"__mon_host\": \"tr.snapchat.com\"\n }\n ],\n \"np\": [],\n \"s\": \"google_tag_manager\",\n \"rl\": \"34\",\n \"env\": \"\",\n \"do\": \"GTM-M7L6DD5\",\n \"et\": 0,\n \"vid\": null,\n \"cn\": null,\n \"sid\": \"8c75639c-719c-4fe8-9845-fc98512dcd67\",\n \"cid\": null\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://stream.raptor.digital/stream/api/v1")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"t\": \"11111111-2222-3333-4444-555555555555\",\n \"dm\": \"script\",\n \"mv\": \"1.24g\",\n \"sv\": \"40\",\n \"tm\": 1764757982.262,\n \"e\": \"PAGE_VIEW\",\n \"vn\": \"Snapchat\",\n \"m\": \"GET\",\n \"vu\": \"https://tr.snapchat.com/p?...\",\n \"u\": \"https://demo-moncart.pages.dev/success?card=1&cvv=1&expM=1&expY=1\",\n \"p\": \"/success\",\n \"dt\": [\n {\n \"pid\": \"37f201ac-67d8-4b77-91e6-383d8ff78fd6\",\n \"ev\": \"PAGE_VIEW\",\n \"intg\": \"gtm\",\n \"ts\": \"1764757981906\",\n \"vendorName\": \"Snapchat\",\n \"__mon_method\": \"GET\",\n \"__mon_host\": \"tr.snapchat.com\"\n }\n ],\n \"np\": [],\n \"s\": \"google_tag_manager\",\n \"rl\": \"34\",\n \"env\": \"\",\n \"do\": \"GTM-M7L6DD5\",\n \"et\": 0,\n \"vid\": null,\n \"cn\": null,\n \"sid\": \"8c75639c-719c-4fe8-9845-fc98512dcd67\",\n \"cid\": null\n}"
response = http.request(request)
puts response.read_body{
"error": true,
"message": "<string>"
}Body
application/json
Raw payload accepted by the streaming ingestion endpoint. The Monita browser tag sends this body verbatim.
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).
