curl -X POST "https://kodostatus.com/api/v1/incidents" \
-H "X-API-Key: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"title": "Database connectivity issues",
"status": "investigating",
"severity": "major",
"message": "We are investigating reports of database issues",
"services": ["API", "Database"]
}'
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"title": "Database connectivity issues",
"status": "investigating",
"severity": "major",
"started_at": "2026-01-15T10:30:00.000Z",
"created_at": "2026-01-15T10:30:00.000Z",
"updated_at": "2026-01-15T10:30:00.000Z"
}
Create a new incident and optionally notify subscribers
curl -X POST "https://kodostatus.com/api/v1/incidents" \
-H "X-API-Key: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"title": "Database connectivity issues",
"status": "investigating",
"severity": "major",
"message": "We are investigating reports of database issues",
"services": ["API", "Database"]
}'
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"title": "Database connectivity issues",
"status": "investigating",
"severity": "major",
"started_at": "2026-01-15T10:30:00.000Z",
"created_at": "2026-01-15T10:30:00.000Z",
"updated_at": "2026-01-15T10:30:00.000Z"
}
investigating, identified, monitoring, resolvedminor, major, criticalcurl -X POST "https://kodostatus.com/api/v1/incidents" \
-H "X-API-Key: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"title": "Database connectivity issues",
"status": "investigating",
"severity": "major",
"message": "We are investigating reports of database issues",
"services": ["API", "Database"]
}'
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"title": "Database connectivity issues",
"status": "investigating",
"severity": "major",
"started_at": "2026-01-15T10:30:00.000Z",
"created_at": "2026-01-15T10:30:00.000Z",
"updated_at": "2026-01-15T10:30:00.000Z"
}