use the Show Region behaivor.
Create the error message, select it then go to Webassist -> Security Assist -> Show Region.
to see how those rules are defined, go to WebAssist -> Security Assist -> Manage Site Access -> Access Rules Manager.
no, there is no api documentation.