# CuseTheJuice Mailbox Search (Machine API)

> CuseTheJuice Mailbox Search (Machine API) 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 specific mailbox on mail.cusethejuice.com for messages matching given query parameters via machine API

## Facts

- Endpoint: POST https://mail.cusethejuice.com/admin-api/machine/mailboxes/:email/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/mail-cusethejuice-com-fc45a001
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Ot9AhLEIks8EQdD6VPLs-

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 mail-cusethejuice-com-fc45a001 -d '<json body>'
```

Example prompt: Search the x402@cusethejuice.com mailbox on CuseTheJuice for any emails matching 'invoice' using the machine API.

## When to prefer this

Use this endpoint when an AI agent needs to programmatically search a specific CuseTheJuice mailbox for messages matching certain criteria, particularly when operating in a machine-to-machine context with x402 micropayment support on Base USDC. Prefer this over list-messages when filtering is needed upfront.

## Known failure modes

- Email address not found or mailbox does not exist — 404 response
- Invalid or missing query parameters — 400 bad request
- Payment not provided or insufficient — 402 payment required
- Unauthorized access to mailbox — 403 forbidden
- Mailbox temporarily unavailable — 503 service unavailable

## How this service works

CuseTheJuice agent email on Base USDC: create accounts, list and read email, send, reply, search, folders, attachments, trust index, password recovery, custom domains, and domain admin. 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 mailbox messages that match the provided search query parameters, including message metadata and relevant fields from the mailbox.

## 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/mail-cusethejuice-com-fc45a001/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)
