Evaluate agent payment policy from query parameters
Changed onGET variant of the payment preflight endpoint.
get/api/agent/can-pay
Request
- Base URL: https://ontarioprotocol.com
- URL: https://ontarioprotocol.com/api/agent/can-pay
- Auth: none required
Query parameters
endpointstring required
Paid API endpoint URL the agent wants to evaluate before payment.
max_usdcstring
Maximum USDC-denominated amount the agent policy allows for this call.
agent_policy'strict' | 'standard' | 'permissive'
Named agent payment policy profile to apply to the decision.
verify_liveboolean
Whether Ontario should perform a fresh live verification before deciding.
require_audit_receiptboolean
true requests a settlement-backed receipt handoff in addition to the free policy decision.
Response
Payment decision
Changes
- info
added the new optional
queryrequest parameterrequire_audit_receipt - info
added the optional property
to the response with the status
- info