API operation · security group
POST
/security/flags
First published 14 Oct 2026
0.2.0Unchanged since publicationRefuse sign-ins from an IP address
Who may call it
AdministratorResellerCustomer
Token scope, any of
securityallAnswers201 Created
A manual login flag blocks sign-ins from the IP address even when the password is correct. The refusal lasts for the duration set by security.flag_time, which defaults to 900 seconds. A new manual flag replaces any existing flag for the IP address and restarts the duration.
Loopback IP addresses are exempt. If the Allow list covers the IP address, remove the matching entry before setting the flag. UrbeStack returns 400 if address is missing or empty.
As a command
Run as root on the serverRequest body
JSON· 1 fieldaddressstring, up to 64 charactersRequiredExample
See the API overview for how to set $API and $TOKEN.Request
curl -sS -X POST "$API/security/flags" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"address": "info@example.com"
}'Response ·
201 Created{
"address": "info@example.com",
"refused": 1,
"until": "text"
}Errors
6 errors, each a status and a sentence400<address> is loopback and is never refused400Invalid IPv4 address400Invalid IPv6 address400address is required401Authentication required409<address> is on Allow as <rule>, and an allowed address is never refused: remove it there firstNo 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.0 on 14 Oct 2026.
urbestack.com/docs/api/post-security-flags/