POST/ incidents

Create a new incident to track issues, outages, or events affecting your services.

Authentication

This endpoint requires authentication. Include your API key in the Authorization header:

Authorization: Bearer YOUR_API_KEY

You can generate API keys in your dashboard settings

Request Body

{
"title": "Database connection timeout",
"severity": "high",
"status": "investigating",
"description": "Users experiencing slow response times",
"affected_services": [
"api",
"database"
],
"assigned_to": "team-backend"
}

Parameters

FieldTypeRequiredDescription
titlestringYesBrief description of the incident
severityenumYeslow, medium, high, critical
statusenumNoinvestigating, identified, monitoring, resolved
descriptionstringNoDetailed description of the incident
affected_servicesarrayNoList of affected service identifiers

Response

Example Response – 201 Created
{
"id": "inc_1234567890",
"title": "Database connection timeout",
"severity": "high",
"status": "investigating",
"description": "Users experiencing slow response times",
"affected_services": [
"api",
"database"
],
"assigned_to": "team-backend",
"created_at": "2026-01-29T10:30:00Z",
"updated_at": "2026-01-29T10:30:00Z",
"url": "https://api.saferwatch.com/incidents/inc_1234567890"
}

Returns the created incident object with additional metadata including unique ID and timestamps.

Error Codes

Status CodeErrorDescription
400Bad RequestInvalid request parameters
401UnauthorizedMissing or invalid API key
403ForbiddenInsufficient permissions
429Too Many RequestsRate limit exceeded
500Internal Server ErrorSomething went wrong on our end

Ready to get started ?

Try our API in a sandbox environment with test data. No signup required.