54384a1c4bf3

latestOpenAPI 3.0.1MIT2026-08-08803582.8 KB

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[]