Get IP blacklist
GET
/api/v1/admin/security/ip-blacklist
const url = 'http://localhost:3001/api/v1/admin/security/ip-blacklist';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:3001/api/v1/admin/security/ip-blacklist \ --header 'Authorization: <Authorization>'Retrieve the list of blacklisted IP addresses. Requires admin:view_audit_logs permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”active
boolean
Filter by active status (default: true)
limit
integer
Maximum number of entries to return (default: 100, max: 1000)
Responses
Section titled “Responses”OK
Media typeapplication/json
object
entries
Array<object>
object
blocked_by
string
created_at
string
expires_at
string
hit_count
integer
id
integer
ip_address
string
last_hit_at
string
reason
string
success
boolean
total
integer
Examplegenerated
{ "entries": [ { "blocked_by": "example", "created_at": "example", "expires_at": "example", "hit_count": 1, "id": 1, "ip_address": "example", "last_hit_at": "example", "reason": "example" } ], "success": true, "total": 1}Unauthorized
Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{ "error": "example", "success": true}Forbidden
Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{ "error": "example", "success": true}Internal Server Error
Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{ "error": "example", "success": true}