OutDocAI
Query
POST
/query/stream

Same as /query, but streams the answer for chat UIs.

Authorization

BearerAuth
headerAuthorizationBearer <token>

Pass your OutDocAI API key as Authorization: Bearer od_….

Request Body

application/json
  1. body
query*string

The question to ask.

conversation_id?string

Continue an existing conversation.

Formatuuid
document_ids?array<>

Optional document scope.

include_graph?boolean
Defaultfalse
top_k?integer

Response Body

Server-sent / streamed answer

response?stringtext/event-stream
curl -X POST 'http://localhost:8000/api/v1/public/query/stream' \  -H 'Content-Type: application/json' \  -d '{  "query": "string"}'
"string"