Mix LogoMix

Get global message history

Retrieve message history across all sessions with optional pagination

Retrieve message history across all sessions with optional pagination

GET
/api/messages/history

Query Parameters

limit?integer

Maximum number of messages to return

Default50
Range1 <= value <= 1000
offset?integer

Number of messages to skip

Default0
Range0 <= value

Response Body

from mix_python_sdk import Mixwith Mix() as mix:    res = mix.messages.get_history(limit=50, offset=0)    # Handle response    print(res)
[
  {
    "assistantResponse": "string",
    "id": "string",
    "reasoning": "string",
    "reasoningDuration": 0,
    "role": "string",
    "sessionId": "string",
    "toolCalls": [
      {
        "finished": true,
        "id": "string",
        "input": "string",
        "isError": true,
        "name": "bash",
        "result": "string",
        "type": "string"
      }
    ],
    "userInput": "string"
  }
]
{
  "error": {
    "code": 0,
    "message": "string",
    "type": "bad_request"
  }
}
{
  "error": {
    "code": 0,
    "message": "string",
    "type": "bad_request"
  }
}