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

# Enrich Policy Template Stream

`POST /policy/templates/enrich/stream`

## Request

- Base URL: `https://api.sea-lion.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sea-lion.ai/policy/templates/enrich/stream`
- Auth: API key in header `x-litellm-api-key`

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-10-21** `f2fb14eab3f5`: 4 info
  - api tag `policies` added
  - api tag `policy management` 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

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

---

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