Skip to main content
GET
/
chats
/
{chat_id}
Get chat's messages
curl --request GET \
  --url https://{subdomain}.withrealm.com/api/external/alpha/chats/{chat_id} \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "<string>",
      "content": "<string>",
      "role": "user"
    }
  ],
  "first_id": "<string>",
  "last_id": "<string>",
  "has_more": true,
  "assistant_id": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.withrealm.com/llms.txt

Use this file to discover all available pages before exploring further.

Rate Limits

600 requests per minute.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

chat_id
string
required

The unique identifier of the chat to retrieve messages from.

Query Parameters

citation_style
enum<string>

Controls how citations are handled in the message content. 'link' preserves citations as links, 'remove' strips them out

Available options:
link,
remove

Response

Success

data
object[]
required
first_id
string
required
last_id
string
required
has_more
boolean
required
assistant_id
string