Skip to main content
doc0blade47/compdocumentation home
Sign in

Policies

Chat with AI about a policy

Stream AI responses for policy editing assistance. Returns a text/event-stream with AI-generated suggestions.

Last updated Oct 11, 2026
POST/policies/:id/ai-chat

Parameters

Path

idstringrequired

ID of the policy to chat about.

Header

X-Organization-Idstring

Organization ID (required for session auth, optional for API key auth)

Request Body

The AI chat request data.

object

Responses

200Streaming AI responsetext/event-stream
string
401Unauthorizedapplication/json
object
404Policy not foundapplication/json
object

Try It

POST/policies/:id/ai-chat
Path Parameters
Headers
Request Bodyapplication/json
Was this page helpful?