# cron402 Scheduled Webhook (cron job creator)

> cron402 Scheduled Webhook (cron job creator) is a paid API for AI agents from cron402-api.user-defaults.workers.dev, paid per call via x402, $0.008/call, status unknown (last checked 2026-09-15).

Creates a scheduled cron job that calls a specified webhook URL on a recurring schedule, with optional run limits and result notifications.

## Facts

- Endpoint: POST https://cron402-api.user-defaults.workers.dev/v1/crons
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cron402-scheduled-webhook-cron-job-creator-cbb01fee
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AnMGaFA9btwSoWZqDL_Q1

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 cron402-scheduled-webhook-cron-job-creator-cbb01fee -d '<json body>'
```

Example prompt: Set up a cron job that calls my webhook at https://myapp.example.com/process via POST every hour, for a maximum of 100 runs, and notify me at https://myapp.example.com/notify after each execution.

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-use cron scheduling service without managing your own infrastructure. It is ideal for agents or developers who want to trigger webhooks on a recurring schedule with minimal setup, especially in serverless or agentic workflows where spinning up a dedicated scheduler is overkill. Prefer it over self-hosted cron or cloud scheduler services when you want instant setup, per-execution pricing, and x402 micropayment compatibility.

## Known failure modes

- Invalid cron schedule expression — returns validation error
- Target URL is unreachable or malformed — job may be created but runs fail silently
- Insufficient credits — job stops executing when credits are exhausted
- maxRuns exceeded — job halts after reaching the limit
- notifyUrl is unreachable — run results are not delivered but job continues
- Payment failure — job not created if x402 payment is not completed

## How this service works

cron402: create a cron job that calls your webhook on a schedule. $0.008 includes 1 run credit; each subsequent run costs 1 credit (top up at /v1/crons/topup/{pack}).

## Output

Returns a confirmation of the created cron job including its ID, the configured schedule, target URL, max run count, and remaining credits. Subsequent runs consume 1 credit each; top-up is available via a separate endpoint.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "target": {
   "type": "object",
   "required": [
    "url"
   ],
   "properties": {
    "url": {
     "type": "string",
     "format": "uri",
     "maxLength": 2048
    },
    "body": {
     "type": "string",
     "maxLength": 16384
    },
    "method": {
     "enum": [
      "GET",
      "POST"
     ],
     "type": "string",
     "default": "POST"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string",
      "maxLength": 256
     }
    }
   },
   "additionalProperties": false
  },
  "maxRuns": {
   "type": "integer",
   "maximum": 10000,
   "minimum": 1
  },
  "schedule": {
   "type": "string",
   "maxLength": 64,
   "minLength": 9
  },
  "notifyUrl": {
   "type": "string",
   "format": "uri",
   "maxLength": 2048,
   "description": "Optional webhook that receives a POST after every execution with the run result"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cron402-scheduled-webhook-cron-job-creator-cbb01fee/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cron402-api.user-defaults.workers.dev](https://www.zero.xyz/host/cron402-api.user-defaults.workers.dev/llms.txt)
