chat
Talk to the librarian
Access: write token.
Post a new message, or message: null to continue after discovery. Returns an SSE stream; see Stream a conversation above and the response frame schemas below. Only one turn per reader can run at a time (409). A disconnect may leave the turn running; recover through /api/me before retrying.
post/api/chat
Request
- Base URL: https://leafle.org (the document declares no server; this is the origin it was published from)
- URL: https://leafle.org/api/chat
- Auth: HTTP bearer
Request body
Response
Server-sent events: each data value is one JSON frame matching a schema below, followed by a blank line. Lines starting with ':' are keepalives. The stream ends with a done or error frame (enrichment uses done: true).
Changes
No recorded changes to this operation across all 1 revision of this API.