Get Chat History
Chats
Get Chat History
Retrieves paginated chat message history. Returns a bare JSON array of messages, newest first.
GET
Get Chat History
Retrieves paginated chat message history for a chat session. Messages are returned newest-first.
Usage
Path Parameters
| Parameter | Type | Description |
|---|---|---|
chatId | string (uuid) | Chat ID |
Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
limit | integer | 50 | Messages per page (1–200) |
before | string (RFC3339) | — | Timestamp cursor for backward pagination. Omit to get the latest messages. |
Response
Returns a bare JSON array of message objects:Message Roles
| Role | Description |
|---|---|
user | Message from the user |
assistant | Response from the AI agent |
system | System-level message |
tool | Tool execution result |
Content Types
| Type | Description |
|---|---|
text | Plain text content |
tool-call | A tool invocation with toolName and args |
tool-result | Result from a tool execution |
source | Source reference with url and title |
Pagination
Use thecreated_at timestamp of the oldest message in the current page as the before cursor for the next page:
Notes
Authentication required. The authenticated user must own the chat session.
Authorizations
API token generated from your Splox account settings. Create tokens at https://app.splox.io/account?tab=settings
Path Parameters
Chat ID
Query Parameters
Messages per page (default: 50, max: 200)
Required range:
x <= 200RFC3339 timestamp cursor for backward pagination. Omit to get latest messages.
Response
200 - application/json
Chat messages retrieved successfully (bare JSON array)

