# WithZero Scheduler Enqueue Task (Deprecated)

> WithZero Scheduler Enqueue Task (Deprecated) is a paid API for AI agents from agents.withzero.xyz, paid per call via MPP, price unknown, status unknown (last checked 2026-09-12).

Asynchronously triggers an immediate run of a scheduled task by pulling its next_run_at forward to now — deprecated alias for POST /tasks/:id/trigger

## Facts

- Endpoint: POST https://agents.withzero.xyz/api/v1/scheduler/tasks/{id}/enqueue
- Price: price unknown
- Payment: MPP
- Status: unknown
- Last checked: 2026-09-12
- Activations on Zero: 0
- Provider: agents.withzero.xyz
- Website: https://agents.withzero.xyz
- Canonical page: https://www.zero.xyz/c/agents-withzero-xyz-withzero-scheduler-enqueue-task-deprecated-471d3910
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3eacVYe7Wbj-xU7ejyI-o

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 agents-withzero-xyz-withzero-scheduler-enqueue-task-deprecated-471d3910 -d '<json body>'
```

Example prompt: Kick off my scheduled task with ID a3f2c1d0-1234-4b56-89ab-fedcba987654 right now — don't wait for the result, just trigger it immediately.

## When to prefer this

Use this endpoint only if migrating from older code — new implementations should call POST /tasks/:id/trigger instead, which is the canonical non-deprecated replacement. Both endpoints behave identically: they trigger an async, non-blocking immediate run of a task and return without waiting for execution. Choose this over synchronous run endpoints (POST /tasks/:id/runs) when you do not need to wait for the task result and want fire-and-forget dispatch within ~1 minute.

## Known failure modes

- Task ID not found or not owned by caller — returns 404
- Task is not active — returns success with enqueued: false (no-op, not an error)
- Invalid UUID format for task ID — returns 400 validation error
- Authentication/payment failure — returns 402 or 401
- Server error during scheduling state update — returns 500

## How this service works

DEPRECATED — use POST /tasks/:id/trigger. Behaves identically (async, non-blocking). 📖 Full guide: https://scheduler.withzero.xyz/llms.txt

## Output

Returns a JSON object with task_id (UUID), status string, next_run_at (ISO timestamp or null), and enqueued boolean — true if the task's next run was successfully advanced to now, false if the task was inactive (safe no-op). The response arrives immediately without waiting for the task execution to complete.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "properties": {},
 "description": "Empty body. Triggers a run asynchronously — pulls the task's next run forward to now so the dispatch tick executes it within ~1 minute; returns immediately WITHOUT waiting for the result. Contrast POST /tasks/:id/runs (synchronous). A non-active task is a safe no-op.",
 "additionalProperties": false
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "task_id",
  "status",
  "next_run_at",
  "enqueued"
 ],
 "properties": {
  "status": {
   "type": "string"
  },
  "task_id": {
   "type": "string",
   "format": "uuid",
   "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
  },
  "enqueued": {
   "type": "boolean",
   "description": "true if next_run_at was pulled forward; false if the task was not active (no-op)."
  },
  "next_run_at": {
   "anyOf": [
    {
     "type": "string"
    },
    {
     "type": "null"
    }
   ]
  }
 },
 "additionalProperties": false
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agents-withzero-xyz-withzero-scheduler-enqueue-task-deprecated-471d3910/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.withzero.xyz](https://www.zero.xyz/host/agents.withzero.xyz/llms.txt)
