curl --request GET \
--url https://app.splox.io/api/v1/chat-history/{chatId}/paginated \
--header 'Authorization: Bearer <token>'[
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"chat_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"role": "user",
"content": [
{
"type": "text",
"text": "<string>",
"toolCallId": "<string>",
"toolName": "<string>",
"args": {},
"result": "<unknown>",
"reasoning": "<string>"
}
],
"parent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": {
"type": "<string>",
"reason": "<string>"
},
"metadata": {},
"files": [
{
"url": "<string>",
"content_type": "<string>",
"file_name": "<string>",
"file_size": 123,
"metadata": {}
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]Retrieves paginated chat message history. Returns a bare JSON array of messages, newest first.
curl --request GET \
--url https://app.splox.io/api/v1/chat-history/{chatId}/paginated \
--header 'Authorization: Bearer <token>'[
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"chat_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"role": "user",
"content": [
{
"type": "text",
"text": "<string>",
"toolCallId": "<string>",
"toolName": "<string>",
"args": {},
"result": "<unknown>",
"reasoning": "<string>"
}
],
"parent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": {
"type": "<string>",
"reason": "<string>"
},
"metadata": {},
"files": [
{
"url": "<string>",
"content_type": "<string>",
"file_name": "<string>",
"file_size": 123,
"metadata": {}
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]curl "https://app.splox.io/api/v1/chat-history/0199f200-a11b-7c8d-4444-888890abcdef/paginated?limit=20" \
-H "Authorization: Bearer YOUR_TOKEN"
| Parameter | Type | Description |
|---|---|---|
chatId | string (uuid) | Chat ID |
| 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. |
[
{
"id": "019c3221-29dc-7735-a4e3-b42ebb1a0cf1",
"chat_id": "0199f200-a11b-7c8d-4444-888890abcdef",
"role": "assistant",
"content": [
{
"type": "text",
"text": "Hello! How can I help you today?"
}
],
"files": [],
"created_at": "2025-10-22T10:01:00Z",
"updated_at": "2025-10-22T10:01:00Z"
},
{
"id": "019c3221-29dc-7735-a4e3-b42ebb1a0cf2",
"chat_id": "0199f200-a11b-7c8d-4444-888890abcdef",
"role": "user",
"content": [
{
"type": "text",
"text": "Summarize the latest report"
}
],
"created_at": "2025-10-22T10:00:00Z",
"updated_at": "2025-10-22T10:00:00Z"
}
]
| Role | Description |
|---|---|
user | Message from the user |
assistant | Response from the AI agent |
system | System-level message |
tool | Tool execution result |
| 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 |
created_at timestamp of the oldest message in the current page as the before cursor for the next page:
# First page (latest messages)
curl ".../chat-history/{chatId}/paginated?limit=20"
# Next page (older messages)
curl ".../chat-history/{chatId}/paginated?limit=20&before=2025-10-22T10:00:00Z"
API token generated from your Splox account settings. Create tokens at https://app.splox.io/account?tab=settings
Chat ID
Messages per page (default: 50, max: 200)
x <= 200RFC3339 timestamp cursor for backward pagination. Omit to get latest messages.
Chat messages retrieved successfully (bare JSON array)
user, assistant, system, tool Show child attributes
Show child attributes
Show child attributes