Get the 24-hour CDN security report
GET /api/v2/cdn/security-insights
Returns a security report for the last 24 hours across every CDN zone on the account. It shows how much automated traffic the audience filter stopped, how many real visitors outside the audience passed verification and which trusted services were let through, such as search engines, payment webhooks and uptime monitors. Each zone gets its own breakdown with top countries, paths, IP addresses and hourly activity, next to its audience filter setting. When there is activity, the report also carries a short explanation in Swedish and English.
A report is generated at most once per 24 hours per account and covers up to 30 zones. A report younger than 24 hours comes back as ready. An older one comes back as stale while a new one is generated in the background. The first report for an account starts as pending. Poll again until refreshPending is false. After a failed run, the next attempt waits 15 minutes.
A high challenged count is usually the expected result of a narrow audience filter, not an attack. totals.challengePassRatePercent shows how much of the challenged traffic was human. When truncated is true, the counts are minimums.
Authentication: An API key with the scopes read:cdn and read:domains. About keys and scopes
Example
curl "https://cloud.hostup.se/api/v2/cdn/security-insights" \ -H "Authorization: Bearer $HOSTUP_API_KEY"Responses
200 The current security report state for the account.
{ "status": "ready", "refreshPending": false, "report": { "windowStart": "2026-07-28T06:00:00.000Z", "windowEnd": "2026-07-29T06:00:00.000Z", "generatedAt": "2026-07-29T06:00:05.000Z", "truncated": false, "totals": { "securityActionCount": 2398, "managedChallengeCount": 2398, "jsChallengeCount": 0, "interactiveChallengeCount": 0, "hardBlockCount": 0, "solvedChallengeCount": 41, "bypassedChallengeCount": 3, "trustedSkipCount": 356, "otherActionCount": 0, "challengeCount": 2398, "challengePassedCount": 44, "stoppedRequestCount": 2354, "challengePassRatePercent": 1.8 }, "previousSecurityActionCount": 2101, "trendPercent": 14, "topCountries": [ { "countryCode": "US", "count": 981 }, { "countryCode": "DE", "count": 512 } ], "topPaths": [ { "path": "/wp-login", "count": 611 }, { "path": "/xmlrpc", "count": 402 } ], "topIps": [ { "ip": "198.51.100.7", "count": 188 } ], "actionCounts": [ { "action": "managed_challenge", "count": 2398 } ], "sourceCounts": [ { "source": "firewallCustom", "count": 2398 } ], "hourly": [ { "hourStart": "2026-07-28T06:00:00.000Z", "count": 96 } ], "zones": [ { "zoneId": "cdn_01hxa3b4c5d6e7f8g9h0j1k2m3", "domain": "example.com", "policy": { "visitorProfileMode": "challenge", "audienceCountries": [ "SE" ] }, "totals": { "securityActionCount": 2398, "managedChallengeCount": 2398, "jsChallengeCount": 0, "interactiveChallengeCount": 0, "hardBlockCount": 0, "solvedChallengeCount": 41, "bypassedChallengeCount": 3, "trustedSkipCount": 356, "otherActionCount": 0, "challengeCount": 2398, "challengePassedCount": 44, "stoppedRequestCount": 2354, "challengePassRatePercent": 1.8 }, "trendPercent": 14, "topCountries": [ { "countryCode": "US", "count": 981 } ], "topPaths": [ { "path": "/wp-login", "count": 611 } ], "topIps": [ { "ip": "198.51.100.7", "count": 188 } ], "actionCounts": [ { "action": "managed_challenge", "count": 2398 } ], "sourceCounts": [ { "source": "firewallCustom", "count": 2398 } ], "hourly": [ { "hourStart": "2026-07-28T06:00:00.000Z", "count": 96 } ], "truncated": false, "topTrustedPaths": [ { "path": "/wp-json/wc/v3/webhooks", "count": 214 } ], "topTrustedBots": [ { "bot": "Googlebot", "category": "search", "count": 148 }, { "bot": "ClaudeBot", "category": "ai", "count": 25 }, { "bot": "GPTBot", "category": "ai", "count": 11 } ] } ], "zoneFailures": [], "ai": { "status": "completed", "severity": "normal", "confidence": "high", "languages": { "sv": { "headline": "2 354 automatiska besöksförsök stoppades – bara 1,8 % klarade verifieringen", "summary": "Ditt målgruppsfilter för Sverige utmanade 2 398 besök utanför målgruppen. Endast 44 klarade verifieringen – riktiga besökare som släpptes in på ett par sekunder. Resten var automatiserad trafik som aldrig nådde din webbplats. Betrodda tjänster som Googles indexeringsbot släpptes förbi automatiskt.", "observations": [ "Botarna försökte främst nå inloggningssidor, ett tecken på automatiska intrångsförsök som stoppades" ], "recommendations": [] }, "en": { "headline": "2,354 automated visit attempts were stopped — only 1.8% passed verification", "summary": "Your Sweden audience filter challenged 2,398 visits from outside the audience. Only 44 passed verification — real visitors who were let in within a couple of seconds. The rest was automated traffic that never reached your site. Trusted services such as Google's indexing bot were let through automatically.", "observations": [ "Bots mostly targeted login pages, a sign of automated intrusion attempts that were stopped" ], "recommendations": [] } } }, "topTrustedPaths": [ { "path": "/wp-json/wc/v3/webhooks", "count": 214 }, { "path": "/sitemap-index", "count": 88 } ], "topTrustedBots": [ { "bot": "Googlebot", "category": "search", "count": 148 }, { "bot": "ClaudeBot", "category": "ai", "count": 25 }, { "bot": "GPTBot", "category": "ai", "count": 11 }, { "bot": "OAI-SearchBot", "category": "ai", "count": 4 }, { "bot": "UptimeRobot", "category": "monitoring", "count": 96 } ] }}Response fields
statusstringready: report younger than 24 hours. stale: older report, a refresh runs in the background. pending: the first report is being generated. failed: no report exists and the last attempt failed. none: the account has no domains the report can cover. unsupported: the CDN service is not available. One of ready, stale, pending, failed, none, unsupported.refreshPendingbooleanreportobject or nullErrors
Errors are Problem Details with a stable code. Branch on the code, not on the text.
| 400 | Invalid request. The response body is an RFC 7807 Problem Details document. |
| 401 | Unauthorized. Authentication is required. |
| 403 | Forbidden. The caller lacks a required scope or does not own the resource. |
| 404 | Not found. The resource does not exist or is not owned by the caller. |
| 429 | Rate limited. Retry after the limit resets. 429 responses include Retry-After seconds plus X-RateLimit-* headers. |
| 500 | Internal error. Retry later or contact support if the issue persists. |