POST
/api/v1/privacy/incidentsDeclare a new personal-data breach (starts the 72h Art. 33 clock)
Records a new GDPR Art. 33 incident. discovered_at MUST be provided; that is when the 72-hour authority-notification clock starts. status defaults to draft; pass status=open when the operator commits to the SLA.
Authentication
Send Authorization: Bearer YOUR_API_KEY on every request. Generate API keys at /dashboard/api-keys.
Request body required
Example
{
"orgId": "string",
"title": "string",
"description": "string",
"severity": "serious",
"breach_kind": "confidentiality",
"discovered_at": "2026-05-29T20:54:19.749Z",
"affected_users": 0,
"root_cause": "string",
"corrective_actions": [
"string"
],
"status": "draft"
}Schema
{
"application/json": {
"schema": {
"type": "object",
"required": [
"orgId",
"title",
"severity",
"discovered_at"
],
"properties": {
"orgId": {
"type": "string"
},
"title": {
"type": "string",
"maxLength": 500
},
"description": {
"type": "string"
},
"severity": {
"type": "string",
"enum": [
"serious",
"non-serious"
]
},
"breach_kind": {
"type": "string",
"enum": [
"confidentiality",
"integrity",
"availability",
"combined"
]
},
"discovered_at": {
"type": "string",
"format": "date-time"
},
"affected_users": {
"type": "integer",
"minimum": 0
},
"root_cause": {
"type": "string"
},
"corrective_actions": {
"type": "array",
"items": {
"type": "string"
}
},
"status": {
"type": "string",
"enum": [
"draft",
"open",
"notified",
"resolved"
]
}
}
}
}
}Response
All status codes
201Incident created
Code samples
cURL
curl -X POST \
https://evalguard.ai/api/v1/privacy/incidents \
-H "Authorization: Bearer $EVALGUARD_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "orgId": "string", "title": "string", "description": "string", "severity": "serious", "breach_kind": "confidentiality", "discovered_at": "2026-05-29T20:54:19.749Z", "affected_users": 0, "root_cause": "string", "corrective_actions": [ "string" ], "status": "draft" }'TypeScript
import { EvalGuard } from "@evalguard/sdk";
const client = new EvalGuard({ apiKey: process.env.EVALGUARD_API_KEY });
const response = await client.request({
method: "POST",
path: "/api/v1/privacy/incidents",
body: {
"orgId": "string",
"title": "string",
"description": "string",
"severity": "serious",
"breach_kind": "confidentiality",
"discovered_at": "2026-05-29T20:54:19.749Z",
"affected_users": 0,
"root_cause": "string",
"corrective_actions": [
"string"
],
"status": "draft"
},
});
console.log(response);Python
from evalguard import EvalGuard
import os
client = EvalGuard(api_key=os.environ["EVALGUARD_API_KEY"])
response = client.request(
method="POST",
path="/api/v1/privacy/incidents",
body={
"orgId": "string",
"title": "string",
"description": "string",
"severity": "serious",
"breach_kind": "confidentiality",
"discovered_at": "2026-05-29T20:54:19.749Z",
"affected_users": 0,
"root_cause": "string",
"corrective_actions": [
"string"
],
"status": "draft"
},
)
print(response)Go
package main
import (
"context"
"fmt"
"os"
"github.com/evalguard/evalguard-go"
)
func main() {
client := evalguard.NewClient(os.Getenv("EVALGUARD_API_KEY"))
resp, err := client.Request(context.Background(), "POST", "/api/v1/privacy/incidents", map[string]any{"orgId": "string", "title": "string", "description": "string", "severity": "serious", "breach_kind": "confidentiality", "discovered_at": "2026-05-29T20:54:19.749Z", "affected_users": 0, "root_cause": "string", "corrective_actions": []any{"string"}, "status": "draft"})
if err != nil { panic(err) }
fmt.Println(resp)
}