# AgentShelf IP Echo

> AgentShelf IP Echo is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.001/call, status down (last checked 2026-11-22).

Returns the caller's public IP address and IP version (IPv4 or IPv6) as seen by the server, using trusted proxy headers.

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/ip-echo?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: down
- Last checked: 2026-11-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentshelf-ip-echo-2ef42c53
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nw6lHnJ6p9wHbAJgroVAs

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agentshelf-ip-echo-2ef42c53 -d '<json body>'
```

Example prompt: What's the public IP address and IP version that you're calling from right now?

## When to prefer this

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.

## Known failure modes

- 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 {}

## How this service works

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.

## Output

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).

## Request schema (JSON Schema)

```json
{
 "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
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentshelf-ip-echo-2ef42c53/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshelf.syntexa.ch](https://www.zero.xyz/host/agentshelf.syntexa.ch/llms.txt)
