← capabilities

Openapi Payload-validate

Validate one caller-supplied JSON request or response payload against the documented JSON schema for one exact OpenAPI or Swagger operation. Forest fetches only the supplied public specification, never invokes the described API operation, resolves only bounded local references, and reuses the same deterministic schema subset as json.validate.

Forest exposes this capability as a deterministic machine-readable API for software agents. Discovery is free; execution uses the canonical paid endpoint below. The live x402 challenge is the source of truth for payment terms.

$0.002 / callPOST /openapi/payload-validatex402 · Base

Typical agent tasks

This capability is intended for bounded machine decisions such as:

What Forest guarantees

Boundaries

Machine contract

The request and response schemas are published in the canonical OpenAPI document. This page shows a representative input from the same production manifest.

Input example

{ "url": "https://http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run/openapi.json", "method": "POST", "path": "/url/preflight", "part": "request", "payload": { "url": "https://http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run/health" } }

Canonical paid endpoint

https://http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run/openapi/payload-validate

OpenAPI contract →

Related capabilities