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

/security/bans/{id}

First published 3 Oct 20260.1.0Unchanged since publication

Lift a ban by ID

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

UrbeStack keeps the lifted ban in the ban history, marks it as unblocked, and records who lifted it. It tells fail2ban to forget the ban in the rule that issued it. The firewall continues to block the IP address wherever another active ban applies.

The API returns an Unblocked response. If the ban has expired or is already unblocked, the response reports its current state.

As a command

Run as root on the server

Parameters

idpath ·integer, 1 or moreRequired

Example

See the API overview for how to set $API and $TOKEN.
Request
curl -sS -X DELETE "$API/security/bans/1" \
  -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/delete-security-bans-id/