TypeScript SDK API - Chat

Chat

Once a session is open, use these endpoints to exchange messages with the AI. Every message is sent in the context of a session so the AI remembers the full conversation history. Retrieve past messages at any time - even after the session ends.

2 endpointsBearer sk_live_xxxBase: /v1/sdk/chat
AuthAuthorization: Bearer sk_live_xxxxxxxxxxxxxxxx

Send message

Sends a user message to the AI and returns the AI's reply. The AI has full context of all prior messages in the session. If a document is attached, the AI can answer questions about its content.

Synchronous - expect 2-8 seconds
This call waits for the LLM to respond before returning. Average response time is 2-8 seconds depending on message complexity. Design your UI to show a loading state while waiting.

Get messages

Returns the full message history for a session in chronological order. Usepage and size to paginate through long conversations. Works on both active and ended sessions.


Next in SDK API Reference

Was this page helpful?
PDFFILLR.AI logo

PDFFILLR.AI

The intelligent layer for modern fund
administration. Automating high-stakes
documentation with precision and speed.

Powered byEngineersMind