curl --request POST \
--url https://api.getmaxim.ai/v1/log-repositories/logs/search \
--header 'Content-Type: application/json' \
--header 'x-maxim-api-key: <api-key>' \
--data '
{
"workspaceId": "<string>",
"id": "<string>",
"type": "session",
"timestamp": {
"gte": "<string>",
"lte": "<string>"
},
"sessionId": "<string>",
"searchQuery": "<string>",
"page": 0,
"limit": 10
}
'{
"data": {
"uniqueTags": [
"<string>"
],
"logs": [
{
"id": "<string>",
"tags": {},
"timestamp": "<string>",
"startTimestamp": "<string>",
"name": "<string>",
"endTimestamp": "<string>",
"feedback": {
"score": 123,
"comment": "<string>"
}
}
]
},
"pagination": {
"total": 123,
"page": 123,
"limit": 123
}
}Search logs in a log repository
curl --request POST \
--url https://api.getmaxim.ai/v1/log-repositories/logs/search \
--header 'Content-Type: application/json' \
--header 'x-maxim-api-key: <api-key>' \
--data '
{
"workspaceId": "<string>",
"id": "<string>",
"type": "session",
"timestamp": {
"gte": "<string>",
"lte": "<string>"
},
"sessionId": "<string>",
"searchQuery": "<string>",
"page": 0,
"limit": 10
}
'{
"data": {
"uniqueTags": [
"<string>"
],
"logs": [
{
"id": "<string>",
"tags": {},
"timestamp": "<string>",
"startTimestamp": "<string>",
"name": "<string>",
"endTimestamp": "<string>",
"feedback": {
"score": 123,
"comment": "<string>"
}
}
]
},
"pagination": {
"total": 123,
"page": 123,
"limit": 123
}
}API key for authentication
Unique identifier for the workspace
Log repository ID
Type of logs to retrieve (session or trace)
session, trace Timestamp range for filtering logs eg: { gte: '2024-01-01T00:00:00Z', lte: '2024-01-31T23:59:59Z' }
Show child attributes
Filter logs by session ID
Search query to filter logs
Trace properties to filter on
Show child attributes
Evaluator metrics to be filtered on
Show child attributes
Page number for pagination
Number of records per page (max: 100)
x <= 50Sorting configuration for logs eg: { id: 'startTimestamp', desc: true }
Show child attributes
Was this page helpful?