SigSentrySigSentry
Analyses

POST /v1/analyses/{id}/postmortem

Generate a Markdown postmortem from a complete analysis

Generates a Markdown postmortem from a complete analysis. The output follows a standard SRE-style layout — title, timeline, root cause, impact, resolution — and is ready to paste into your team's incident document or PR description.

Authentication

API key with analysis:read permission.

Endpoint

POST /v1/analyses/{id}/postmortem

Path parameters

ParamTypeNotes
idUUIDThe analysis id

Request body

None. The postmortem is rendered from the analysis's stored result.

Response

200 OK

{
  "success": true,
  "data": {
    "markdown": "# Connection Pool Exhaustion in checkout-api\n\n## Summary\n..."
  }
}
FieldTypeNotes
markdownstringThe postmortem in GitHub-flavored Markdown

Error responses

Statuserror.codeWhen
400VALIDATION_ERRORid is not a UUID
401UNAUTHORIZEDMissing or invalid API key
403FORBIDDENKey lacks analysis:read
404NOT_FOUNDNo analysis with that id, or it has no result yet (still processing)

Example

curl -X POST https://api.sigsentry.com/v1/analyses/ana_x1y2/postmortem \
  -H "Authorization: Bearer ss_secret_..."

Sections in the output

SectionSourced from
TitleThe analysis summary, normalized
TimelineThe analysis's timeline field
Root causeThe structured root-cause description
ImpactAffected services and their roles
ResolutionSuggested actions, formatted as numbered steps
Detection methodHow the analysis was triggered

To rewrite the prose for flow and tone before exporting, use /postmortem/polish (Pro+).

Idempotency

POST /v1/analyses/{id}/postmortem honors the Idempotency-Key header — see Idempotency. Re-rendering the same analysis returns equivalent content; treat the output as cacheable on the analysis id.