Appearance
API protection API Since v0.1
These routes serve the policy.api section. For its keys, see API protection policy. The /v1/api-keys routes manage consumer keys for protected applications. They are separate from the management tokens in Accounts and audit API.
For the base URL, sign-in, roles and error format, see Management API. Except sign-in, a route answers 401 without credentials and 403 when the role is too low.
Routes
Settings, specs and lists
| Method | Path | Minimum role | What it does | Main fields |
|---|---|---|---|---|
GET | /v1/apps/{name}/api | viewer | Returns API protection settings. | Returns the current values with base_version. |
PUT | /v1/apps/{name}/api | operator | Changes API protection settings. | Body: set (key to value; empty string resets the key), base_version (required), comment, dry_run. |
GET | /v1/apps/{name}/api/specs | viewer | Lists the API descriptions of an application. | none |
PUT | /v1/apps/{name}/api/specs/{spec} | operator | Stores an OpenAPI description. | Body: content, base_path, checks, unsupported_patterns, base_version, comment, dry_run. |
DELETE | /v1/apps/{name}/api/specs/{spec} | operator | Removes an API description. | Query: base_version (required). |
POST | /v1/api/check | operator | Parses an API description without saving it. | Body: content. Response: ok, error, title, openapi. |
GET | /v1/apps/{name}/api/lists/{list} | viewer | Returns one API list. | Returns the current values with base_version. |
PUT | /v1/apps/{name}/api/lists/{list} | operator | Replaces one API list. | Body: items (the whole list; [] removes it), base_version, comment, dry_run. |
GET | /v1/apps/{name}/api/posture Since v0.2 | viewer | Returns the API posture summary of an application. | none |
GET | /v1/api/inventory | viewer | Lists the endpoints seen in traffic. | none |
gRPC and XML
| Method | Path | Minimum role | What it does | Main fields |
|---|---|---|---|---|
GET | /v1/apps/{name}/api/grpc | viewer | Returns the stored gRPC descriptors. | none |
PUT | /v1/apps/{name}/api/grpc | operator | Stores or removes gRPC descriptors. | Body: content, remove, base_version, comment, dry_run. |
POST | /v1/api/grpc/check | operator | Parses gRPC descriptors without saving them. | Body: content. |
GET | /v1/apps/{name}/api/xml/contracts Since v0.2 | viewer | Lists XML contracts. | none |
PUT | /v1/apps/{name}/api/xml/contracts/{contract} Since v0.2 | operator | Stores an XML contract. | Body: kind, paths, files, entry, root, soap_action, operations, on_violation, base_version. |
DELETE | /v1/apps/{name}/api/xml/contracts/{contract} Since v0.2 | operator | Removes an XML contract. | none |
POST | /v1/api/xml/check Since v0.2 | operator | Checks an XML contract without saving it. | Body: kind, files, entry, root. |
Keys, certificates and attestation
| Method | Path | Minimum role | What it does | Main fields |
|---|---|---|---|---|
GET | /v1/api-keys | viewer | Lists consumer keys (secrets are never returned). | none |
POST | /v1/api-keys | operator | Creates a consumer key; the secret is shown once. | Body: app, consumer, comment, expires (duration or RFC 3339 time). Response: key and secret. |
DELETE | /v1/api-keys/{id} | operator | Revokes a consumer key. | none |
GET | /v1/api/jwks | viewer | Shows the status of fetched JWT key sets. | none |
GET | /v1/apps/{name}/api/wssec/keys Since v0.2 | viewer | Lists WS-Security keys. | none |
PUT | /v1/apps/{name}/api/wssec/keys/{key} Since v0.2 | admin | Uploads a WS-Security key. | Body: kind, pem, role. |
DELETE | /v1/apps/{name}/api/wssec/keys/{key} Since v0.2 | admin | Removes a WS-Security key. | none |
GET | /v1/apps/{name}/api/wssec/certs Since v0.2 | viewer | Lists WS-Security certificates. | none |
PUT | /v1/apps/{name}/api/wssec/certs/{cert} Since v0.2 | operator | Uploads a WS-Security certificate. | Body: role, pem, base_version, comment, dry_run. |
DELETE | /v1/apps/{name}/api/wssec/certs/{cert} Since v0.2 | operator | Removes a WS-Security certificate. | none |
GET | /v1/apps/{name}/api/attestation/keys Since v0.2 | viewer | Lists attestation verifier keys. | none |
PUT | /v1/apps/{name}/api/attestation/keys/{verifier}/{kind} Since v0.2 | admin | Uploads an attestation verifier key. | Body: key. |
DELETE | /v1/apps/{name}/api/attestation/keys/{verifier}/{kind} Since v0.2 | admin | Removes an attestation verifier key. | none |
GET | /v1/apps/{name}/api/attestation/devices Since v0.2 | viewer | Lists registered attested devices. | none |
DELETE | /v1/apps/{name}/api/attestation/devices/{id} Since v0.2 | operator | Revokes an attested device. | none |
POST | /v1/apps/{name}/api/attestation/check Since v0.2 | operator | Checks an attestation token against the settings. | Body: token, method, path, query, body. |
Rewrites, ownership, flows, volume and more
| Method | Path | Minimum role | What it does | Main fields |
|---|---|---|---|---|
POST | /v1/apps/{name}/api/rewrites/test Since v0.2 | viewer | Shows how a described response is rewritten. | Body: method, path, location, scheme, host, name. |
GET | /v1/apps/{name}/api/ownership Since v0.2 | viewer | Shows object ownership learning. | none |
POST | /v1/apps/{name}/api/ownership/reset Since v0.2 | operator | Clears learned ownership. | Body: confirm, name, node. |
GET | /v1/apps/{name}/api/flows/status Since v0.2 | viewer | Shows the state of business flow tracking. | none |
GET | /v1/apps/{name}/api/flows/suggestions Since v0.2 | viewer | Lists suggested business flows. | none |
POST | /v1/apps/{name}/api/flows/suggestions/approve Since v0.2 | operator | Approves flow suggestions. | Body: ids, base_version, comment, dry_run. |
POST | /v1/apps/{name}/api/flows/once/forget Since v0.2 | operator | Forgets one use of a one-time value. | Body: flow, value, identity, name. |
GET | /v1/apps/{name}/api/volume Since v0.2 | viewer | Shows learned request volume limits. | none |
POST | /v1/apps/{name}/api/volume/approve Since v0.2 | operator | Approves learned volume limits. | none |
POST | /v1/apps/{name}/api/volume/reject Since v0.2 | operator | Rejects learned volume limits. | none |
POST | /v1/apps/{name}/api/volume/reset Since v0.2 | operator | Resets learned volume data. | none |
GET | /v1/apps/{name}/api/llm/usage Since v0.2 | viewer | Shows model usage counts for the application. | none |
POST | /v1/api/llm/check Since v0.2 | operator | Shows how a prompt text would be judged. | Body: text, app. |
GET | /v1/apps/{name}/ssrf Since v0.2 | viewer | Returns server-side request forgery settings. | Returns the current values with base_version. |
PUT | /v1/apps/{name}/ssrf Since v0.2 | operator | Changes server-side request forgery settings. | Body: set (key to value; empty string resets the key), base_version (required), comment, dry_run. |
POST | /v1/api/ssrf/check Since v0.2 | operator | Shows how a value would be judged. | Body: value, name, app. |
GET | /v1/apps/{name}/api/mcp Since v0.2 | viewer | Lists MCP servers and tools seen. | none |
POST | /v1/apps/{name}/api/mcp/enforce Since v0.2 | operator | Turns an observed MCP server into an enforced entry. | Body: path, name, tools_from_traffic, base_version, comment, dry_run. |
Example
sh
curl -sk -H "Authorization: Bearer waap_EXAMPLE" https://127.0.0.1:9443/v1/apps/shop/api/specs