# Email Guard

> Email Guard is a paid API for AI agents from agent402.tools, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-30).

Analyzes a raw email or its parsed parts and returns structured observations with evidence and text offsets to help agents triage mail — no score, no verdict, just findings.

## Facts

- Endpoint: POST https://agent402.tools/api/email-guard?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/email-guard-e66aa547
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TI0jxRnNyYk3-ZQrujFfM

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 email-guard-e66aa547 -d '<json body>'
```

Example prompt: I just received this raw email and need you to analyze it before I act on it — here's the full RFC 5322 message including headers and body. Give me structured observations with evidence and the exact offsets where you found them, but no spam score or verdict.

## When to prefer this

Choose this endpoint when you need structured, evidence-backed observations about an email without a black-box verdict — ideal for agentic workflows where the agent itself decides what to do with the findings. Prefer it over spam filters when you need explainability, text offsets, and raw evidence rather than a simple pass/fail score. Well-suited for triage pipelines that must handle raw RFC 5322 messages including multipart and encoded payloads.

## Known failure modes

- Payload exceeds 1 MB cap — request rejected
- Both 'raw' and parts fields submitted simultaneously — conflict error
- Malformed RFC 5322 message that cannot be parsed — parse error returned
- Empty or missing required fields in parts mode — validation error
- Base64 or quoted-printable decoding failure on malformed encodings

## How this service works

Read one email the way an agent that triages mail should before acting on it: observations with evidence and offsets, no score and no verdict. Send the raw RFC 5322 message (multipart, base64 and quoted-printable decoded, 1 MB cap) or the parts you already hold (subject, from, replyTo, html, text, links).

## Output

A JSON object containing a list of structured observations about the email, each with supporting evidence (quoted excerpts) and character offsets locating the finding within the message. No aggregate score or final verdict is returned — findings are raw and factual for the agent to reason over.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "raw": {
   "type": "string",
   "description": "The whole RFC 5322 message as received, headers and body, multipart allowed (max 1 MB). Send this or the parts below, not both."
  },
  "from": {
   "type": "string",
   "description": "From header, display name and address (parts mode)"
  },
  "html": {
   "type": "string",
   "description": "The text/html part (parts mode, max 1 MB)"
  },
  "text": {
   "type": "string",
   "description": "The text/plain part (parts mode, max 1 MB)"
  },
  "links": {
   "type": "array",
   "items": {
    "oneOf": [
     {
      "type": "string"
     },
     {
      "type": "object",
      "required": [
       "href"
      ],
      "properties": {
       "href": {
        "type": "string"
       },
       "text": {
        "type": "string"
       }
      }
     }
    ]
   },
   "description": "Links already extracted from the mail, as hrefs or { href, text } (parts mode, max 500)"
  },
  "replyTo": {
   "type": "string",
   "description": "Reply-To header (parts mode)"
  },
  "subject": {
   "type": "string",
   "description": "Subject header (parts mode)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "note": "full example in /openapi.json",
  "truncated": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/email-guard-e66aa547/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
