Version 2.1.1792967583 · latest Download OpenAPI Markdown

API reference v2.1.1792967583

15 groups · 419 endpoints

Authentication

Send the X-API-Key header (create a key on the API Keys page; the key is shown only once at creation). An Authorization: Bearer token obtained by logging in also works.

X-API-Key

  1. X-API-Key is checked first (not expired or deleted)
  2. otherwise the Authorization: Bearer access token
  3. then the key scopes and the operation scope (tenants only reach their own resources)

Authentication failures return 401; forbidden returns 403 (code such as insufficient_scope).

Responses and errors

Success returns the resource JSON directly (HTTP 2xx); failures return application/problem+json (code, detail, plus errors on validation failures); lists carry items + total.

Success
{
  "id": 1,
  "name": "example"
}
List
{
  "items": [
    {
      "id": 1
    }
  ],
  "page": 1,
  "page_size": 20,
  "total": 1
}
Error
{
  "code": "validation_failed",
  "detail": "Invalid request parameters",
  "errors": [
    {
      "code": "required",
      "field": "/name",
      "message": "name is required"
    }
  ],
  "request_id": "0123456789abcdef",
  "status": 422,
  "title": "Unprocessable Entity",
  "type": "about:blank"
}

Conventions

  • Paging uses page (from 1) and page_size; sort with sort=field or sort=-field.
  • Times are RFC 3339 (UTC); amounts are in cents.
  • Writes return 200/201/204 on success; duplicates of a unique key return 409.

Resources

Authentication

User accounts

Billing

DNS and access

Node scheduling

IP product line

Certificates

Protection

Access control lists aclsRule sets that allow or block requests by IP/CIDR and other conditions; the platform provides built-in rules and tenants can create their own.6 endpointsCC matchers cc-matchesConditions that identify requests in CC protection; reusable across rule groups.6 endpointsCC filters cc-filtersHow matched requests are handled: rate limiting or a challenge (JS, slider, captcha and so on).5 endpointsCC rules cc-rulesOrdered combinations of matchers and filters; a site can pick one rule group.6 endpointsBans bansRecords of blocked IPs: bans created by hand, unban by IP or for a whole site with an unban history, and automatic bans reported by nodes.8 endpointsSite IP lists site-ip-listsPermanent IP blacklist and whitelist of one site; blacklisted IPs are dropped and whitelisted IPs skip CC and other protections. The site's temporary whitelist on nodes can also be cleared.7 endpointsGlobal IP lists global-ip-listsPlatform-wide IP blacklist and whitelist with optional expiry, reason and source per entry, plus bulk import and export; admin only.4 endpointsCC settings cc-settingsPlatform-level default CC rule group and automatic switching settings; admin only.2 endpointsBot settings bot-settingsPlatform-wide bot management: the action per class (search engine / monitor and tool / automation tool / headless browser / malicious bot) and for fake crawlers, the challenge kind, behaviour score bands, protected endpoints and exceptions; admin only. Headless browser, malicious bot and fake crawler actions plus behaviour scoring belong to the paid feature WAF enhanced. Each site may override per class in the site config field bot.2 endpointsBot stats bot-statsStats at the top of the bot management page and the per-class "requests today" column: today's requests, requests and action breakdown per bot class, number of sites with replay protection on, and node upgrade progress; tenants see their own sites only.1 endpointsWAF settings waf-settingsPlatform-wide WAF master switch, default blocking threshold and request body inspection limit; admin only. Per-site observe/block mode and exceptions live in the site config field waf.2 endpointsUpload scan settings upload-scan-settingsPlatform-wide upload scanning (files in multipart form uploads only): master switch, dangerous extensions, double extensions, disguised files, webshell signatures, antivirus, per-file limit, scan timeout, action and exceptions; admin only. Webshell signatures, antivirus and the sha256 blocklist belong to the paid feature WAF enhanced.2 endpointsUpload scan stats upload-scan-statsStats at the top of the upload scan page: today's scanned, blocked and over-limit unscanned counts, plus the list of sites that cannot be scanned; admin only.1 endpointsHigh-risk IP library intelThe platform-provided high-risk IP library (paid item rules update, synced hourly): status, platform-wide handling policy, entry lookup, whitelisting a single entry and today's visits that hit it; read-only for tenants.5 endpointsValue-added protection schemes protect-schemesOne scheme each for replay, data leak and web tamper protection (one per tenant; admins edit the platform scheme); saving also updates sites that follow the scheme, sites with their own settings are left alone; part of WAF Enhanced.9 endpointsReplay protection site-replay-guardsReplay protection of one site: protected APIs need a one-time token or the app signature headers, otherwise the request is blocked or challenged; can be set for the site alone or restored to the scheme; part of WAF Enhanced.3 endpointsData leak protection site-leak-guardsData leak protection of one site: checks pages, JSON and text returned by the origin for phone numbers, ID card numbers, bank card numbers, keys and error messages, and masks, blocks or replaces them with an error page; part of WAF Enhanced.3 endpointsNetwork-wide URL protection settings url-guard-settingsPlatform-wide default switch and thresholds for network-wide URL protection; admin only. Per-site switch and thresholds live in the site security settings.2 endpointsNetwork-wide URL protection url-guardTemporary challenge/rate-limit/block rules pushed for a URL once its cross-node request volume exceeds the threshold, revoked automatically on expiry; read-only view of the entries in effect.1 endpointsThreat intelligence reports intel-reportsBatches of threat intelligence this master reports anonymously to the vendor (auto-banned high-risk IPs, upload scan hits and false positives, newly seen file fingerprints), one batch every 5 minutes; nothing is reported while intelligence sharing is off. Admin only.1 endpointsWeb tamper protection site-tamper-guardsWeb tamper protection of one site: protected scopes (home page, pages, directories), what counts as tampering (structure only / any change), serving the baseline page or alerting only, and the observation period; baseline update and diff; part of WAF Enhanced.5 endpointsWeb tamper protection page overview tamper-guardAll protected pages across sites (site, path, scope, baseline time, state, last change) without picking a site first; tenants see their own sites only and may filter by site.1 endpoints

Packages

Sites

Cache

TCP/UDP forwarding

Tiered origin

Messages

Reports