Skip to main content
doc0blade47/compdocumentation home
Sign in

AI

Engage in AI chat

Sends user messages to an AI model and streams back the AI's response. Requires an active session and organization context.

Last updated Oct 11, 2026
POST/api/chat

Parameters

x-organization-idstring

The ID of the organization to provide context for the AI chat.

Request Body

Messages for the AI chat.

object

Responses

200Streams the AI's response.text/event-stream
400Organization context required.application/json
object
401Unauthorized if no user session or user not a member of the organization.application/json
object
500Internal server error, e.g., missing OpenAI API key.application/json
object

Try It

POST/api/chat
Headers
Request Bodyapplication/json
Was this page helpful?