x402_pay
Execute paid x402 calls via Floe proxy: Floe pays vendor in USDC from agent's balance/credit and returns response plus metering headers. Use idempotency_key to prevent double payment.
Instructions
Execute a paid x402 call through the Floe proxy: Floe pays the vendor in USDC from the calling agent's balance/credit (subject to spend limits, budgets, and allowlist) and returns the vendor's response plus the X-Floe-* metering headers (cost, budget advisory, settled receipt). Pass idempotency_key (Stripe-style) so retries never double-pay. Use estimate_x402_cost or x402_forecast FIRST. Requires an agent key (floe_...).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The x402 vendor URL to call. | |
| body | No | Raw request body string (JSON-encode it yourself for JSON APIs). | |
| method | No | HTTP method (default GET). | |
| headers | No | Extra request headers to forward to the vendor (payment/framing headers are stripped server-side). | |
| idempotency_key | No | Idempotency key: a replayed call returns the cached response instead of paying again (FLO-548). |