Leni AI

Send your API key on every call. Conversations go through POST /users/run-models. The API may also call /quick-reply to enrich follow-ups when you supply questionHistory. Use GET /users/sdk/me for the key profile, and the /users/me/chat-* routes to read persisted chat data (same key auth).

Endpoints in this section

MethodPathPurpose
POST/users/run-modelsPrompts, attachments, tagging, summaries, sessions
GET/users/sdk/meProfile for the key (optional extra payload)
GET/users/me/chat-messagesList chat messages (newest first)
GET/users/me/chat-messages/:messageIdOne message row (owner)
GET/users/me/chat-sessions/:sessionIdSession metadata when the owner participates
GET/users/me/chat-sessions/:sessionId/messagesTranscript for the session
POST/users/me/chat-sessions/attachmentsResolve file anchors in summaries (Leni /resolve-file-url)
POST/users/me/chat-sessions/message-responsesRaw message_response rows from the database

Guides

Memory APIs are under Memory; custom analysts under Analysts.