Ingest custom event REST API
POST
/ingest/event
const url = 'http://127.0.0.1:25737/ingest/event';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"n":"example","p":{},"path":"example","sid":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","ua":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://127.0.0.1:25737/ingest/event \ --header 'Content-Type: application/json' \ --data '{ "n": "example", "p": {}, "path": "example", "sid": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "ua": "example" }'Ingests a custom event from the browser tracker. Current trackers include transient path and user-agent context for exclusion matching; older trackers remain supported.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
n
required
string
p
object
key
additional properties
any
path
Optional browser path used transiently for traffic exclusions.
string
sid
required
string format: uuid
ua
Optional browser user agent used transiently for traffic exclusions.
string
Examplegenerated
{ "n": "example", "p": {}, "path": "example", "sid": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "ua": "example"}Responses
Section titled “Responses”Accepted
Invalid request
Media typeapplication/json
object
message
string
Examplegenerated
{ "message": "example"}