CorefinityCorefinityDocs
Open the Control PanelControl Panel
Cloudflare · 8 of 10

List a site's Cloudflare SSL rules

Answers the SSL rules set for the site's domains, the domains a rule can name, and, with check, whether the stored Cloudflare token may set one.

GET/api/corestack/sites/{site}/cloudflare/ssl-rules

Path parameters

siteintegerRequired

The id of a site row. A website's production site and each of its environments has its own id. Digits only. At least 1.

Query parameters

checkboolean

Send 1 to ask Cloudflare whether the token may change Configuration Rules in each zone. Nothing is written.

Returns

200 The rules, the domains and the zone.

Fields of the 200 answer
accessarray of objects

Sent only with check: for each zone, whether the stored token may change Configuration Rules.

Fields of each item
accessstringRequired

Only ok allows a rule to be set.

okmissingunknown
zonestringRequired
domainsarray of objectsRequired

The site's domains, each with the connected zone it is in. A rule can name the ones that have a zone.

Fields of each item
hoststringRequired
zonestring or nullRequired

The name of the zone. Null when the domain is in no connected zone.

rulesarray of objectsRequired

Newest first: every rule that may still be at Cloudflare, and the last 100 removed or failed ones.

Fields of each item
hostsarray of stringsRequired

The domains the rule names, sorted.

idintegerRequired

The {rule} a removal takes. At least 1.

removed_atstring or nullRequired

Format: date-time.

set_atstring or nullRequired

Format: date-time.

site_idinteger or nullRequired

The site row the rule was set for.

sslstringRequired

full is Full, strict is Full (strict).

fullstrict
statestringRequired

setting while it is being written, active once Cloudflare has it, removed, failed when it could not be written, and kept when it was changed in Cloudflare afterwards and so was left there.

settingactiveremovedkeptfailed
state_reasonstring or nullRequired

Why the rule is in its state, when there is something to say.

zoneobjectRequired

The Cloudflare zone the rule is in.

Fields
idstringRequired
namestringRequired
zoneobject or any or nullRequired

The Cloudflare zone the site is mapped to. Null when it has none.

If it is refused

StatusReasonWhat to do
401noneSend a valid token as Authorization: Bearer <token>.
403company_unavailableYour company is unavailable.
403scope_requiredUse a token with the scope named in scope.
403two_factor_requiredTurn on two-factor on your account, then send again.
404feature_offThis feature is not on for your organisation yet.
429rate_limitedWait for the seconds in Retry-After.

Reasons are listed by name in Errors and refusals.

The same task elsewhere

curl https://manage.corefinity.com/api/corestack/sites/1042/cloudflare/ssl-rules \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json"
{
  "access": [
    {
      "access": "ok",
      "zone": "harbourandfinch.example.com"
    }
  ],
  "domains": [
    {
      "host": "harbourandfinch.example.com",
      "zone": "harbourandfinch.example.com"
    },
    {
      "host": "www.harbourandfinch.example.com",
      "zone": "harbourandfinch.example.com"
    }
  ],
  "rules": [
    {
      "hosts": [
        "harbourandfinch.example.com",
        "www.harbourandfinch.example.com"
      ],
      "id": 318,
      "removed_at": null,
      "set_at": "2026-11-03T09:16:40+00:00",
      "site_id": 1042,
      "ssl": "full",
      "state": "active",
      "state_reason": null,
      "zone": {
        "id": "zone-example-1",
        "name": "harbourandfinch.example.com"
      }
    }
  ],
  "zone": {
    "id": "zone-example-1",
    "name": "harbourandfinch.example.com"
  }
}
Try it
Held in this tab's memory only. Never stored or sent to us.

Use a token with only the read scope. How to make one

Was this helpful?
Open in ClaudeOpen in ChatGPT