Ingest custom event
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 Body required
Section titled “Request Body required ” Media type application/json
object
n
required
string
p
object
key
additional properties
any
sid
required
string format: uuid
Example generated
{ "n": "example", "p": {}, "sid": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}Responses
Section titled “ Responses ”Accepted
Invalid request
Media type application/json
object
message
string
Example generated
{ "message": "example"}