---
title: "LLM summary of why a SOP is being violated"
method: POST
path: "/dashboard/api/summarize-sop-distribution"
tags: ["SOPs"]
---

# LLM summary of why a SOP is being violated

`POST /dashboard/api/summarize-sop-distribution`

## Request

- Base URL: `https://api.agnost.ai`
- URL: `https://api.agnost.ai/dashboard/api/summarize-sop-distribution`
- Auth: one of:
  - HTTP bearer and API key in header `x-org-id`
  - API key in header `x-api-key`

Pulls assistant outputs that violated the given SOP within the time
range and produces a natural-language summary via the LLM. Mirrors
`/summarize-intent-distribution`.

## Request body

- object
  - `org_id` string, uuid
  - `tag` string, required: SOP title to summarize
  - `time_range` '1min' | '1h' | '1d' | '1w' | '1m' | 'all'

## Response `200`

Natural-language summary

- object
  - `summary` string

## Changes

- **2026-11-03** `a61431b48f36`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/agnost/apis/agnost-ai-api/changes/dashboard/api/summarize-sop-distribution/post.md)

---

[API](https://skmtc.dev/agnost/apis/agnost-ai-api.md) - [All operations](https://skmtc.dev/agnost/apis/agnost-ai-api/llms.txt) - [OpenAPI document](https://skmtc.dev/agnost/apis/agnost-ai-api/revisions/a61431b48f36?raw)
