API Documentation
The SamWaf Open API lets third-party systems and scripts manage website configuration, query protection logs and maintain protection rules. This page provides an operation index, the raw Swagger specification and interactive documentation. Check the version deployed on your own instance when integrating.
Authentication and request conventions
Enable the Open Platform in system configuration, then create an API Key under Open Platform → Key Management. Send it in the X-API-Key header. No admin login token or replay-protection headers are required. Requests go to your own management service, on port 26666 by default. Include the secure access path in request URLs if you have enabled that setting.
Responses are plain JSON with code, data and msg; code=0 indicates success. Read the cookbook for pagination, parameter names and full-record update conventions.
- Authentication and API key management
- Request conventions, failure codes and integration scenarios
- Readable API operation index
- Raw Swagger JSON specification
- Standalone Swagger UI
The operation index preserves paths exactly as written in the specification, without prepending basePath again. Tags and summaries retain the specification's original language. The documentation site provides reference material; API calls target your own SamWaf instance.
