Evaluate whether an agent should pay an endpoint

Free pre-payment policy decision for AI agents deciding whether to pay an x402 endpoint.

post/api/agent/can-pay

Request body

agent_policy'strict' | 'standard' | 'permissive'
endpointstring required

Paid API endpoint URL the agent wants Ontario to inspect before payment.

max_usdcstring
require_audit_receiptboolean

Set true only when the caller explicitly needs the optional 0.002 USDC settlement-backed evidence receipt after an allow decision.

verify_liveboolean

Response

Payment decision

agent_policystring
auditable_paid_continuationobject

Optional 0.002 USDC receipt path. It is recommended only after an allow decision and an explicit require_audit_receipt request.

decision'allow' | 'review' | 'deny'
declared_price_usdcnumber nullable
endpointstring
max_usdcnumber nullable
reasonstring
reasonsstring[]
recommendationsobject[]
report_integrity_okboolean
warningsstring[]

Changes

Changed in 1 of the 3 revisions of this API.2

    • added the new optional request property require_audit_receipt

      new-optional-request-property

    • added the optional property auditable_paid_continuation to the response with the 200 status

      response-optional-property-added