Skip to content

List requests Cloudflare stopped on a site

GET /v1/sites/{siteId}/protection/events

Lists the requests Cloudflare blocked or challenged on the site's protected domains over the last 24 hours, newest first (up to 200), with what stopped each one. Empty while protection is off.

They're read from Cloudflare (kept 30 seconds); when its log can't be read just now it answers 502 bad_gateway: try again in a minute.

Scopes

The token needs this scope. Without it, the request is refused with insufficient_scope (see Scopes).

sites:read
View sites. See sites and their domains, CDN, firewall, malware protection, backups, staging, resources, SMTP and Media Offload. SMTP includes who each site's recent emails went to, their subjects, and the team's sign-in addresses.

Path parameters

FieldType and description
siteId Required

string

The site's id.

Query parameters

FieldType and description
limit

integer 1 to 100 Default 25

How many items to return, from 1 to 100. Default 25.

cursor

string 1 to 1,024 characters

The nextCursor of the previous page, exactly as it was given. Leave it out for the first page.

sort

string Default occurredAt

The field to sort by. Each list names the fields it can be sorted by.

One of: occurredAt

order

string Default desc

asc (smallest or oldest first) or desc. Each list has its own default.

One of: ascdesc

Example request

curl "https://api.rabbitflare.com/v1/sites/8a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d/protection/events" \
  -H "Authorization: Bearer $RABBITFLARE_TOKEN"

Response

200 OK Returns a list of ProtectionEvent objects in data, with a Pagination object in pagination.

The ProtectionEvent object's fields 11 fields
FieldType and description
id

string

The event's id in this list: the request's Ray ID. When one request was stopped more than once, each of its events adds what happened to it, like 8e3f2a1b4c5d6e7f-block-managed-rules.

occurredAt

string An ISO 8601 time, in UTC

When the request came.

action

string

What Cloudflare did: block (refused it), or a challenge the visitor had to pass: managed_challenge, challenge or jschallenge.

Known values: blockchallengemanaged_challengejschallenge More can appear.

hostname

string

The domain the request was for.

method

string

The request's HTTP method, like GET or POST.

path

string

The page asked for (up to 300 characters).

ip

string

The IP address the request came from.

country

string or null

The country the request came from, as a two-letter code like US. Null when not known.

reason

string

What stopped it, in words: for example Managed rules, Blocklist, Browser check, DDoS protection or Rate limit; Cloudflare when it was another of Cloudflare's protections.

userAgent

string or null

The browser or tool the request said it came from (up to 300 characters). Null when it sent none.

rayId

string or null

Cloudflare's Ray ID of the request: the code a stopped visitor sees on Cloudflare's page. Null when not known.

Example response

200 OK
{
  "data": [
    {
      "id": "8e3f2a1b4c5d6e7f",
      "occurredAt": "2026-11-18T10:44:09.000Z",
      "action": "managed_challenge",
      "hostname": "shop.example.com",
      "method": "POST",
      "path": "/wp-login.php",
      "ip": "198.51.100.77",
      "country": "US",
      "reason": "Managed rules",
      "userAgent": "python-requests/2.32.3",
      "rayId": "8e3f2a1b4c5d6e7f"
    }
  ],
  "pagination": {
    "limit": 25,
    "hasMore": false,
    "nextCursor": null
  }
}

Errors

The errors this request can answer besides those every request can (a missing token, a missing scope, the rate limits). Each answer is an Error object (see Errors).

Status and codeWhen, and what to do
400 invalid_parameter

A query parameter is unknown or has a wrong value (fields names it), or the query is too long: over 16,384 characters, or a parameter's name over 64.

Correct or remove the parameter named in fields.

400 invalid_cursor

The cursor isn't one this list gave, or was made with other filters or another sort.

Start again from the first page, or keep the filters and sort the cursor was made with.

403 feature_unavailable

This product isn't open to the account.

Contact support if you'd like it opened.

404 not_found

The resource doesn't exist, or isn't this account's.

Check the id. Ids of other accounts' resources answer the same way.

409 server_restoring

The server is being restored, and nothing else can change it or its sites until that's done.

Wait until the restore finishes (the server's pendingAction is null again), then try again. A restore that stopped partway keeps pendingAction: "restore", with the server's lastError set, until our team has checked the server.

502 bad_gateway

Something on our side didn't answer properly.

Try again in a moment.

Rate limit

Heavy requests: 20 a minute per token, 40 per account. More in Rate limits.

Added on .

Deprecated since November 28, 2026; it stops working on November 30, 2027. Cloudflare protection was removed from Rabbitflare on 28 November 2026: this operation answers `403 feature_unavailable` for every site, and goes in v2.

Popular

API docs