# CodePulse API – Webhook Listener

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

Creates a temporary webhook endpoint and returns a unique callback URL that can receive incoming HTTP POST payloads for agent workflows.

## Facts

- Endpoint: POST https://codepulse-api.hahavoid0.workers.dev/webhook/listen
- 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-webhook-listener-fb1a6d2f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TcpfWYb0maqgrB2fFm7k3

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-webhook-listener-fb1a6d2f -d '<json body>'
```

Example prompt: Set up a webhook listener for me so I can receive incoming POST payloads — I need a unique callback URL returned right away that I can give to an external service.

## When to prefer this

Choose this endpoint when you need to quickly provision a callback URL for receiving HTTP POST webhooks from external services without managing your own server infrastructure. It is ideal for agent workflows that need to listen for async events, test integrations, or bridge third-party services to an agent pipeline, especially when no persistent server is available.

## Known failure modes

- Invalid body type enum value (not json/form-data/text) returns validation error
- Missing required 'input' wrapper object causes schema rejection
- Attempting a method other than POST is rejected by the const constraint
- Cloudflare Worker cold start may add latency on first call
- Payment failure via x402/USDC results in 402 response and no resource created

## How this service works

Generates a unique callback URL. Any POST request sent to this URL will be recorded.

## Output

Returns a unique webhook ID (e.g. wh_38f2a28189c4) and a publicly accessible callback URL that external services can POST payloads to, along with a confidence rating and any warnings about the request.

## 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",
     "properties": {}
    }
   },
   "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": {
   "webhook_id": "wh_38f2a28189c4",
   "callback_url": "https://codepulse-api.hahavoid0.workers.dev/webhook-callback/wh_38f2a28189c4"
  },
  "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-webhook-listener-fb1a6d2f/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)
