curl --request GET \
--url https://api.getmaxim.ai/v1/log-repositories/logs/traces \
--header 'x-maxim-api-key: <api-key>'
{
"data": {
"id": "<string>",
"name": "<string>",
"tags": {},
"startTimestamp": "<string>",
"sessionId": "<string>",
"type": "<string>",
"input": "<any>",
"output": "<any>",
"feedback": {
"score": 123,
"comment": "<string>"
},
"duration": 123,
"endTimestamp": "<string>",
"version": 123,
"timeline": [
{
"traceId": "<string>",
"name": "<string>",
"id": "<string>",
"type": "<string>",
"startTimestamp": "<string>",
"tags": {},
"timeline": [
{
"spanId": "<string>",
"modelParameters": {
"presencePenalty": 123,
"maxTokens": 123,
"temperature": 123,
"frequencyPenalty": 123,
"topP": 123
},
"provider": "<string>",
"name": "<string>",
"messages": [
{
"role": "<string>",
"content": "<string>"
}
],
"model": "<string>",
"id": "<string>",
"type": "<string>",
"startTimestamp": "<string>",
"completionResult": {
"cost": {
"output": 123,
"input": 123,
"total": 123
},
"provider": "<string>",
"created": "<any>",
"usage": {
"completion_tokens": 123,
"prompt_tokens": 123,
"total_tokens": 123
},
"model": "<string>",
"model_params": "<any>",
"id": "<string>",
"choices": [
{
"index": 123,
"message": {
"role": "<string>",
"content": "<string>",
"function_call": "<any>",
"tool_calls": "<any>"
},
"finish_reason": "<string>",
"logprobs": "<any>"
}
],
"error": "<any>"
},
"duration": 123,
"endTimestamp": "<string>",
"timestamp": "<string>",
"tags": {},
"input": "<string>",
"docs": [
"<string>"
]
}
]
}
]
}
}
Get a specific trace by ID
curl --request GET \
--url https://api.getmaxim.ai/v1/log-repositories/logs/traces \
--header 'x-maxim-api-key: <api-key>'
{
"data": {
"id": "<string>",
"name": "<string>",
"tags": {},
"startTimestamp": "<string>",
"sessionId": "<string>",
"type": "<string>",
"input": "<any>",
"output": "<any>",
"feedback": {
"score": 123,
"comment": "<string>"
},
"duration": 123,
"endTimestamp": "<string>",
"version": 123,
"timeline": [
{
"traceId": "<string>",
"name": "<string>",
"id": "<string>",
"type": "<string>",
"startTimestamp": "<string>",
"tags": {},
"timeline": [
{
"spanId": "<string>",
"modelParameters": {
"presencePenalty": 123,
"maxTokens": 123,
"temperature": 123,
"frequencyPenalty": 123,
"topP": 123
},
"provider": "<string>",
"name": "<string>",
"messages": [
{
"role": "<string>",
"content": "<string>"
}
],
"model": "<string>",
"id": "<string>",
"type": "<string>",
"startTimestamp": "<string>",
"completionResult": {
"cost": {
"output": 123,
"input": 123,
"total": 123
},
"provider": "<string>",
"created": "<any>",
"usage": {
"completion_tokens": 123,
"prompt_tokens": 123,
"total_tokens": 123
},
"model": "<string>",
"model_params": "<any>",
"id": "<string>",
"choices": [
{
"index": 123,
"message": {
"role": "<string>",
"content": "<string>",
"function_call": "<any>",
"tool_calls": "<any>"
},
"finish_reason": "<string>",
"logprobs": "<any>"
}
],
"error": "<any>"
},
"duration": 123,
"endTimestamp": "<string>",
"timestamp": "<string>",
"tags": {},
"input": "<string>",
"docs": [
"<string>"
]
}
]
}
]
}
}
API key for authentication
Unique identifier for the trace
Trace retrieved successfully
The response is of type object
.
Was this page helpful?