GET /api/incidents
Retrieves all incidents for the current user. Returns incidents in reverse chronological order (most recent first), excluding merged incidents.Authentication
Requires user authentication via cookies or headers. Theuser_id is extracted from the request.
Query Parameters
This endpoint does not accept query parameters. Results are limited to 100 incidents.Response
Returns an object containing an array of incident objects.Array of incident objects
Example Request
cURL
Example Response
Response Codes
Successfully retrieved incidents
Missing user_id (authentication failed)
Failed to retrieve incidents
Notes
- Results are limited to 100 most recent incidents
- Incidents with status
mergedare excluded from results - Results are ordered by
started_atin descending order (most recent first) - Requires Row Level Security (RLS) context to be set with the user’s ID