Log Repositories/Traces
Get trace by ID
Get a specific trace by ID
Authorization
x-maxim-api-key
<token>API key for authentication
In: header
Query Parameters
id
RequiredstringUnique identifier for the trace
curl -X GET "https://api.getmaxim.ai/v1/log-repositories/logs/traces?id=%3Cstring%3E" \
-H "x-maxim-api-key: <token>"
Trace retrieved successfully
{
"data": {
"id": "string",
"name": "string",
"tags": {
"property1": "string",
"property2": "string"
},
"startTimestamp": "string",
"sessionId": "string",
"type": "string",
"input": null,
"output": null,
"feedback": {
"score": 0,
"comment": "string"
},
"duration": 0,
"endTimestamp": "string",
"version": 0,
"timeline": [
{
"traceId": "string",
"name": "string",
"id": "string",
"type": "string",
"startTimestamp": "string",
"tags": {
"property1": "string",
"property2": "string"
},
"timeline": [
{
"spanId": "string",
"modelParameters": {
"presencePenalty": 0,
"maxTokens": 0,
"temperature": 0,
"frequencyPenalty": 0,
"topP": 0
},
"provider": "string",
"name": "string",
"messages": [
{
"role": "string",
"content": "string"
}
],
"model": "string",
"id": "string",
"type": "string",
"startTimestamp": "string",
"completionResult": {
"cost": {
"output": 0,
"input": 0,
"total": 0
},
"provider": "string",
"created": null,
"usage": {
"completion_tokens": 0,
"prompt_tokens": 0,
"total_tokens": 0
},
"model": "string",
"model_params": null,
"id": "string",
"choices": [
{
"index": 0,
"message": {
"role": "string",
"content": "string",
"function_call": null,
"tool_calls": null
},
"finish_reason": "string",
"logprobs": null
}
],
"error": null
},
"duration": 0,
"endTimestamp": "string",
"timestamp": "string",
"tags": {
"property1": "string",
"property2": "string"
},
"input": "string",
"docs": [
"string"
]
}
]
}
]
}
}