/api/v1/status/uptimeGet uptime history
Returns a rolling 90-day, per-DAY uptime series for the platform as a whole — not per service. Computed solely from `gateway_proxy_logs` (up to 20,000 rows over the window), counting any status code below 500 as a success. Each day is `{date, totalRequests, successfulRequests, uptimePercent, status}` where status is `operational` (99.9% or above), `degraded` (99.0% or above), `outage` (below that) or `no-data` for a day with zero traffic. `overallUptime` is null rather than 100 when the window contains no traffic, so the status page shows 'no data yet' instead of a fabricated perfect score. Public and unauthenticated; the computed payload is memoized in module memory for 5 minutes and served with `s-maxage=300, stale-while-revalidate=600` for edge caching. No external synthetic-probe data is included.
Authentication
Public endpoint. No credential is read — send the request without an Authorization header. This is a deliberate statement, not a missing one.
Response
200 example
{
"success": true
}All status codes
Code samples
cURL
curl -X GET \ https://evalguard.ai/api/v1/status/uptime \ -H "Authorization: Bearer $EVALGUARD_API_KEY"
TypeScript
// The TypeScript SDK (@evalguard/sdk) exposes TYPED methods — runEval,
// getEval, runSecurityScan, checkFirewall, … — not a generic request().
// For an arbitrary endpoint, call it directly:
const res = await fetch("https://evalguard.ai/api/v1/status/uptime", {
method: "GET",
headers: { Authorization: `Bearer ${process.env.EVALGUARD_API_KEY}` },
});
console.log(res.status, await res.json());Python
# The Python SDK (pip install evalguardai) exposes TYPED methods on
# EvalGuardClient — run_eval, get_eval, … — not a generic request().
# For an arbitrary endpoint, call it directly:
import os
import requests
headers = {"Authorization": f"Bearer {os.environ['EVALGUARD_API_KEY']}"}
response = requests.request("GET", "https://evalguard.ai/api/v1/status/uptime", headers=headers)
print(response.status_code, response.json())Go
package main
import (
"context"
"fmt"
"net/http"
"os"
)
func main() {
req, _ := http.NewRequestWithContext(context.Background(), "GET", "https://evalguard.ai/api/v1/status/uptime", nil)
req.Header.Set("Authorization", "Bearer "+os.Getenv("EVALGUARD_API_KEY"))
resp, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer resp.Body.Close()
fmt.Println(resp.Status)
}