Skip to main content
GET
Get History

Authorizations

Authorization
string
header
required

Mixpeek API key, sent as Authorization: Bearer mxp_sk_.... Create one in Studio under Settings → API Keys, or with an admin key via POST /v1/organizations/users/{user_email}/api-keys. A missing header returns 403; an invalid or revoked key returns 401.

X-Namespace
string
header
required

Namespace id (ns_...), not the namespace name. This scopes the request rather than authenticating it, and it is required on every operation marked x-mixpeek-namespace-scoped.

Path Parameters

session_id
string
required

Session ID

Query Parameters

limit
integer
default:50

Maximum messages to return

Required range: 1 <= x <= 200
offset
integer
default:0

Pagination offset

Required range: x >= 0

Response

Successful Response

Response for retrieving conversation history.

Attributes: session_id: Session identifier messages: List of messages in chronological order total_messages: Total number of messages in session returned_messages: Number of messages returned (may be limited) has_more: Whether there are more messages available

Example: python response = GetHistoryResponse( session_id="ses_abc123", messages=[...], total_messages=50, returned_messages=20, has_more=True )

session_id
string
required

Session identifier

messages
MessageHistoryItem · object[]
required

Message history

total_messages
integer
required

Total messages in session

returned_messages
integer
required

Messages returned

has_more
boolean
required

Whether more messages available