Aller au contenu

GET /v1/organizations/{org_id}/projects/{id}/stats

Un instantané chiffré du projet : répartition des alertes par sévérité, alertes KEV/PoC, et volumétrie (stack, URLs surveillées, abonnements EOL). Les compteurs d’alertes portent sur vos alertes du projet.

GET /api/v1/organizations/{org_id}/projects/{project_id}/stats
Authorization: Bearer twa_votre_cle_ici
ParamètreTypeDescription
org_idUUIDIdentifiant de l’organisation
project_idUUIDIdentifiant du projet
{
"total_alerts": 128,
"unread_alerts": 12,
"alerts_by_severity": { "CRITICAL": 8, "HIGH": 34, "MEDIUM": 70, "LOW": 16 },
"kev_alerts": 5,
"poc_alerts": 21,
"stack_items": 14,
"monitored_urls": 3,
"eol_subscriptions": 7
}
ChampTypeDescription
total_alertsintegerTotal d’alertes CVE sur le projet
unread_alertsintegerAlertes non lues
alerts_by_severityobjectNombre d’alertes par sévérité
kev_alertsintegerAlertes sur des CVE du catalogue KEV
poc_alertsintegerAlertes sur des CVE avec PoC public
stack_itemsintegerItems de la stack surveillée
monitored_urlsintegerURLs surveillées
eol_subscriptionsintegerAbonnements End-of-Life
CodeDétailCause
404Projet introuvableProjet inexistant ou hors de cette organisation
403Accès refusé à ce projetVous n’êtes pas membre du projet
Fenêtre de terminal
ORG_ID="018e5678-abcd-7000-8000-000000000001"
PROJECT_ID="018e1234-abcd-7000-8000-000000000010"
curl -s \
-H "Authorization: Bearer twa_votre_cle_ici" \
"https://app.techwatchalert.com/api/v1/organizations/${ORG_ID}/projects/${PROJECT_ID}/stats" \
| jq '{critiques: .alerts_by_severity.CRITICAL, kev: .kev_alerts, non_lues: .unread_alerts}'