Skip to content
GET/api/v1/admin/threat-feed-sync

Get threat-feed sync status

Returns the most recent `threat_indicators` row's sync timestamp and the single `metadata.source` tag on it, as `{ lastSyncedAt, source }` (both null when the table is empty) — enough for a dashboard 'last updated X ago'. Default feed sources are OWASP LLM Top 10 and MITRE ATLAS for AI, plus any remote JSON feeds configured in the deployment's `THREAT_FEED_URLS`. There is no admin-role check on this path — the shared sync token is the only gate. Authentication: the deployment's `THREAT_FEED_SYNC_TOKEN` shared secret as `Authorization: Bearer <token>` (the ThreatFeedSyncToken scheme), NOT an `eg_` API key. It is an operator/cron credential: no organization is resolved and no API-key scope is evaluated, so none is published.

Authentication

Deployment operator token. Send the deployment's THREAT_FEED_SYNC_TOKEN as Authorization: Bearer <token>.

This is a cron/operator credential, not a per-organization eg_ API key — an eg_ key is rejected, no organization is resolved and no API-key scope is evaluated. If the variable is unset the endpoint answers 500 to every caller rather than failing open.

Response

200 example

{
  "success": true
}

All status codes

200Sync status.
400(no description)
401(no description)
403Forbidden — insufficient role for this operation.
429(no description)
500Internal Server Error.

Code samples

cURL

curl -X GET \
  https://evalguard.ai/api/v1/admin/threat-feed-sync \
  -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/admin/threat-feed-sync", {
  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/admin/threat-feed-sync", 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/admin/threat-feed-sync", 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)
}

Errors

400401403429500

Other Admin endpoints