MCP Gateway
ApiObservability

Preview log cleanup

Preview how many logs would be deleted by a cleanup without actually deleting them.

GET
/api/v1/observability/logs/cleanup/preview

Query Parameters

retention_days?|

Override retention days (uses settings if not provided)

Response Body

application/json

application/json

curl -X GET "https://loading/api/v1/observability/logs/cleanup/preview"
{
  "retention_days": 0,
  "cutoff_date": "2019-08-24T14:15:22Z",
  "mcp_tool_call_logs": 0,
  "token_usage_logs": 0,
  "total": 0
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}