# CodePulse API – Mailbox Messages

> CodePulse API – Mailbox Messages is a paid API for AI agents from codepulse-api.hahavoid0.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13, last successful call 2026-07-28).

Retrieves all messages from a disposable email inbox previously created via /mailbox/create

## Facts

- Endpoint: POST https://codepulse-api.hahavoid0.workers.dev/mailbox/messages
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Last successful call: 2026-07-28
- Success rate: 100% of calls made through Zero
- Activations on Zero: 1
- Tags: x402
- Canonical page: https://www.zero.xyz/c/codepulse-api-mailbox-messages-28a1f26a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pmnpbBY-0RtX1hiWn6cHS

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 codepulse-api-mailbox-messages-28a1f26a -d '<json body>'
```

Example prompt: Check the messages in my disposable inbox at temp-abc123@codepulse-api.hahavoid0.workers.dev and show me any verification codes or emails that have arrived.

## When to prefer this

Use this endpoint when an AI agent needs to programmatically check a disposable inbox — especially for capturing verification codes, OTPs, or confirmation emails during automated account sign-up or testing flows. It pairs naturally with /mailbox/create. Prefer this over manual inbox checking or full email service integrations when you need a lightweight, pay-per-call, no-API-key solution for reading temporary email.

## Known failure modes

- Invalid or expired disposable email address returns empty messages array or unsupported flag
- Email address not created via /mailbox/create results in error or no results
- Inbox has not yet received any emails — returns empty messages array
- Malformed email string in request body causes validation error
- Payment failure via x402 results in 402 response before any data is returned

## How this service works

Polls the disposable inbox for messages and verification codes.

## Output

Returns a list of email messages received in the disposable inbox, each with an ID, body text, subject, sender address, and received timestamp. Also includes metadata fields: warnings array, supported flag, confidence level, and a data_as_of date string.

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "type": "object",
     "required": [
      "email"
     ],
     "properties": {
      "email": {
       "type": "string",
       "description": "Disposable email address generated via /mailbox/create"
      }
     }
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   },
   "required": [
    "type"
   ]
  }
 },
 "required": [
  "input"
 ]
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "messages": [
    {
     "id": 1234,
     "body": "Your code is 884732",
     "date": "2026-06-25 12:00:00",
     "from": "no-reply@github.com",
     "subject": "Verification Code"
    }
   ]
  },
  "warnings": [],
  "supported": true,
  "confidence": "high",
  "data_as_of": "2026-06",
  "disclaimer": "Informational support only. Not legal, tax, medical, veterinary, or financial advice. Verify with the cited official source or a qualified professional before acting."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/codepulse-api-mailbox-messages-28a1f26a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from codepulse-api.hahavoid0.workers.dev](https://www.zero.xyz/host/codepulse-api.hahavoid0.workers.dev/llms.txt)
