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>",
"traceFilters": {
"combinator": "all",
"filters": [
{
"columnName": "tags",
"operator": "equal",
"value": [
{
"key": "<string>",
"value": "<string>"
}
]
}
]
},
"evaluatorFilters": {
"combinator": "all",
"filters": [
{
"evaluatorName": "<string>",
"operator": "null",
"value": "<any>"
}
]
},
"page": 0,
"limit": 10,
"sorting": {
"columnName": "<string>",
"desc": true
}
}'
{
"data": {
"uniqueTags": [
"<string>"
],
"logs": [
{
"id": "<string>",
"tags": {},
"timestamp": "<string>",
"startTimestamp": "<string>",
"endTimestamp": "<string>",
"name": "<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>",
"traceFilters": {
"combinator": "all",
"filters": [
{
"columnName": "tags",
"operator": "equal",
"value": [
{
"key": "<string>",
"value": "<string>"
}
]
}
]
},
"evaluatorFilters": {
"combinator": "all",
"filters": [
{
"evaluatorName": "<string>",
"operator": "null",
"value": "<any>"
}
]
},
"page": 0,
"limit": 10,
"sorting": {
"columnName": "<string>",
"desc": true
}
}'
{
"data": {
"uniqueTags": [
"<string>"
],
"logs": [
{
"id": "<string>",
"tags": {},
"timestamp": "<string>",
"startTimestamp": "<string>",
"endTimestamp": "<string>",
"name": "<string>",
"feedback": {
"score": 123,
"comment": "<string>"
}
}
]
},
"pagination": {
"total": 123,
"page": 123,
"limit": 123
}
}
API key for authentication
Logs retrieved successfully
The response is of type object
.
Was this page helpful?