# AgentDiet Email Endpoint

> AgentDiet Email Endpoint is a paid API for AI agents from status.agentdiet.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-22).

Retrieves email-related context distillation or email lookup data via the AgentDiet token-compression platform

## Facts

- Endpoint: GET https://status.agentdiet.dev/v1/email?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentdiet-email-endpoint-d63399bd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rGCH6aBF9gfqDYMvq8nAT

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 agentdiet-email-endpoint-d63399bd
```

Example prompt: Can you use AgentDiet to look up and distill the context for the email address john.doe@example.com, so I get a compressed result that saves on tokens?

## When to prefer this

Choose this endpoint when you need to retrieve email-related data with built-in context compression, specifically within an A2A or MCP agent pipeline that benefits from reduced token usage. It is particularly useful when you need verifiable ROI proof of compression and are willing to pay micro-amounts in USDC per call via x402 on Base.

## Known failure modes

- Missing or invalid email query parameter returns empty or error data object
- Payment failure (x402) if USDC payment on Base is not settled correctly
- Endpoint may return status other than 'ok' if the email is unresolvable or malformed
- Network or node availability issues given this is a distributed 25-node infrastructure
- Schema mismatch if caller sends incorrect HTTP method or input type

## How this service works

Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://status.agentdiet.dev settling in USDC on Base.

## Output

Returns a JSON object with a `data` field containing the email-related result, a `status` field (e.g. 'ok'), and a `roi_proof` object showing the compression ratio percentage (e.g. 91.4%) achieved by the distillation.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "POST"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "email": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {},
  "status": "ok",
  "roi_proof": {
   "compression_ratio_pct": 91.4
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentdiet-email-endpoint-d63399bd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from status.agentdiet.dev](https://www.zero.xyz/host/status.agentdiet.dev/llms.txt)
