ReLLMAboutAboutContact ↗Contact ↗ (opens in a new tab)ReLLM ↗ReLLM ↗ (opens in a new tab)
  • Introduction
  • Getting Started
    • Adding Data
    • Deleting Data
    • Delete Permission
    • Setting Permissions
    • Create Chat
    • Get Chat
    • Sending Receiving Messages
  • Introduction
  • Getting Started
    • Adding Data
    • Deleting Data
    • Delete Permission
    • Setting Permissions
    • Create Chat
    • Get Chat
      • JS Package
    • Sending Receiving Messages
  • About
  • Contact ↗ (opens in a new tab)
  • ReLLM ↗ (opens in a new tab)

On This Page

  • JS Package
Question? Give us feedback → (opens in a new tab)Edit this page
chat
Get Chat

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)
Create ChatSending Receiving Messages

ReLLM Documentation