Chat with AI about a policy
Policies
Chat with AI about a policy | Comp AI API
Ask policy-specific questions and request draft improvements while preserving human review before policy changes are applied.
POST
Chat with AI about a policy
Documentation Index
Fetch the complete documentation index at: https://www.trycomp.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
API key for authentication
Headers
Organization ID (required for session auth, optional for API key auth)
Path Parameters
Policy ID
Example:
"pol_abc123def456"
Body
application/json
User instructions about what changes to make to the policy
Example:
"Update the data retention section to specify a 7-year retention period"
Chat history for context (array of messages with role and content)
Example:
[
{
"role": "user",
"content": "Update the data retention policy"
},
{
"role": "assistant",
"content": "I can help with that..."
}
]Response
Streaming AI response
The response is of type string.

