Skip to main content
Retrieve conversation history for a session.
session_id
string
required
The session ID

Query Parameters

limit
integer
Maximum number of messages to return (default: 50)
offset
integer
Number of messages to skip (default: 0)
curl -X GET "https://api-be.atthene.com/api/v1/runtime/session_abc123/messages/?limit=10" \
  -H "x-api-key: YOUR_API_KEY"

Response

Returns an array of message objects:
{
  "messages": [
    {
      "id": "msg_001",
      "role": "user",
      "content": "Hello, I need help with my account.",
      "timestamp": "2025-01-15T10:30:00Z"
    },
    {
      "id": "msg_002", 
      "role": "assistant",
      "content": "I'd be happy to help you with your account. What specific issue are you experiencing?",
      "timestamp": "2025-01-15T10:30:05Z"
    }
  ],
  "total": 2,
  "has_more": false
}