# Enable or Rotate Task Webhook Secret

> Enable or Rotate Task Webhook Secret is a free API for AI agents from scheduler.withzero.xyz, Free, status unknown (last checked 2026-09-11, last successful call 2026-07-23).

Generates or rotates a one-time-shown webhook secret for a scheduled task, enabling walletless trigger authentication via Bearer token.

## Facts

- Endpoint: PUT https://scheduler.withzero.xyz/api/v1/tasks/{id}/webhook
- Price: Free
- Status: unknown
- Last checked: 2026-09-11
- Last successful call: 2026-07-23
- Success rate: 95% of calls made through Zero
- Activations on Zero: 59
- Provider: scheduler.withzero.xyz
- Website: https://scheduler.withzero.xyz
- Canonical page: https://www.zero.xyz/c/scheduler-withzero-xyz-enable-or-rotate-task-webhook-secret-e257468a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ARvhN_dmdG8D90zeVviN-

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 scheduler-withzero-xyz-enable-or-rotate-task-webhook-secret-e257468a -d '<json body>'
```

Example prompt: Enable the webhook trigger for my scheduler task abc-123 so I can fire it from an external service without needing a wallet — give me the new bearer secret.

## When to prefer this

Use this endpoint when you need to allow an external system or agent to trigger a specific scheduled task via HTTP POST without requiring a crypto wallet or MPP payment flow. It is the correct choice when setting up webhook-based integrations, rotating a compromised secret, or enabling the webhook feature for the first time on a task.

## Known failure modes

- Task ID not found — 404 if the specified task does not exist or is not owned by the caller
- Unauthorized — 401/403 if the caller lacks proof of task ownership
- Secret already shown and not re-retrievable — rotating again invalidates prior secret
- Service unavailable — 503 if the scheduler backend is unreachable

## How this service works

Enable or rotate the task webhook secret (returned ONCE). Present it as Authorization: Bearer to POST /tasks/:id/webhook to trigger a run without a wallet. 📖 Full guide: https://scheduler.withzero.xyz/llms.txt

## Output

Returns a one-time-visible webhook secret string and a boolean 'enabled' flag. The secret must be captured immediately as it will not be shown again; it is used as a Bearer token in the Authorization header when calling POST /tasks/:id/webhook to trigger runs without a wallet.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "properties": {},
 "description": "Empty body. Enables or rotates the task webhook secret.",
 "additionalProperties": false
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "secret",
  "enabled"
 ],
 "properties": {
  "secret": {
   "type": "string",
   "description": "The webhook secret — shown ONCE. Present it as `Authorization: Bearer <secret>` to POST /api/v1/tasks/:id/webhook."
  },
  "enabled": {
   "type": "boolean"
  }
 },
 "additionalProperties": false
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scheduler-withzero-xyz-enable-or-rotate-task-webhook-secret-e257468a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from scheduler.withzero.xyz](https://www.zero.xyz/host/scheduler.withzero.xyz/llms.txt)
