API operation · security group
GET
/security/modsec/domains
First published 19 Nov 2026
0.2.30Unchanged since publicationList domains and their effective ModSecurity modes
Who may call it
AdministratorResellerCustomer
Token scope, any of
securityreadallAnswers200 OK
Returns each domain's effective mode, any mode set specifically for the domain, who set it and when, and the domain owner's choice. Results are ordered by domain name and include the total number of matches, the server mode, and the number of domains in each effective mode.
Use limit to set the page size from 1 to 1000, with a default of 50. Use offset to skip domains. The API ignores values of q, limit, and offset that fail its format checks. The limit format allows 1 to 4 digits, and the offset format allows 1 to 9 digits.
As a command
Run as root on the serverParameters
qquery ·stringPartial domain or owner name. Use 1 to 253 characters drawn from word characters, periods, @, and hyphens.
customizedquery ·booleanWhether to return only domains with a domain-specific mode or an owner's choice.
limitquery ·integer, 1 to 1000offsetquery ·integer, 0 or moreExample
See the API overview for how to set $API and $TOKEN.Request
curl -sS -X GET "$API/security/modsec/domains?q=text&customized=1&limit=1&offset=1" \ -H "Authorization: Bearer $TOKEN"
Response ·
200 OK{
"counts": {
"customized": 1,
"in_force": {
"blocking": 1,
"logging": 1,
"off": 1
},
"lowered": 1,
"own_mode": 1,
"total": 1
},
"domains": [
{
"choice": {
"at": "text",
"mode": "off"
},
"disabled_rules": 1,
"domain": "example.com",
"in_force": "off",
"own": {
"at": "text",
"by": "text",
"mode": "off"
},
"owner": "text"
}
],
"limit": 1,
"offset": 1,
"server": {
"by_hand": "off",
"mode": "off"
},
"total": 1
}Errors
1 error, each a status and a sentence401Authentication requiredNo error of this operation matches.
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.2.30 on 19 Nov 2026.
urbestack.com/docs/api/get-security-modsec-domains/