Skip to content

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 ​

PartWhat it doesPage
Schema enforcementBody limits for JSON and XML, and OpenAPI descriptions.Schema enforcement
AuthenticationJWT rules, API keys and consumers.Authentication
Endpoint inventoryFinds undocumented, deprecated and unused endpoints.Endpoint inventory
ProtocolsGraphQL, gRPC, WebSocket and MCP paths.GraphQL, gRPC, WebSocket and MCP
XML and SOAPContracts for XML bodies and SOAP services.XML and SOAP
WS-SecuritySigned SOAP messages and signature wrapping.WS-Security
Learned schemaSchemas learned from traffic.Learned schema
Mobile app attestationRequests only from genuine app installs.Mobile app attestation
Call rewritingChanges requests and responses of API calls.API call rewriting
Object ownershipStops access to other users' objects (BOLA, IDOR).Object ownership
Business flowsGuards multi-step flows against abuse.Business flows
LLM endpointsProtects endpoints that front a language model.LLM endpoint protection
Agent discoveryFinds 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 typeParser
application/json, any */*+jsonJSON
application/xml, text/xml, any */*+xmlXML
anything elsenone (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.