curl --request GET \
--url http://localhost:8080/api/logs/filterdata{
"models": [
"<string>"
],
"selected_keys": [
{
"name": "openai-key-1",
"value": "env.OPENAI_API_KEY",
"weight": 1,
"models": [
"gpt-4o",
"gpt-4o-mini"
],
"azure_key_config": {
"endpoint": "https://your-resource.openai.azure.com",
"deployments": {
"gpt-4o": "gpt-4o-deployment"
},
"api_version": "2024-02-15-preview"
},
"vertex_key_config": {
"project_id": "your-project-id",
"region": "us-central1",
"auth_credentials": "env.VERTEX_AUTH_CREDENTIALS"
},
"bedrock_key_config": {
"access_key": "env.AWS_ACCESS_KEY_ID",
"secret_key": "env.AWS_SECRET_ACCESS_KEY",
"session_token": "env.AWS_SESSION_TOKEN",
"region": "us-east-1",
"arn": "arn:aws:iam::123456789012:role/BedrockRole",
"deployments": {
"gpt-4o": "gpt-4o-deployment"
}
}
}
],
"virtual_keys": [
{
"id": "<string>",
"name": "<string>",
"value": "<string>",
"description": "<string>",
"team_id": "<string>",
"customer_id": "<string>",
"budget_id": "<string>",
"rate_limit_id": "<string>",
"is_active": true,
"keys": [
{
"name": "openai-key-1",
"value": "env.OPENAI_API_KEY",
"weight": 1,
"models": [
"gpt-4o",
"gpt-4o-mini"
],
"azure_key_config": {
"endpoint": "https://your-resource.openai.azure.com",
"deployments": {
"gpt-4o": "gpt-4o-deployment"
},
"api_version": "2024-02-15-preview"
},
"vertex_key_config": {
"project_id": "your-project-id",
"region": "us-central1",
"auth_credentials": "env.VERTEX_AUTH_CREDENTIALS"
},
"bedrock_key_config": {
"access_key": "env.AWS_ACCESS_KEY_ID",
"secret_key": "env.AWS_SECRET_ACCESS_KEY",
"session_token": "env.AWS_SESSION_TOKEN",
"region": "us-east-1",
"arn": "arn:aws:iam::123456789012:role/BedrockRole",
"deployments": {
"gpt-4o": "gpt-4o-deployment"
}
}
}
],
"budget": {
"id": "<string>",
"max_limit": 123,
"reset_duration": "<string>",
"last_reset": "2023-11-07T05:31:56Z",
"current_usage": 123
},
"rate_limit": {
"id": "<string>",
"token_max_limit": 123,
"token_reset_duration": "<string>",
"request_max_limit": 123,
"request_reset_duration": "<string>",
"token_last_reset": "2023-11-07T05:31:56Z",
"request_last_reset": "2023-11-07T05:31:56Z"
},
"team": {
"id": "<string>",
"name": "<string>",
"customer_id": "<string>",
"budget_id": "<string>",
"customer": {
"id": "<string>",
"name": "<string>",
"budget_id": "<string>",
"budget": {
"id": "<string>",
"max_limit": 123,
"reset_duration": "<string>",
"last_reset": "2023-11-07T05:31:56Z",
"current_usage": 123
},
"teams": "<array>",
"virtual_keys": "<array>",
"config_hash": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"budget": {
"id": "<string>",
"max_limit": 123,
"reset_duration": "<string>",
"last_reset": "2023-11-07T05:31:56Z",
"current_usage": 123
},
"virtual_keys": "<array>",
"profile": {},
"config": {},
"claims": {},
"config_hash": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"customer": {
"id": "<string>",
"name": "<string>",
"budget_id": "<string>",
"budget": {
"id": "<string>",
"max_limit": 123,
"reset_duration": "<string>",
"last_reset": "2023-11-07T05:31:56Z",
"current_usage": 123
},
"teams": "<array>",
"virtual_keys": "<array>",
"config_hash": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"provider_configs": [
{
"id": 123,
"provider": "<string>",
"weight": 123,
"allowed_models": [
"<string>"
]
}
],
"mcp_configs": [
{
"mcp_client_name": "<string>",
"tools_to_execute": [
"<string>"
],
"id": 123
}
],
"config_hash": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}Retrieves all unique values available for filtering logs (models, keys, virtual keys).
curl --request GET \
--url http://localhost:8080/api/logs/filterdata{
"models": [
"<string>"
],
"selected_keys": [
{
"name": "openai-key-1",
"value": "env.OPENAI_API_KEY",
"weight": 1,
"models": [
"gpt-4o",
"gpt-4o-mini"
],
"azure_key_config": {
"endpoint": "https://your-resource.openai.azure.com",
"deployments": {
"gpt-4o": "gpt-4o-deployment"
},
"api_version": "2024-02-15-preview"
},
"vertex_key_config": {
"project_id": "your-project-id",
"region": "us-central1",
"auth_credentials": "env.VERTEX_AUTH_CREDENTIALS"
},
"bedrock_key_config": {
"access_key": "env.AWS_ACCESS_KEY_ID",
"secret_key": "env.AWS_SECRET_ACCESS_KEY",
"session_token": "env.AWS_SESSION_TOKEN",
"region": "us-east-1",
"arn": "arn:aws:iam::123456789012:role/BedrockRole",
"deployments": {
"gpt-4o": "gpt-4o-deployment"
}
}
}
],
"virtual_keys": [
{
"id": "<string>",
"name": "<string>",
"value": "<string>",
"description": "<string>",
"team_id": "<string>",
"customer_id": "<string>",
"budget_id": "<string>",
"rate_limit_id": "<string>",
"is_active": true,
"keys": [
{
"name": "openai-key-1",
"value": "env.OPENAI_API_KEY",
"weight": 1,
"models": [
"gpt-4o",
"gpt-4o-mini"
],
"azure_key_config": {
"endpoint": "https://your-resource.openai.azure.com",
"deployments": {
"gpt-4o": "gpt-4o-deployment"
},
"api_version": "2024-02-15-preview"
},
"vertex_key_config": {
"project_id": "your-project-id",
"region": "us-central1",
"auth_credentials": "env.VERTEX_AUTH_CREDENTIALS"
},
"bedrock_key_config": {
"access_key": "env.AWS_ACCESS_KEY_ID",
"secret_key": "env.AWS_SECRET_ACCESS_KEY",
"session_token": "env.AWS_SESSION_TOKEN",
"region": "us-east-1",
"arn": "arn:aws:iam::123456789012:role/BedrockRole",
"deployments": {
"gpt-4o": "gpt-4o-deployment"
}
}
}
],
"budget": {
"id": "<string>",
"max_limit": 123,
"reset_duration": "<string>",
"last_reset": "2023-11-07T05:31:56Z",
"current_usage": 123
},
"rate_limit": {
"id": "<string>",
"token_max_limit": 123,
"token_reset_duration": "<string>",
"request_max_limit": 123,
"request_reset_duration": "<string>",
"token_last_reset": "2023-11-07T05:31:56Z",
"request_last_reset": "2023-11-07T05:31:56Z"
},
"team": {
"id": "<string>",
"name": "<string>",
"customer_id": "<string>",
"budget_id": "<string>",
"customer": {
"id": "<string>",
"name": "<string>",
"budget_id": "<string>",
"budget": {
"id": "<string>",
"max_limit": 123,
"reset_duration": "<string>",
"last_reset": "2023-11-07T05:31:56Z",
"current_usage": 123
},
"teams": "<array>",
"virtual_keys": "<array>",
"config_hash": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"budget": {
"id": "<string>",
"max_limit": 123,
"reset_duration": "<string>",
"last_reset": "2023-11-07T05:31:56Z",
"current_usage": 123
},
"virtual_keys": "<array>",
"profile": {},
"config": {},
"claims": {},
"config_hash": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"customer": {
"id": "<string>",
"name": "<string>",
"budget_id": "<string>",
"budget": {
"id": "<string>",
"max_limit": 123,
"reset_duration": "<string>",
"last_reset": "2023-11-07T05:31:56Z",
"current_usage": 123
},
"teams": "<array>",
"virtual_keys": "<array>",
"config_hash": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"provider_configs": [
{
"id": 123,
"provider": "<string>",
"weight": 123,
"allowed_models": [
"<string>"
]
}
],
"mcp_configs": [
{
"mcp_client_name": "<string>",
"tools_to_execute": [
"<string>"
],
"id": 123
}
],
"config_hash": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]
}Available filter data
List of unique model names
List of available API keys
Show child attributes
Unique name for the API key
"openai-key-1"
API key value or environment variable reference
"env.OPENAI_API_KEY"
Weight for load balancing
1
Models this key can access
["gpt-4o", "gpt-4o-mini"]Azure key configuration
Show child attributes
Azure endpoint
"https://your-resource.openai.azure.com"
Azure deployments
{ "gpt-4o": "gpt-4o-deployment" }Azure API version
"2024-02-15-preview"
Vertex key configuration
Show child attributes
Show child attributes
Bedrock access key
"env.AWS_ACCESS_KEY_ID"
Bedrock secret key
"env.AWS_SECRET_ACCESS_KEY"
Bedrock session token
"env.AWS_SESSION_TOKEN"
Bedrock region
"us-east-1"
Bedrock ARN
"arn:aws:iam::123456789012:role/BedrockRole"
Bedrock deployments
{ "gpt-4o": "gpt-4o-deployment" }List of available virtual keys
Show child attributes
Show child attributes
Unique name for the API key
"openai-key-1"
API key value or environment variable reference
"env.OPENAI_API_KEY"
Weight for load balancing
1
Models this key can access
["gpt-4o", "gpt-4o-mini"]Azure key configuration
Show child attributes
Azure endpoint
"https://your-resource.openai.azure.com"
Azure deployments
{ "gpt-4o": "gpt-4o-deployment" }Azure API version
"2024-02-15-preview"
Vertex key configuration
Show child attributes
Show child attributes
Bedrock access key
"env.AWS_ACCESS_KEY_ID"
Bedrock secret key
"env.AWS_SECRET_ACCESS_KEY"
Bedrock session token
"env.AWS_SESSION_TOKEN"
Bedrock region
"us-east-1"
Bedrock ARN
"arn:aws:iam::123456789012:role/BedrockRole"
Bedrock deployments
{ "gpt-4o": "gpt-4o-deployment" }Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Was this page helpful?