SigSentrySigSentry
Analyses

POST /v1/analyses/{id}/feedback

Rate the accuracy of an analysis to drive your team's quality metrics

Records an accuracy rating for a complete analysis. The rating shows up in the team's quality metrics and in similar-incident match weighting.

Authentication

API key with analysis:read permission.

Endpoint

POST /v1/analyses/{id}/feedback

Path parameters

ParamTypeNotes
idUUIDThe analysis id

Request body

FieldTypeRequiredNotes
accuracy'correct' | 'partially_correct' | 'incorrect'The rating
commentstring (≤ 5000 chars)Free-form note explaining the rating
{
  "accuracy": "correct",
  "comment": "Root cause was right; pool ceiling was the fix."
}

Response

200 OK

{
  "success": true,
  "data": {
    "id": "fbk_a1b2...",
    "analysisId": "ana_x1y2...",
    "accuracy": "correct",
    "comment": "Root cause was right; pool ceiling was the fix.",
    "recordedAt": "2026-04-25T15:00:00Z"
  }
}

Error responses

Statuserror.codeWhen
400VALIDATION_ERRORid is not a UUID, or accuracy is missing/invalid, or comment exceeds 5000 chars
401UNAUTHORIZEDMissing or invalid API key
403FORBIDDENKey lacks analysis:read
404NOT_FOUNDNo analysis with that id

Example

curl -X POST https://api.sigsentry.com/v1/analyses/ana_x1y2/feedback \
  -H "Authorization: Bearer ss_secret_..." \
  -H "Content-Type: application/json" \
  -d '{ "accuracy": "correct" }'

Re-rating

Calling this endpoint a second time on the same analysis overwrites the previous rating. The audit log captures the change.

Idempotency

POST /v1/analyses/{id}/feedback honors the Idempotency-Key header — see Idempotency.