Developer Documentation
Integrate Securiwall's enterprise-grade security, CDN, and traffic management directly into your infrastructure using our REST API.
Introduction#
The Securiwall API is built on REST principles. We enforce HTTPS in every request to improve data security, integrity, and privacy. The API does not support HTTP. All requests contain JSON bodies, and responses satisfy standard JSON format.
Base URL
https://api.securiwall.com/v1Authentication#
Securiwall uses API keys to authenticate requests. You can view and manage your API keys in the Account Settings.
Bearer Token
Your API keys carry many privileges, so be sure to keep them secure! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
401 Unauthorized.Authorization: Bearer sk_live_8F...Zones
A Zone represents a domain name (e.g., example.com) and all of its subdomains. You can manage DNS records, security settings, and more at the Zone level.
List Zones
Retrieve a list of all zones associated with your account.
curl -X GET "https://api.securiwall.com/v1/zones" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"Response
{
"success": true,
"result": [
{
"id": "023e105f4ecef8ad9ca31a8372d0c353",
"name": "example.com",
"status": "active",
"paused": false,
"type": "full",
"development_mode": 0
}
],
"result_info": {
"page": 1,
"per_page": 20,
"total_count": 1
}
}Create Zone
Add a new domain to your account.
curl -X POST "https://api.securiwall.com/v1/zones" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
--data '{"name": "example.com", "account": {"id": "12345"}, "jump_start": true}'DNS Records
Manage DNS records for a zone. Supports A, AAAA, CNAME, TXT, MX, NS, SRV, and more.
List DNS Records
curl -X GET "https://api.securiwall.com/v1/zones/023e.../dns_records" \
-H "Authorization: Bearer YOUR_API_KEY"Create DNS Record
curl -X POST "https://api.securiwall.com/v1/zones/023e.../dns_records" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data '{"type":"A","name":"example.com","content":"1.2.3.4","ttl":3600,"proxied":true}'SSL/TLS Settings
Control how Securiwall encrypts traffic to your origin.
Change SSL Mode
{ "value": "strict" }DDoS Rules
Configure how Securiwall handles traffic during an attack. You can set override rules for specific paths or user agents.
Under Attack Mode
When enabled, Securiwall presents a JavaScript challenge to all visitors. This is the "Nuclear Option" for stopping attacks.
Best Practice
PATCH /v1/zones/{zone_id}/settings/security_level
{
"value": "under_attack"
}Webhooks
Subscribe to real-time events.