# Clone Task Spec into Fresh Template

> Clone Task Spec into Fresh Template is a free API for AI agents from scheduler.withzero.xyz, Free, status unknown (last checked 2026-09-14, last successful call 2026-07-20).

Clones an existing task's spec (schedule, runtime, source, entrypoint, etc.) into a new template with environment variable values masked.

## Facts

- Endpoint: POST https://scheduler.withzero.xyz/api/v1/tasks/clone
- Price: Free
- Status: unknown
- Last checked: 2026-09-14
- Last successful call: 2026-07-20
- Success rate: 100% of calls made through Zero
- Activations on Zero: 3
- Provider: scheduler.withzero.xyz
- Website: https://scheduler.withzero.xyz
- Canonical page: https://www.zero.xyz/c/scheduler-withzero-xyz-clone-task-spec-into-fresh-template-17a77676
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bj84gOjOS-SpHKDuw18H-

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-clone-task-spec-into-fresh-template-17a77676 -d '<json body>'
```

Example prompt: Clone the cron task with ID a3f2c1b0-1234-4abc-ab12-000000000001 into a fresh template so I can reuse its schedule and runtime settings — keep the env values masked.

## When to prefer this

Use this endpoint when you want to reuse the configuration of an existing task (including deleted or completed ones) as a starting point for a new task, without having to re-specify all fields. Prefer this over manually constructing a task spec when you know a good reference task already exists and want to safely copy its settings while masking sensitive env values.

## Known failure modes

- 404 if from_task_id does not exist or is not accessible
- 400 if from_task_id is not a valid UUID format
- 401/403 if authentication or ownership proof is missing or invalid
- 500 if internal cloning or KMS operation fails

## How this service works

Clone an existing task spec into a fresh template (env values masked). 📖 Full guide: https://scheduler.withzero.xyz/llms.txt

## Output

Returns a task spec template object containing the source task's schedule (cron expression and timezone), runtime, source, entrypoint, dependencies, tool_list, llm config, max_runtime_sec, max_sibling_calls, max_amount_usdc_micros, notify_email, and end_at. The env field is included but with values masked/redacted for security.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "from_task_id"
 ],
 "properties": {
  "from_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)$",
   "description": "Source task to clone the spec from. May be deleted or completed."
  }
 },
 "additionalProperties": false
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "runtime",
  "source",
  "entrypoint",
  "dependencies",
  "llm",
  "artifacts",
  "max_runtime_sec",
  "max_sibling_calls",
  "notify_email",
  "end_at"
 ],
 "properties": {
  "env": {
   "type": "object",
   "propertyNames": {
    "type": "string"
   },
   "additionalProperties": {
    "type": "string"
   }
  },
  "llm": {
   "anyOf": [
    {},
    {
     "type": "null"
    }
   ]
  },
  "end_at": {
   "anyOf": [
    {
     "type": "string"
    },
    {
     "type": "null"
    }
   ]
  },
  "source": {
   "type": "string"
  },
  "runtime": {
   "type": "string"
  },
  "schedule": {
   "type": "object",
   "required": [
    "cron",
    "timezone"
   ],
   "properties": {
    "cron": {
     "type": "string"
    },
    "timezone": {
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "artifacts": {
   "anyOf": [
    {},
    {
     "type": "null"
    }
   ]
  },
  "tool_list": {
   "type": "array",
   "items": {
    "type": "string"
   }
  },
  "entrypoint": {
   "type": "string"
  },
  "billing_rail": {
   "enum": [
    "direct",
    "zeroclick",
    "account"
   ],
   "type": "string"
  },
  "dependencies": {
   "anyOf": [
    {},
    {
     "type": "null"
    }
   ]
  },
  "notify_email": {
   "anyOf": [
    {
     "type": "string"
    },
    {
     "type": "null"
    }
   ]
  },
  "max_runtime_sec": {
   "type": "number"
  },
  "max_sibling_calls": {
   "type": "number"
  },
  "max_amount_usdc_micros": {
   "type": "string"
  }
 },
 "additionalProperties": false
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scheduler-withzero-xyz-clone-task-spec-into-fresh-template-17a77676/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)
