{"uid":"cap_nw6lHnJ6p9wHbAJgroVAs","slug":"agentshelf-ip-echo-2ef42c53","name":"AgentShelf IP Echo","description":"Call when an agent needs the caller IP address and IP version. GET with an empty body is the call. Only the configured proxy hop of X-Forwarded-For is trusted, otherwise X-Real-IP. No DNS. Send JSON {}. Exact $0.001 USDC on Base. Try unpaid POST /v1/sandbox/ip-echo first.","url":"https://agentshelf.syntexa.ch/v1/ip-echo?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","examples":[{}],"properties":{},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","examples":[{"ip":"203.0.113.10","ok":true,"billed":true,"source":"x-forwarded-for","version":4,"warnings":[],"receipt_id":"rcpt_01EXAMPLE000000000000000","trusted_hops":1}],"required":["ok","receipt_id","billed","ip","version","source","trusted_hops"],"properties":{"ip":{"type":"string","examples":["203.0.113.10"]},"ok":{"type":"boolean","const":true,"examples":[true]},"billed":{"type":"boolean","examples":[true]},"source":{"enum":["x-forwarded-for","x-real-ip"],"type":"string","examples":["x-forwarded-for"]},"version":{"enum":[4,6],"type":"number","examples":[4]},"warnings":{"type":"array","items":{"type":"string"},"default":[],"examples":[[]]},"receipt_id":{"type":"string","examples":["rcpt_01EXAMPLE000000000000000"]},"trusted_hops":{"type":"integer","examples":[1],"exclusiveMinimum":0}},"additionalProperties":false}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_WgTgi-glLnquYjLGwmOq_","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the caller's public IP address and IP version (IPv4 or IPv6) as seen by the server, using trusted proxy headers.","exampleAgentPrompt":"What's the public IP address and IP version that you're calling from right now?","exampleUseCases":[{"title":"Egress IP audit for agent fleet","prompt":"Can you find out what public IP address and IP version this agent session is using when making outbound calls? I need to know the actual egress IP for our firewall whitelist."},{"title":"Detecting IPv4 vs IPv6 connectivity","prompt":"Check whether this agent is connecting to the internet over IPv4 or IPv6 right now — I need to know which protocol version is being used."},{"title":"Proxy hop verification for agent","prompt":"What IP address does the server see for this agent, and is it coming through a forwarded proxy header or a direct connection via X-Real-IP?"}],"resultDescription":"A JSON object containing: 'ip' (the resolved public IP string), 'version' (4 or 6), 'source' ('x-forwarded-for' or 'x-real-ip'), 'trusted_hops' (integer), 'ok' (true), 'billed' (boolean), 'receipt_id' (payment receipt string), and 'warnings' (array of any advisory strings).","failureModes":["Payment not provided or incorrect amount — endpoint requires exactly $0.001 USDC on Base; unpaid calls return a 402 error","Untrusted X-Forwarded-For hops beyond the configured proxy depth are ignored, which may result in an unexpected IP being returned","No DNS resolution is performed, so hostnames are never returned — only raw IP addresses","Malformed or non-empty JSON body may be rejected since the body must be an empty object {}"],"whenToPreferThis":"Use this endpoint when an AI agent needs to programmatically discover its own egress/public IP address and IP version at runtime, especially in environments behind proxies where only trusted X-Forwarded-For hops or X-Real-IP are reliable. It is preferable over generic HTTP inspection tools when you need a structured JSON response with IP version discrimination and a payment receipt. Use the free sandbox endpoint /v1/sandbox/ip-echo for testing before paying.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-22T23:25:54.067Z","isFirstParty":false,"canonicalSlug":"agentshelf-ip-echo-2ef42c53"}