Policies
Chat with AI about a policy
Ask policy-specific questions and request draft improvements while preserving human review before policy changes are applied.
post/v1/policies/{id}/ai-chat
Path parameters
idstring required
Example:pol_abc123def456
Policy ID
Headers
X-Organization-Idstring
Organization ID (required for session auth, optional for API key auth)
Request body
Example request
{
"instructions": "Update the data retention section to specify a 7-year retention period",
"chatHistory": [
{
"role": "user",
"content": "Update the data retention policy"
},
{
"role": "assistant",
"content": "I can help with that..."
}
]
}Response
Streaming AI response
Changes
Changed in 2 of the 56 revisions of this API.2
- ○
the endpoint scheme security
oauth2was removed from the APIapi-security-removed
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
the endpoint scheme security
oauth2was added to the APIapi-security-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○