/security/flags
0.1.0Unchanged since publicationList login flags and sign-in policy thresholds
securityreadallThe response includes active, expired and lifted login flags from the last 30 days, newest first. With no nonempty kind, state, q, page or per_page parameter, flags contains the full list. With any of those parameters set, flags contains one page, and the response includes the total number of matching flags, counts by kind and state, and system-wide sign-in figures.
Page numbers range from 1 to 999999 and default to 1 when omitted or invalid. Requests past the last page return the last page. An empty result has one page. UrbeStack returns 400 if kind, state or q is invalid.
Both response formats include thresholds. The tries value is the failed sign-in threshold from security.flag_tries (default 10). The window and time values give the counting window and refusal duration in seconds, from security.flag_window and security.flag_time, respectively. Both default to 900 seconds.
Parameters
kindquery ·string, one of panel, mail, passwd, manualstatequery ·string, one of active, expired, letin, allqquery ·string, up to 200 characterspagequery ·integer, 1 or moreper_pagequery ·integer, 1 to 1000Example
See the API overview for how to set $API and $TOKEN.curl -sS -X GET "$API/security/flags?kind=panel&state=active&q=text&page=1&per_page=1" \ -H "Authorization: Bearer $TOKEN"
200 OK{
"active": 1,
"day": {
"failed_sign_ins": 1,
"refused_now": 1
},
"flags": [
{
"address": "info@example.com",
"failures": 1,
"first_at": "text",
"flagged_at": "text",
"kind": "panel",
"login": "text",
"protocol": "text",
"refusals": 1,
"state": "active",
"unflagged_at": "text",
"unflagged_by": "text",
"until": "text"
}
],
"kinds": {},
"page": 1,
"pages": 1,
"per_page": 1,
"states": {},
"thresholds": {
"time": 1,
"tries": 1,
"window": 1
},
"total": 1
}Errors
4 errors, each a status and a sentence400A kind is panel, mail, passwd or manual400The search is up to 200 characters400The state is active, expired, letin or all401Authentication requiredurbestack.com/docs/api/get-security-flags/