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.
Path parameters
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
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
Sent only with check: for each zone, whether the stored token may change Configuration Rules.
Fields of each item
Only ok allows a rule to be set.
okmissingunknownThe 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
The name of the zone. Null when the domain is in no connected zone.
Newest first: every rule that may still be at Cloudflare, and the last 100 removed or failed ones.
Fields of each item
The domains the rule names, sorted.
The {rule} a removal takes. At least 1.
Format: date-time.
Format: date-time.
The site row the rule was set for.
full is Full, strict is Full (strict).
fullstrictsetting 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.
settingactiveremovedkeptfailedWhy the rule is in its state, when there is something to say.
The Cloudflare zone the rule is in.
Fields
The Cloudflare zone the site is mapped to. Null when it has none.
If it is refused
| Status | Reason | What to do |
|---|---|---|
401 | none | Send a valid token as Authorization: Bearer <token>. |
403 | company_unavailable | Your company is unavailable. |
403 | scope_required | Use a token with the scope named in scope. |
403 | two_factor_required | Turn on two-factor on your account, then send again. |
404 | feature_off | This feature is not on for your organisation yet. |
429 | rate_limited | Wait 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"use Illuminate\Support\Facades\Http;
$response = Http::withToken(env('COREFINITY_TOKEN'))
->acceptJson()
->get('https://manage.corefinity.com/api/corestack/sites/1042/cloudflare/ssl-rules');
$data = $response->json();const res = await fetch('https://manage.corefinity.com/api/corestack/sites/1042/cloudflare/ssl-rules', {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.COREFINITY_TOKEN}`,
Accept: 'application/json',
},
});
// An answer with no body (204) has nothing to parse.
const text = await res.text();
const data = text && JSON.parse(text);import os
import requests
res = requests.get(
"https://manage.corefinity.com/api/corestack/sites/1042/cloudflare/ssl-rules",
headers={
"Authorization": f"Bearer {os.environ['COREFINITY_TOKEN']}",
"Accept": "application/json",
},
)
data = res.json() if res.content else None{
"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"
}
}{
"message": "Unauthenticated."
}{
"code": "company_unavailable",
"message": "Your company is unavailable.",
"reason": "company_unavailable"
}{
"code": "feature_off",
"message": "Not found.",
"reason": "feature_off"
}{
"code": "rate_limited",
"message": "Too many requests. Try again in 60 seconds.",
"reason": "rate_limited",
"retry_after_seconds": 60
}