Overview
Submits human feedback on a completed investigation. Feedback is used to reinforce correct analyses, correct errors, and improve the AI’s accuracy for future incidents of a similar type.
Required role: admin or member
JWT Bearer token. Format: Bearer <your-jwt>.
Path parameters
The incident ID for which you are submitting feedback. Example: inc_EXAMPLE_01JX.
Request body
Overall quality rating from 1 (poor) to 5 (excellent).
Whether the AI-identified root cause was correct.
Whether the recommended actions were actionable and accurate.
Optional free-text feedback. Provide corrections or additional context to improve future analysis.
If the root cause was inaccurate, provide the correct root cause here. This is used for model fine-tuning.
Response
Returns 201 Created.
{
"feedbackId": "fbk_01HX9VTPQR3KF8MZWBYD5N6JCE",
"incidentId": "inc_EXAMPLE_01JX",
"submittedAt": "2024-04-01T16:00:00Z"
}
| Field | Type | Description |
|---|
feedbackId | string | Unique identifier for this feedback submission |
incidentId | string | The incident this feedback applies to |
submittedAt | string | ISO 8601 timestamp of feedback submission |
Error responses
| Status | Error code | Description |
|---|
401 | unauthorized | Missing or invalid JWT |
403 | forbidden | Caller lacks required role |
404 | incident_not_found | No incident with the given ID |
409 | feedback_already_submitted | Feedback has already been submitted for this investigation |
Examples
curl https://api.causeflow.ai/v1/investigation/inc_EXAMPLE_01JX/feedback \
-X POST \
-H "Authorization: Bearer eyJhbGc..." \
-H "Content-Type: application/json" \
-d '{
"rating": 4,
"rootCauseAccurate": true,
"recommendationsUseful": true,
"comment": "Root cause was spot on. Recommendation to add index was correct and resolved the issue."
}'
Get investigation results
View the full investigation report
Knowledge patterns
Browse extracted knowledge patterns