Report an incident (employee)
POST
/v1/incidents/report
const url = 'https://api.varman.io/v1/incidents/report';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"title":"I clicked a link in a strange email","description":"example","occurredAt":"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 https://api.varman.io/v1/incidents/report \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "title": "I clicked a link in a strange email", "description": "example", "occurredAt": "example" }'Any employee with portal access can report an incident. It is created with status reported, the caller as reporter, and owners and admins are emailed.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”X-Organization-Id
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
title
required
Short summary
string
Example
I clicked a link in a strange emaildescription
required
What happened
string
occurredAt
When it happened (ISO date)
string