/api/v1/admin/backup/verifyVerify backup integrity
Runs read-only integrity checks and returns a pass/fail/warn summary plus RTO/RPO strings: row counts on six core tables (organizations, profiles, projects, org_members, eval_runs, audit_logs — cross-tenant, `warn` at 0 rows), database freshness (audit_logs written in the last hour), BYOK_SECRET presence/length, and BACKUP_ENABLED. The `rls_enabled` check is a constant `pass` that defers to the migration files — it verifies nothing at request time. Admin-only (`X-Admin-API-Key`, timing-safe compare against ADMIN_API_KEY); not org-scoped. Send an empty JSON object `{}` with `Content-Type: application/json` — a bodyless POST is rejected 400 INVALID_JSON, and any extra field is rejected by the strict schema. Rate limit 5/min.
Authentication
Send Authorization: Bearer YOUR_API_KEY on every request. Generate API keys at /dashboard/settings/api-keys.
Request body required
Example
{}Schema
{
"application/json": {
"schema": {
"type": "object",
"properties": {},
"additionalProperties": false
}
}
}Response
200 example
{
"success": true
}All status codes
Code samples
cURL
curl -X POST \
https://evalguard.ai/api/v1/admin/backup/verify \
-H "Authorization: Bearer $EVALGUARD_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'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/admin/backup/verify", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.EVALGUARD_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({}),
});
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']}"}
headers["Content-Type"] = "application/json"
response = requests.request(
"POST",
"https://evalguard.ai/api/v1/admin/backup/verify",
headers=headers,
json={},
)
print(response.status_code, response.json())Go
package main
import (
"context"
"fmt"
"net/http"
"os"
"strings"
)
func main() {
body := strings.NewReader(`{}`)
req, _ := http.NewRequestWithContext(context.Background(), "POST", "https://evalguard.ai/api/v1/admin/backup/verify", body)
req.Header.Set("Authorization", "Bearer "+os.Getenv("EVALGUARD_API_KEY"))
req.Header.Set("Content-Type", "application/json")
resp, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer resp.Body.Close()
fmt.Println(resp.Status)
}