AI Chat
Stream AI chat response (SSE)
Send a message and receive the AI response as a Server-Sent Events stream. Optionally bind to an incident or alert for context. Events: session_id (initial), text (content chunks), task_update (tool progress), error, done (terminal with status). Requires ai.chat:write OAuth scope or an API key.
POST
Stream AI chat response (SSE)
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Message to send
Resume an existing session
Bind session to an incident (mutually exclusive with alert_id)
Bind session to an alert (mutually exclusive with incident_id)
Response
SSE event stream
Previous
List AI chat session messagesReturns the user and assistant message history for a session, paginated and chronologically ordered. Internal tool messages are filtered out. Requires `ai.chat:read` OAuth scope or an API key.
Next
Stream AI chat response (SSE)