Skip to content

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 ​

MethodPathMinimum roleWhat it doesMain fields
GET/v1/apps/{name}/apiviewerReturns API protection settings.Returns the current values with base_version.
PUT/v1/apps/{name}/apioperatorChanges API protection settings.Body: set (key to value; empty string resets the key), base_version (required), comment, dry_run.
GET/v1/apps/{name}/api/specsviewerLists the API descriptions of an application.none
PUT/v1/apps/{name}/api/specs/{spec}operatorStores an OpenAPI description.Body: content, base_path, checks, unsupported_patterns, base_version, comment, dry_run.
DELETE/v1/apps/{name}/api/specs/{spec}operatorRemoves an API description.Query: base_version (required).
POST/v1/api/checkoperatorParses an API description without saving it.Body: content. Response: ok, error, title, openapi.
GET/v1/apps/{name}/api/lists/{list}viewerReturns one API list.Returns the current values with base_version.
PUT/v1/apps/{name}/api/lists/{list}operatorReplaces one API list.Body: items (the whole list; [] removes it), base_version, comment, dry_run.
GET/v1/apps/{name}/api/posture Since v0.2viewerReturns the API posture summary of an application.none
GET/v1/api/inventoryviewerLists the endpoints seen in traffic.none

gRPC and XML ​

MethodPathMinimum roleWhat it doesMain fields
GET/v1/apps/{name}/api/grpcviewerReturns the stored gRPC descriptors.none
PUT/v1/apps/{name}/api/grpcoperatorStores or removes gRPC descriptors.Body: content, remove, base_version, comment, dry_run.
POST/v1/api/grpc/checkoperatorParses gRPC descriptors without saving them.Body: content.
GET/v1/apps/{name}/api/xml/contracts Since v0.2viewerLists XML contracts.none
PUT/v1/apps/{name}/api/xml/contracts/{contract} Since v0.2operatorStores 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.2operatorRemoves an XML contract.none
POST/v1/api/xml/check Since v0.2operatorChecks an XML contract without saving it.Body: kind, files, entry, root.

Keys, certificates and attestation ​

MethodPathMinimum roleWhat it doesMain fields
GET/v1/api-keysviewerLists consumer keys (secrets are never returned).none
POST/v1/api-keysoperatorCreates 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}operatorRevokes a consumer key.none
GET/v1/api/jwksviewerShows the status of fetched JWT key sets.none
GET/v1/apps/{name}/api/wssec/keys Since v0.2viewerLists WS-Security keys.none
PUT/v1/apps/{name}/api/wssec/keys/{key} Since v0.2adminUploads a WS-Security key.Body: kind, pem, role.
DELETE/v1/apps/{name}/api/wssec/keys/{key} Since v0.2adminRemoves a WS-Security key.none
GET/v1/apps/{name}/api/wssec/certs Since v0.2viewerLists WS-Security certificates.none
PUT/v1/apps/{name}/api/wssec/certs/{cert} Since v0.2operatorUploads a WS-Security certificate.Body: role, pem, base_version, comment, dry_run.
DELETE/v1/apps/{name}/api/wssec/certs/{cert} Since v0.2operatorRemoves a WS-Security certificate.none
GET/v1/apps/{name}/api/attestation/keys Since v0.2viewerLists attestation verifier keys.none
PUT/v1/apps/{name}/api/attestation/keys/{verifier}/{kind} Since v0.2adminUploads an attestation verifier key.Body: key.
DELETE/v1/apps/{name}/api/attestation/keys/{verifier}/{kind} Since v0.2adminRemoves an attestation verifier key.none
GET/v1/apps/{name}/api/attestation/devices Since v0.2viewerLists registered attested devices.none
DELETE/v1/apps/{name}/api/attestation/devices/{id} Since v0.2operatorRevokes an attested device.none
POST/v1/apps/{name}/api/attestation/check Since v0.2operatorChecks an attestation token against the settings.Body: token, method, path, query, body.

Rewrites, ownership, flows, volume and more ​

MethodPathMinimum roleWhat it doesMain fields
POST/v1/apps/{name}/api/rewrites/test Since v0.2viewerShows how a described response is rewritten.Body: method, path, location, scheme, host, name.
GET/v1/apps/{name}/api/ownership Since v0.2viewerShows object ownership learning.none
POST/v1/apps/{name}/api/ownership/reset Since v0.2operatorClears learned ownership.Body: confirm, name, node.
GET/v1/apps/{name}/api/flows/status Since v0.2viewerShows the state of business flow tracking.none
GET/v1/apps/{name}/api/flows/suggestions Since v0.2viewerLists suggested business flows.none
POST/v1/apps/{name}/api/flows/suggestions/approve Since v0.2operatorApproves flow suggestions.Body: ids, base_version, comment, dry_run.
POST/v1/apps/{name}/api/flows/once/forget Since v0.2operatorForgets one use of a one-time value.Body: flow, value, identity, name.
GET/v1/apps/{name}/api/volume Since v0.2viewerShows learned request volume limits.none
POST/v1/apps/{name}/api/volume/approve Since v0.2operatorApproves learned volume limits.none
POST/v1/apps/{name}/api/volume/reject Since v0.2operatorRejects learned volume limits.none
POST/v1/apps/{name}/api/volume/reset Since v0.2operatorResets learned volume data.none
GET/v1/apps/{name}/api/llm/usage Since v0.2viewerShows model usage counts for the application.none
POST/v1/api/llm/check Since v0.2operatorShows how a prompt text would be judged.Body: text, app.
GET/v1/apps/{name}/ssrf Since v0.2viewerReturns server-side request forgery settings.Returns the current values with base_version.
PUT/v1/apps/{name}/ssrf Since v0.2operatorChanges 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.2operatorShows how a value would be judged.Body: value, name, app.
GET/v1/apps/{name}/api/mcp Since v0.2viewerLists MCP servers and tools seen.none
POST/v1/apps/{name}/api/mcp/enforce Since v0.2operatorTurns 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