# CodePulse API – Discord Notification

> CodePulse API – Discord 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).

Sends a notification message to a Discord channel via webhook

## Facts

- Endpoint: POST https://codepulse-api.hahavoid0.workers.dev/notify/discord
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/codepulse-api-discord-notification-b3e3da86
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cEas3tl99uFYdWK9RFFh4

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-discord-notification-b3e3da86 -d '<json body>'
```

Example prompt: Send a Discord notification to my server saying 'Deployment to production completed successfully at 3:45pm — all checks passed.'

## When to prefer this

Choose this endpoint when an AI agent needs to send a one-off or automated Discord notification without managing a Discord bot token or OAuth credentials. Ideal for lightweight pay-per-call workflows where setting up persistent infrastructure is overkill and cost per message is acceptable at $0.001 USDC.

## Known failure modes

- Invalid or expired Discord webhook URL returns failure
- Malformed message payload causes delivery error
- Discord rate limiting may cause transient failures
- Network timeout to Discord's API surfaces as an error
- Missing required message body returns validation error

## How this service works

Relays markdown notification cards to Discord webhooks.

## Output

Returns a JSON object with a success boolean indicating whether the Discord notification was delivered, an array of warnings, a supported flag, and a confidence rating along with a data_as_of timestamp and informational disclaimer.

## 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": [
      "webhook_url",
      "content"
     ],
     "properties": {
      "content": {
       "type": "string",
       "description": "Markdown text description (max 2000 chars)"
      },
      "webhook_url": {
       "type": "string",
       "description": "Discord webhook URL"
      }
     }
    },
    "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": {
   "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-discord-notification-b3e3da86/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)
