Retrieving A Chat
You can access the message history for a chat at any point via the chat api.
- URL: https://rellm.ai/api/chat/chat_id (opens in a new tab)
- Method: GET
- Headers:
- Authorization: Bearer "Your api token"
- query_params:
- user_id: string representation of the user
JS Package
import ReLLM from "rellm";
const rellm = new ReLLM(process.env.RELLM_API_KEY)
rellm.getChat(user_id, chat_id)