v2

latestOpenAPI 3.0.1MIT2026-07-31803580.5 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
verify_liveboolean

Response

Payment decision

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