curl --request GET \
--url http://localhost:8080/api/logs{
"logs": [
{
"id": "<string>",
"parent_request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"object": "<string>",
"provider": "<string>",
"model": "<string>",
"latency": 123,
"cost": 123,
"status": "<string>",
"stream": true,
"raw_response": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"input_history": [
{
"role": "user",
"content": "Hello, how are you?",
"tool_call_id": "<string>",
"tool_calls": [
{
"function": {
"name": "get_weather",
"arguments": "{\"location\": \"San Francisco, CA\"}"
},
"id": "tool_123",
"type": "function"
}
],
"refusal": "<string>",
"annotations": [
{
"type": "<string>",
"url_citation": {
"start_index": 123,
"end_index": 123,
"title": "<string>",
"url": "<string>",
"sources": "<unknown>",
"type": "<string>"
}
}
],
"thought": "<string>"
}
],
"output_message": {
"role": "user",
"content": "Hello, how are you?",
"tool_call_id": "<string>",
"tool_calls": [
{
"function": {
"name": "get_weather",
"arguments": "{\"location\": \"San Francisco, CA\"}"
},
"id": "tool_123",
"type": "function"
}
],
"refusal": "<string>",
"annotations": [
{
"type": "<string>",
"url_citation": {
"start_index": 123,
"end_index": 123,
"title": "<string>",
"url": "<string>",
"sources": "<unknown>",
"type": "<string>"
}
}
],
"thought": "<string>"
},
"responses_output": [
{
"role": "user",
"content": "<string>"
}
],
"embedding_output": [
{
"index": 123,
"object": "embedding",
"embedding": "<string>"
}
],
"params": {},
"tools": [
{
"type": "function",
"function": {
"name": "<string>",
"description": "<string>",
"parameters": {}
}
}
],
"tool_calls": [
{
"function": {
"name": "<string>",
"arguments": "<string>"
},
"type": "function",
"id": "<string>"
}
],
"token_usage": {
"prompt_tokens": 123,
"completion_tokens": 123,
"total_tokens": 123
},
"error_details": {
"is_bifrost_error": true,
"error": {
"message": "Provider is required",
"type": "invalid_request_error",
"code": "missing_required_parameter",
"param": "provider",
"event_id": "evt_123"
},
"event_id": "evt_123",
"type": "invalid_request_error",
"status_code": 400
},
"speech_input": {
"input": "<string>"
},
"transcription_input": {
"file": "aSDinaTvuI8gbWludGxpZnk="
},
"speech_output": {
"audio": "aSDinaTvuI8gbWludGxpZnk=",
"usage": {
"input_tokens": 123,
"output_tokens": 123,
"total_tokens": 123
}
},
"transcription_output": {
"duration": 123,
"language": "<string>",
"text": "<string>",
"words": [
{
"word": "<string>",
"start": 123,
"end": 123
}
],
"segments": [
{
"id": 123,
"seek": 123,
"start": 123,
"end": 123,
"text": "<string>",
"tokens": [
123
],
"temperature": 123,
"avg_logprob": 123,
"compression_ratio": 123,
"no_speech_prob": 123
}
]
},
"cache_debug": {
"cache_hit": true,
"cache_id": "<string>",
"hit_type": "<string>",
"provider_used": "<string>",
"model_used": "<string>",
"input_tokens": 123,
"threshold": 123,
"similarity": 123
}
}
],
"pagination": {
"limit": 123,
"offset": 123,
"sort_by": "<string>",
"order": "<string>"
},
"stats": {
"total_requests": 123,
"success_rate": 123,
"average_latency": 123,
"total_tokens": 123,
"total_cost": 123
}
}curl --request GET \
--url http://localhost:8080/api/logs{
"logs": [
{
"id": "<string>",
"parent_request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"object": "<string>",
"provider": "<string>",
"model": "<string>",
"latency": 123,
"cost": 123,
"status": "<string>",
"stream": true,
"raw_response": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"input_history": [
{
"role": "user",
"content": "Hello, how are you?",
"tool_call_id": "<string>",
"tool_calls": [
{
"function": {
"name": "get_weather",
"arguments": "{\"location\": \"San Francisco, CA\"}"
},
"id": "tool_123",
"type": "function"
}
],
"refusal": "<string>",
"annotations": [
{
"type": "<string>",
"url_citation": {
"start_index": 123,
"end_index": 123,
"title": "<string>",
"url": "<string>",
"sources": "<unknown>",
"type": "<string>"
}
}
],
"thought": "<string>"
}
],
"output_message": {
"role": "user",
"content": "Hello, how are you?",
"tool_call_id": "<string>",
"tool_calls": [
{
"function": {
"name": "get_weather",
"arguments": "{\"location\": \"San Francisco, CA\"}"
},
"id": "tool_123",
"type": "function"
}
],
"refusal": "<string>",
"annotations": [
{
"type": "<string>",
"url_citation": {
"start_index": 123,
"end_index": 123,
"title": "<string>",
"url": "<string>",
"sources": "<unknown>",
"type": "<string>"
}
}
],
"thought": "<string>"
},
"responses_output": [
{
"role": "user",
"content": "<string>"
}
],
"embedding_output": [
{
"index": 123,
"object": "embedding",
"embedding": "<string>"
}
],
"params": {},
"tools": [
{
"type": "function",
"function": {
"name": "<string>",
"description": "<string>",
"parameters": {}
}
}
],
"tool_calls": [
{
"function": {
"name": "<string>",
"arguments": "<string>"
},
"type": "function",
"id": "<string>"
}
],
"token_usage": {
"prompt_tokens": 123,
"completion_tokens": 123,
"total_tokens": 123
},
"error_details": {
"is_bifrost_error": true,
"error": {
"message": "Provider is required",
"type": "invalid_request_error",
"code": "missing_required_parameter",
"param": "provider",
"event_id": "evt_123"
},
"event_id": "evt_123",
"type": "invalid_request_error",
"status_code": 400
},
"speech_input": {
"input": "<string>"
},
"transcription_input": {
"file": "aSDinaTvuI8gbWludGxpZnk="
},
"speech_output": {
"audio": "aSDinaTvuI8gbWludGxpZnk=",
"usage": {
"input_tokens": 123,
"output_tokens": 123,
"total_tokens": 123
}
},
"transcription_output": {
"duration": 123,
"language": "<string>",
"text": "<string>",
"words": [
{
"word": "<string>",
"start": 123,
"end": 123
}
],
"segments": [
{
"id": 123,
"seek": 123,
"start": 123,
"end": 123,
"text": "<string>",
"tokens": [
123
],
"temperature": 123,
"avg_logprob": 123,
"compression_ratio": 123,
"no_speech_prob": 123
}
]
},
"cache_debug": {
"cache_hit": true,
"cache_id": "<string>",
"hit_type": "<string>",
"provider_used": "<string>",
"model_used": "<string>",
"input_tokens": 123,
"threshold": 123,
"similarity": 123
}
}
],
"pagination": {
"limit": 123,
"offset": 123,
"sort_by": "<string>",
"order": "<string>"
},
"stats": {
"total_requests": 123,
"success_rate": 123,
"average_latency": 123,
"total_tokens": 123,
"total_cost": 123
}
}Comma-separated list of providers to filter by
Comma-separated list of models to filter by
Comma-separated list of statuses to filter by
Comma-separated list of objects to filter by
Start time for the time range filter (RFC3339 format)
End time for the time range filter (RFC3339 format)
Full-text search in request/response bodies
Number of logs to return
x <= 1000Number of logs to skip
Field to sort by
timestamp, latency, tokens, cost Sort order
asc, desc Comma-separated list of API key IDs to filter by
Comma-separated list of virtual key IDs to filter by
Was this page helpful?