Developer Documentation
Build upon Securiawall's enterprise perimeter. Manage zones as a reseller, push custom WAF rules via CI/CD, fetch analytics for customized dashboards, or connect directly via BGP GRE Tunnels.
Introduction#
The Securiawall API empowers you to manage your security posture programmatically. Integrate infrastructure management directly into your own applications without ever logging into our panel.
Global Endpoint
https://api.securiawall.com/v1Authentication & Rate Limits#
Securiawall utilizes OAuth 2.0 and API Tokens for request authentication. You can generate granular-scoped API tokens from the Developer Settings in your master dashboard.
Bearer Token Auth
Authenticate by providing your generated API Token in the Authorization header. Never expose this key in client-side applications.
401 Unauthorized.Rate Limiting
To ensure platform stability, the API restricts the number of requests per account. Standard accounts are permitted 1200 requests per 5 minutes. If you exceed this, you will receive a 429 Too Many Requests response. Enterprise customers have dedicated rate allocations.
Reseller API (Zone Provisioning)
Hosting providers and agencies can programmatically provision domains, inject DNS records, and configure baseline security layers for their own customers silently in the background.
Complete Zone Creation
Create a domain, turn on the WAF, and set the DNS record all in a single API call.
Fetching Panel Analytics
Provide immense value to your own end-users by embedding Securiawall's attack statistics directly into your own custom billing panel or software (like WHMCS).
Query Traffic Metrics
Retrieve time-series data for passed vs. dropped traffic for graphing (e.g. for Chart.js or ECharts).
Expected JSON Response
Query Threat Logs (WAF & DDoS)
Fetch a list of recent L7 attacks, including attacking IPs, countries, and rule triggers.
Custom WAF Rules Engine
Corporate firms can enforce their own custom firewall logic directly at the Securiawall Edge. Deploy tailored rules via CI/CD to block specific ASNs, force Captchas on suspicious User-Agents, or rate limit specific URIs.
Deploy a Firewall Rule
This snippet demonstrates creating a rule that forces a Managed Challenge (Captcha) for any traffic coming from two specific ASNs targeting the /login path.
Configuring GRE Tunnels
For Enterprise BGP protection or direct volumetric network scrubbing, Securiawall establishes a GRE (Generic Routing Encapsulation) tunnel between our scrubbing centers and your edge router. Traffic is cleaned at our edge, and only safe traffic is tunneled directly to your AS.
Prerequisites
IP /31 range and a Securiawall Scrubbing Center Public IP from your technical account manager before proceeding.1. Linux (iproute2)
If your edge termination point is a Linux server running FRR or Quagga, configure the GRE interface using standard ip commands.
2. MikroTik RouterOS
Configuring the GRE interface on a MikroTik CCR or standard RouterOS device.
Handling MTU & TCP MSS
GRE adds a 24-byte overhead. To prevent painful packet fragmentation or dropped SSH/HTTPS connections, you **must** clamp the TCP MSS (Maximum Segment Size) to 1436.
Enterprise Alerting & SIEM Integration
Instead of constantly polling the API, register an endpoint to have Securiawall actively push logs and alerts to your Security Operations Center (SOC).
Log Streaming API (Datadog/S3/ELK)
Enterprise customers can create a Logpush job to stream HTTP/WAF event logs directly to an AWS S3 Bucket or a Datadog intake URL in real-time.
Attack Webhooks
Receive immediate POST payloads when a volumetric Layer 4 anomaly is detected and mitigated.