<div dir="ltr">Hi Mario,<div><br></div><div>I think that you are referring to banned subscribers or IPs, not the locked ones.</div><div>Locked are subscriber that are not able to perform some kind of calls because restricted for some reason.</div><div>Banned are instead the ones that are temporary blocked because failed the login or did too many attempts in a certain amount of time.</div><div><br></div><div>For the banned ones, you can use APIv1<br> * BannedIps</div><div> * BannedUsers</div><div>or APIv2</div><div> * bans/registrations</div><div> * bans/ips</div><div><br></div><div><br></div><div>Marco</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Thu, Apr 23, 2026 at 9:37\u202fAM Ml Ml &lt;<a href="mailto:mliebherr99@googlemail.com">mliebherr99@googlemail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello Marco,<br>
<br>
mein fist goal is to write a nagios check to monitor locked subscribers.<br>
<br>
Fetching all 20k subscribers and checking for the lock attribute is a<br>
long task, i was wondering of there is a faster way.<br>
The WebUI must fetch ist somehow quick, too?!<br>
<br>
Cheers,<br>
Mario<br>
<br>
On Wed, Apr 22, 2026 at 3:22\u202fPM Marco Capetta via Spce-user<br>
&lt;<a href="mailto:spce-user@lists.sipwise.com" target="_blank">spce-user@lists.sipwise.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Hi,<br>
&gt;<br>
&gt; if I got properly you asked how to lock subscriber, or numbers or IP, right?<br>
&gt; To lock/unlock a subscriber you can simply edit its &quot;lock&quot; property in the &quot; /api/subscribers&quot; API, or change is trough the &quot;lock&quot; preference.<br>
&gt;<br>
&gt; For number or IPs, you need to be more specific about the request, what do you exactly want to lock?<br>
&gt;<br>
&gt; Thank you<br>
&gt; Marco<br>
&gt;<br>
&gt;<br>
&gt; On Wed, Apr 22, 2026 at 11:05\u202fAM Ml Ml via Spce-user &lt;<a href="mailto:spce-user@lists.sipwise.com" target="_blank">spce-user@lists.sipwise.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hello,<br>
&gt;&gt;<br>
&gt;&gt; how can view and edit (unlock/lock) Subscribers/Numbers/IPs in the API?<br>
&gt;&gt; I wasnt able to find it in the DOCs :(<br>
&gt;&gt; Maybe its &quot;somehow special&quot;?<br>
&gt;&gt;<br>
&gt;&gt; Cheers,<br>
&gt;&gt; Mario<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Spce-user mailing list<br>
&gt;&gt; <a href="mailto:Spce-user@lists.sipwise.com" target="_blank">Spce-user@lists.sipwise.com</a><br>
&gt;&gt; <a href="http://lists.sipwise.com/mailman/listinfo/spce-user_lists.sipwise.com" rel="noreferrer" target="_blank">http://lists.sipwise.com/mailman/listinfo/spce-user_lists.sipwise.com</a><br>
&gt;<br>
&gt; --<br>
&gt; Spce-user mailing list<br>
&gt; <a href="mailto:Spce-user@lists.sipwise.com" target="_blank">Spce-user@lists.sipwise.com</a><br>
&gt; <a href="http://lists.sipwise.com/mailman/listinfo/spce-user_lists.sipwise.com" rel="noreferrer" target="_blank">http://lists.sipwise.com/mailman/listinfo/spce-user_lists.sipwise.com</a><br>
</blockquote></div>