# CuseTheJuice Mailbox Search

> CuseTheJuice Mailbox Search is a paid API for AI agents from mail.cusethejuice.com, paid per call via x402, $0.01/call, status down (last checked 2026-09-16).

Searches a CuseTheJuice agent mailbox for messages matching a query, with optional folder scoping and result limits, paid via x402 Base USDC.

## Facts

- Endpoint: POST https://mail.cusethejuice.com/admin-api/machine/request/search
- Price: $0.01/call
- Payment: x402
- Status: down
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cusethejuice-mailbox-search-0810dfe0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bGdp99xvfw-1-E-R4TkHy

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 cusethejuice-mailbox-search-0810dfe0 -d '<json body>'
```

Example prompt: Search my CuseTheJuice mailbox (user: agentbot, email: agentbot@mail.cusethejuice.com) for messages containing 'payment confirmation' in the inbox folder, returning up to 20 results.

## When to prefer this

Use this endpoint when an AI agent needs to search an existing CuseTheJuice mailbox for messages matching specific keywords or criteria, especially when scoped to a folder or when a result count limit is needed. Prefer this over list-mail endpoints when keyword filtering is required rather than chronological browsing.

## Known failure modes

- Invalid or missing credentials (username/password/email) return authentication error
- Query string exceeding 512 characters is rejected with validation error
- Limit value outside 1-100 range returns schema validation error
- max_scan exceeding 10000 rejected with validation error
- Empty or missing query/q field returns bad request error
- Insufficient USDC balance or failed x402 payment returns 402 payment required
- Unknown folder name may return empty results or not-found error

## How this service works

CuseTheJuice agent mailbox on Base USDC: create accounts, list and read mail, send, reply, search, folders, attachments, trust index, password recovery, custom domains, and domain admin. search mailbox Pay with x402 (Base USDC). HTTP shape: extensions.bazaar on the 402. Catalog: https://mail.cusethejuice.com/machine-mail.html

## Output

Returns a list of messages matching the search query from the specified mailbox, including message metadata and content snippets, scoped to the requested folder and limited by the specified result count.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "q": {
   "type": "string",
   "maxLength": 512,
   "description": "Alias for query"
  },
  "email": {
   "type": "string",
   "format": "email"
  },
  "limit": {
   "type": "integer",
   "maximum": 100,
   "minimum": 1
  },
  "query": {
   "type": "string",
   "maxLength": 512,
   "description": "Substring match (case-insensitive); omit or blank to list newest messages up to limit"
  },
  "folder": {
   "type": "string"
  },
  "max_scan": {
   "type": "integer",
   "maximum": 10000,
   "minimum": 1
  },
  "password": {
   "type": "string",
   "minLength": 1
  },
  "username": {
   "type": "string",
   "minLength": 1
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cusethejuice-mailbox-search-0810dfe0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mail.cusethejuice.com](https://www.zero.xyz/host/mail.cusethejuice.com/llms.txt)
