{"openapi":"3.0.3","info":{"title":"🏓 ping-service","description":"Trivial walking-skeleton service: proves the runtime <-> service wiring end to end with a single echo tool.","x-guidance":"Trivial walking-skeleton service: proves the runtime <-> service wiring end to end with a single echo tool.","version":"1.0.0","contact":{"email":"contact@17711.xyz"}},"paths":{"/v1/ping":{"post":{"operationId":"ping","summary":"x402 client test and health check: pay, get an echo back plus the server pid ($0.002, x402)","description":"The cheapest end-to-end test of an x402 client or agent wallet: call it, get a real `402` challenge, sign and send a payment, and receive a reply -- so you can confirm your client handles the whole flow (challenge, EIP-3009 signature, settlement, response) for $0.002. Also usable as a liveness and latency probe. Echoes the request's `echo` field back verbatim, plus this process's own OS pid (which instance answered), optionally after an artificial `delay_ms` (useful only for testing concurrent dispatch). Free trial: 20 free calls per caller IP address, per tool, per 24 hours (and at most 500 free calls per window for this tool across all callers; MCP callers, whose address is not known, share a single anonymous free call). After that, every call is paid via x402 at $0.002 USDC per call.","x-price-usdc":"0.002","x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.002000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"echo":{"type":"string","description":"Arbitrary text echoed back verbatim in the response's own `echo` field."},"delay_ms":{"default":0,"description":"Testkit-only knob (not real business logic): lets a caller simulate a slow tool call, to check whether the server dispatches concurrent calls as independent tasks rather than serializing them.","type":"integer","minimum":0}},"required":["echo"]},"example":{"echo":"string","delay_ms":0}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"pong":{"type":"boolean","description":"Always `true` -- a client can use this as a trivial liveness/reachability check."},"echo":{"type":"string","description":"Echoes the request's own `echo` field back verbatim."},"pid":{"type":"integer","description":"This process's OS pid -- proves which process instance actually answered (useful behind a load balancer fronting several instances of the same service)."}},"required":["pong","echo","pid"]},"example":{"pong":false,"echo":"string","pid":0}}}},"402":{"description":"Payment required -- a free-call quota exists (default 5 calls, see PLATFORM_FREEMIUM_FREE_CALLS) before this status applies; beyond it, pay via the real x402 protocol (PAYMENT-REQUIRED response header, decode and retry with a signed PAYMENT-SIGNATURE header).","content":{"application/json":{"schema":{"type":"object","description":"x402 v2 PaymentRequired challenge","properties":{"x402Version":{"type":"integer"},"error":{"type":"string"},"resource":{"type":"object","properties":{"url":{"type":"string"},"description":{"type":"string"},"mimeType":{"type":"string"}}},"accepts":{"type":"array","items":{"type":"object","properties":{"scheme":{"type":"string"},"network":{"type":"string"},"amount":{"type":"string","description":"Token atomic units, NOT decimal USD -- see x-payment-info.price.amount for the decimal form."},"asset":{"type":"string"},"payTo":{"type":"string"},"maxTimeoutSeconds":{"type":"integer"},"extra":{"type":"object"}}}}},"required":["x402Version","accepts"]}}}},"default":{"description":"Standardized error envelope, on every non-2xx response from this fleet: {\"error\": {\"code\": <dotted string, e.g. \"request.bad_request\">, \"index\": <integer>, \"status\": <HTTP status code>, \"message\": <client-safe description>, \"debug\": <object, present only for an authorized caller>}}.","content":{"application/json":{"schema":{"type":"object","description":"ErrorEnvelope"}}}}}}}},"servers":[{"url":"/registry/ping-service"}]}