Chat

Send message

Send a natural-language message. Returns AI response with optional SQL generation and execution. Set stream: true for Server-Sent Events streaming.

post/chat

Request

  • Base URL: https://app.aifordatabase.com/api/v1
  • URL: https://app.aifordatabase.com/api/v1/chat
  • Auth: HTTP bearer

Request body

messagestring required

Natural-language question or instruction

connectionIdstring

Database connection to use for SQL execution

conversationIdstring

Continue an existing conversation

streamboolean

Set true for Server-Sent Events streaming

Response

Chat response (sync mode)

errorunknown required

Changes

No recorded changes to this operation across all 1 revision of this API.