pay service
pay_serviceUse this when your task needs a paid x402 service (a data or AI API that answers 402): SWOGE pays it for you in USDC and bills the key owner (from their dollar credit, or in $SWOGE), within the limits the owner set for this API key (payments off by default; per-call cap up to $0.10; optional allowed sites). Only services of the public x402 catalogue; paid only if the service answers 200. Always send a new idempotency_key per payment: the same key never pays twice. Every attempt is written to a hash-chained audit (payment_audit).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | https URL of the paid service | |
| body | No | JSON body (POST) | |
| query | No | query parameters (GET) | |
| method | No | ||
| max_usd | No | optional: a lower cap for this call | |
| idempotency_key | Yes | 8 to 100 characters, unique per payment |