# CodePulse Webhook Poll

> CodePulse Webhook Poll 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).

Polls a previously created webhook listener to retrieve any HTTP callbacks that have been received since it was set up

## Facts

- Endpoint: POST https://codepulse-api.hahavoid0.workers.dev/webhook/poll
- 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-webhook-poll-23cfb902
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uWrO9_0Ccc5Jx8Wh5bozZ

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-webhook-poll-23cfb902 -d '<json body>'
```

Example prompt: Check my webhook listener for any callbacks that came in — the listener ID is wh_abc123.

## When to prefer this

Use this endpoint when you have already created a webhook listener via /webhook/listen and need to retrieve any HTTP callbacks it has captured. Ideal for agentic workflows that need to receive asynchronous third-party notifications (OAuth redirects, payment confirmations, CI events) without maintaining a persistent server. Prefer this over polling your own infrastructure when you need a disposable, pay-per-call webhook receiver with no setup.

## Known failure modes

- Invalid or expired webhook_id returns empty callbacks array or error
- Webhook listener was never triggered — callbacks array is empty
- Listener ID not found — may have expired or never been created
- Network timeout connecting to the workers.dev endpoint
- Malformed request body causes validation error

## How this service works

Retrieves all callback request payloads received by the listener.

## Output

Returns an array of HTTP callbacks received by the specified webhook listener, each including the request body, query parameters, HTTP method, headers, and timestamp. Also includes confidence level, data freshness metadata, warnings, and a 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_id"
     ],
     "properties": {
      "webhook_id": {
       "type": "string",
       "description": "Listener ID generated via /webhook/listen"
      }
     }
    },
    "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": {
   "callbacks": [
    {
     "body": {
      "code": "oauth_code_123"
     },
     "query": {},
     "method": "POST",
     "headers": {},
     "timestamp": "2026-06-25T12:00:00Z"
    }
   ]
  },
  "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-webhook-poll-23cfb902/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)
