Ingest custom event REST API
POST
/ingest/event
const url = 'https://hitkeep.com/ingest/event';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"n":"example","p":{},"sid":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://hitkeep.com/ingest/event \ --header 'Content-Type: application/json' \ --data '{ "n": "example", "p": {}, "sid": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'Ingests a custom event from the browser tracker.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
n
required
string
p
object
key
additional properties
any
sid
required
string format: uuid
Examplegenerated
{ "n": "example", "p": {}, "sid": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}Responses
Section titled “Responses”Accepted
Invalid request
Media typeapplication/json
object
message
string
Examplegenerated
{ "message": "example"}