Appearance
API protection
API protection checks the requests that machines send to your APIs: body structure and size, the OpenAPI description, who is calling, which endpoints exist and how they are used. It also covers protocol-specific traffic (GraphQL, gRPC, WebSocket, XML and SOAP, AI agent servers) and the attacks that are specific to APIs, such as access to another user's objects. You turn it on per application and tune it in one place in the console.
What it is made of
| Part | What it does | Page |
|---|---|---|
| Schema enforcement | Body limits for JSON and XML, and OpenAPI descriptions. | Schema enforcement |
| Authentication | JWT rules, API keys and consumers. | Authentication |
| Endpoint inventory | Finds undocumented, deprecated and unused endpoints. | Endpoint inventory |
| Protocols | GraphQL, gRPC, WebSocket and MCP paths. | GraphQL, gRPC, WebSocket and MCP |
| XML and SOAP | Contracts for XML bodies and SOAP services. | XML and SOAP |
| WS-Security | Signed SOAP messages and signature wrapping. | WS-Security |
| Learned schema | Schemas learned from traffic. | Learned schema |
| Mobile app attestation | Requests only from genuine app installs. | Mobile app attestation |
| Call rewriting | Changes requests and responses of API calls. | API call rewriting |
| Object ownership | Stops access to other users' objects (BOLA, IDOR). | Object ownership |
| Business flows | Guards multi-step flows against abuse. | Business flows |
| LLM endpoints | Protects endpoints that front a language model. | LLM endpoint protection |
| Agent discovery | Finds unapproved MCP servers and agents. | Shadow MCP and agent discovery |
How it works
The api_schema module runs after access rules and rate limits and before signatures. It parses the body once, according to the declared Content-Type, and checks the limits while reading, so a hostile body costs linear time and bounded memory.
| Content type | Parser |
|---|---|
application/json, any */*+json | JSON |
application/xml, text/xml, any */*+xml | XML |
| anything else | none (signatures still inspect the body) |
Every violation is one event with a rule ID that starts with api. (for example api.json.depth or api.schema.body). The event names the JSON pointer or XML element path and the value. List them with waap events list -rule api.json.depth.
Modes and roles
API protection is off until the application has a policy.api section. Turn it on in detect, watch the events, then set the mode to block. An empty module mode follows the application, and detect always wins over block. Role operator changes settings; viewer reads them.
How changes take effect
Every change is previewed, takes a comment and becomes a configuration version. Descriptions and descriptor sets are stored with the version, so waap config rollback restores them too. In an HA pair the standby receives the same version.