Skip to main content
POST
Chat with AI about a policy

Authorizations

X-API-Key
string
header
required

API key for authentication

Headers

X-Organization-Id
string

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

Path Parameters

id
string
required

Policy ID

Example:

"pol_abc123def456"

Body

application/json
instructions
string
required

User instructions about what changes to make to the policy

Example:

"Update the data retention section to specify a 7-year retention period"

chatHistory
object[]

Chat history for context (array of messages with role and content)

Example:

Response

Streaming AI response

The response is of type string.