GET /api/incidents/
Retrieves comprehensive details about a specific incident, including suggestions, thoughts, citations, correlated alerts, and chat sessions.Authentication
Requires user authentication via cookies or headers. Theuser_id is extracted from the request.
Path Parameters
UUID of the incident to retrieve
Response
Returns an object containing the complete incident details.Example Request
cURL
Example Response
Response Codes
Successfully retrieved incident details
- Missing user_id (authentication failed)
- Invalid incident ID format (not a valid UUID)
Incident not found or does not belong to the authenticated user
Failed to retrieve incident
Notes
- The
rawPayloadfield contains the complete original alert payload from the monitoring platform - Citations are filtered to only include numeric keys and ordered by citation key
- Chat sessions are filtered to only include active sessions
- Requires Row Level Security (RLS) context to be set with the user’s ID
- All timestamps are in ISO 8601 format with UTC timezone