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

/security/bans/clear

First published 3 Oct 20260.1.0Unchanged since publication

Lift every active ban

Who may call it
AdministratorResellerCustomer
Token scope, any of
securityall
Answers200 OK

UrbeStack empties the firewall's ban set, marks each lifted ban as unblocked, and records who lifted it. It tells fail2ban to forget each ban so the next attempt from that IP address counts again. The API returns an Unblocked response.

As a command

Run as root on the server

Example

See the API overview for how to set $API and $TOKEN.
Request
curl -sS -X POST "$API/security/bans/clear" \
  -H "Authorization: Bearer $TOKEN"
Response · 200 OK
{
  "addresses": [
    "text"
  ],
  "fail2ban": "text",
  "state": "text",
  "unblocked": 1
}

Errors

4 errors, each a status and a sentence
400Invalid id
400Say which bans: an address or network, a service or rule, a search, or a time window; or clear all blocks
401Authentication required
404Ban <id> not found
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.1.0 on 3 Oct 2026.
urbestack.com/docs/api/post-security-bans-clear/