# CodePulse API – Send Email Notification

> CodePulse API – Send Email Notification 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-14, last successful call 2026-07-28).

Sends a transactional email to a specified recipient with a custom subject and body (HTML supported) via Resend, paid per-call with USDC on Base.

## Facts

- Endpoint: POST https://codepulse-api.hahavoid0.workers.dev/notify/email
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- 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-send-email-notification-84f860a1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8i4aOGDMvCjlbC5X702hv

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-send-email-notification-84f860a1 -d '<json body>'
```

Example prompt: Send an email to alice@example.com with the subject 'Your order has shipped' and the body 'Hi Alice, your package is on its way and will arrive by Friday. Thanks for your order!'

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call email delivery capability with no subscription or API key management — ideal for AI agents that need to send transactional or notification emails on demand, billed per use in USDC via the x402 protocol on Base. Prefer over full email platforms when sending low-volume, event-driven emails without infrastructure overhead.

## Known failure modes

- Invalid recipient email address format causes failure
- Missing required fields (to, subject, body) returns a validation error
- Invalid or missing Resend API key if worker config is not set up
- Network or Resend service outage causes delivery failure
- Insufficient USDC balance to cover the $0.02 per-call fee

## How this service works

Sends automated email notifications using the Resend API.

## Output

A JSON object containing a success boolean, a unique emailId string confirming delivery was queued, a confidence rating, an optional warnings array, and a disclaimer note. Returns supported:true when the operation was handled correctly.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "to",
      "subject",
      "body"
     ],
     "properties": {
      "to": {
       "type": "string",
       "description": "Recipient email address"
      },
      "body": {
       "type": "string",
       "description": "Email body text (HTML supported)"
      },
      "api_key": {
       "type": "string",
       "description": "Optional Resend API key (if empty, uses worker config)"
      },
      "subject": {
       "type": "string",
       "description": "Email subject line"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "emailId": "id_123",
   "success": true
  },
  "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-send-email-notification-84f860a1/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)
