hosting

GET /v1/sites/{siteId}/cdn/security-events

List what the edge blocked or challenged for a site, and why.

All hosting endpoints

All developer docs →

Zinn®, our Viking, hammering at his anvil beside an API endpoint sending events to several listeners.

Authentication

Send an API key as a bearer token. The key must carry the sites.view permission; a key without it is refused with 403, not 404.

This endpoint takes no organisation id. Your key already identifies the organisation it belongs to, and the response is scoped to it.

Try it

Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.

curl -X GET https://api.zinndigital.com/v1/sites/{siteId}/cdn/security-events \
  -H "Authorization: Bearer zdk_live_…"

Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console

Details

Requests the edge network acted on for the site's own hostnames (blocked, challenged, skipped or logged), most recent first, at most 100. hours is 1 to 24 (the provider keeps one day on the free plan) and defaults to 24. feature names the feature that acted (custom rule, rate limit, Under Attack, browser check ...) and rule the rule's description. Cached for a minute. supported is false when the site's CDN cannot report events. A site on a shared preview zone is refused with 422 (refusal.edge.siteUsesSharedPreview2): that zone's log belongs to every site on it. Requires sites.view.

Parameters

NameTypeRequiredWhat it is
siteId (path)UuidYesSite ID (UUIDv7).
hours (query)integerNo—

Response

NameTypeRequiredWhat it is
site_idstringYes—
supportedbooleanYes—
hoursintegerYes—
eventsSiteCdnSecurityEvent[]Yes—

Errors this endpoint can return

401 · 403 · 404 · 422 · 429 · 502 · 503