Create an incident
POST
/v1/incidents
const url = 'https://api.varman.io/v1/incidents';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"title":"Laptop with customer data stolen","description":{},"category":"security","severity":"low","status":"reported","occurredAt":{},"detectedAt":"example","reporterMemberId":{},"reporterName":{},"reporterEmail":{},"ownerMemberId":{},"isPrivacyBreach":true,"personalDataAffected":{},"authorityNotifiedAt":{},"subjectsNotifiedAt":{},"rootCause":{},"lessonsLearned":{}}'};
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 \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "title": "Laptop with customer data stolen", "description": {}, "category": "security", "severity": "low", "status": "reported", "occurredAt": {}, "detectedAt": "example", "reporterMemberId": {}, "reporterName": {}, "reporterEmail": {}, "ownerMemberId": {}, "isPrivacyBreach": true, "personalDataAffected": {}, "authorityNotifiedAt": {}, "subjectsNotifiedAt": {}, "rootCause": {}, "lessonsLearned": {} }'Creates an incident with the next reference and a response checklist for its category. Setting isPrivacyBreach starts a 72 hour authority notification deadline from detectedAt.
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
Laptop with customer data stolendescription
What happened
object
category
Defaults to security
string
severity
Defaults to medium
string
status
Defaults to reported
string
occurredAt
When it happened (ISO date)
object
detectedAt
When it was detected (ISO date). Defaults to now.
string
reporterMemberId
Member who reported it
object
reporterName
Reporter name when not a member
object
reporterEmail
Reporter email when not a member
object
ownerMemberId
Member who owns the response
object
isPrivacyBreach
Personal data breach. Starts a 72 hour clock from detectedAt to notify the supervisory authority (GDPR Art. 33).
boolean
personalDataAffected
Personal data and people affected
object
authorityNotifiedAt
When the authority was notified
object
subjectsNotifiedAt
When affected people were notified
object
rootCause
object
lessonsLearned