---
title: "Enrich Policy Template Stream"
method: POST
path: "/policy/templates/enrich/stream"
tags: ["policies"]
---

# Enrich Policy Template Stream

`POST /policy/templates/enrich/stream`

Stream competitor names as SSE events as the LLM generates them.

Events:
- data: {"type": "competitor", "name": "..."}  — each competitor as discovered
- data: {"type": "done", "competitors": [...], "competitor_variations": {...}, "guardrailDefinitions": [...]}

## Request body

- EnrichTemplateRequest
  - `competitors` string[], nullable — Optional list of competitor names
  - `instruction` string, nullable — Refinement instruction for modifying the competitor list (e.g. 'add 10 more from Asia')
  - `model` string, nullable
  - `parameters` object, required
  - `template_id` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-19** `c357baf422ab` — 2 info
  - api tag `policies` added
  - api tag `policy management` removed
- **2026-09-18** `082b5fabd909` — 4 info
  - api tag `policy management` added
  - api tag `policies` removed
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status

[Change history](https://skmtc.dev/flock/apis/litellm-api/changes/policy/templates/enrich/stream/post.md)

---

[API](https://skmtc.dev/flock/apis/litellm-api.md) · [All operations](https://skmtc.dev/flock/apis/litellm-api/llms.txt) · [OpenAPI document](https://skmtc.dev/flock/apis/litellm-api/revisions/b694deb1e459?raw)
