Get your free beta license ↗
API operation · security group
POST

/security/flags

First published 14 Oct 20260.2.0Unchanged since publication

Refuse sign-ins from an IP address

Who may call it
AdministratorResellerCustomer
Token scope, any of
securityall
Answers201 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 server

Request body

JSON· 1 field
addressstring, up to 64 charactersRequired

Example

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 sentence
400<address> is loopback and is never refused
400Invalid IPv4 address
400Invalid IPv6 address
400address is required
401Authentication required
409<address> is on Allow as <rule>, and an allowed address is never refused: remove it there first
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/