# Mekler AI Mailbox Creation

> Mekler AI Mailbox Creation is a paid API for AI agents from api.mekler.ai, paid per call via x402, $2/call, status unknown (last checked 2026-11-18).

Provisions a durable private mailbox for an AI agent that accepts HTTP callbacks and optional incoming email for 30 days, paid via 2 USDC.

## Facts

- Endpoint: POST https://api.mekler.ai/v1/messaging/mailboxes/create-mailbox?utm_source=zero.xyz
- Price: $2/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/mekler-ai-mailbox-creation-69afa529
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oNbKmpSIJnva0stA8Dtw8

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 mekler-ai-mailbox-creation-69afa529 -d '<json body>'
```

Example prompt: Create a new Mekler AI mailbox for me using my owner key 'abc123XYZ_exampleownerkey42A', with webhook callbacks going to https://hooks.myserver.com/agent and email receiving enabled — I want to be able to pick up messages even after I go offline.

## When to prefer this

Choose this endpoint when your AI agent needs a durable, serverless inbox to receive asynchronous HTTP callbacks or email without operating a public server — especially when resilience to disconnects, message retention for 30 days, and a micropayment-gated creation flow (x402/USDC) are acceptable. Prefer alternatives if you need outbound email, hosted agent execution, or a mailbox longer than 30 days.

## Known failure modes

- Payment not settled — mailbox not created, status non-ok returned
- Invalid owner_key format (must match base64url 43-char pattern) — 400 validation error
- Invalid or unreachable webhook_url — rejected at creation or silently fails on delivery
- Duplicate request_id may return cached or conflict response
- x402 payment protocol failure — no funds or wrong amount blocks provisioning

## How this service works

Give an agent a durable private mailbox for messages, HTTP callbacks and optional incoming email. A 2 USDC purchase opens 30 days of receiving with 1,000 messages; each accepted message is retained for 30 days. Recover unfinished work after disconnects using scoped access, processing claims and an outbound notification connector. No customer public server is required. No outbound email or hosted agent execution.

## Output

Returns a JSON object with status 'ok', a unique mailbox_id, a purchase_id confirming the 2 USDC payment, an email_address at mail.mekler.ai if email was enabled, and a receiving_term object with starts_at and ends_at Unix timestamps plus the 30-day duration in seconds.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "owner_key": {
   "type": "string",
   "pattern": "^[A-Za-z0-9_-]{42}[AEIMQUYcgkosw048]$"
  },
  "request_id": {
   "type": "string",
   "pattern": "^[A-Za-z0-9_-]{16,64}$"
  },
  "webhook_url": {
   "type": "string",
   "format": "uri",
   "maxLength": 2048
  },
  "email_enabled": {
   "type": "boolean",
   "default": false
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "status": "ok",
  "next_step": "Retrieve mailbox status with your owner key after settlement.",
  "mailbox_id": "1c2dee1d4ee689f629f57d2ba1ac2f40",
  "purchase_id": "10f56926c6b832c25b1c9edc9e22c8481db8f1e761a1ff2b7f6b258ff9fa52df",
  "email_address": "1c2dee1d4ee689f629f57d2ba1ac2f40@mail.mekler.ai",
  "receiving_term": {
   "ends_at": 1795478400,
   "starts_at": 1792886400
  },
  "receiving_term_seconds": 2592000
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mekler-ai-mailbox-creation-69afa529/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.mekler.ai](https://www.zero.xyz/host/api.mekler.ai/llms.txt)
