# Clone Task Spec into Fresh Template

> Clone Task Spec into Fresh Template is a paid API for AI agents from agents.withzero.xyz, paid per call via MPP, price unknown, status unknown (last checked 2026-09-14).

Clones an existing task's configuration spec into a new template, with all environment variable values masked for safety.

## Facts

- Endpoint: POST https://agents.withzero.xyz/api/v1/scheduler/tasks/clone
- Price: price unknown
- Payment: MPP
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Provider: agents.withzero.xyz
- Website: https://agents.withzero.xyz
- Canonical page: https://www.zero.xyz/c/agents-withzero-xyz-clone-task-spec-into-fresh-template-3b7876f0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7jGXXX2Ntx5750x6QNDGb

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

Example prompt: Clone my existing task (ID: 3f2a1b4c-5d6e-7f8a-9b0c-1d2e3f4a5b6c) into a fresh template so I can use its configuration to set up a new scheduled task — make sure the env values are masked.

## When to prefer this

Use this endpoint when you want to replicate or reuse the configuration of an existing (including deleted or completed) scheduled task without exposing sensitive environment variable values. Prefer this over manually reconstructing a task spec, especially when the original task may no longer be active. It is the right choice any time you need to template out a new task from an old one safely.

## Known failure modes

- Invalid or malformed from_task_id UUID returns a 400 validation error
- Source task not found or caller lacks ownership proof returns a 404 or 403
- Service unavailable or internal error returns a 500

## 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 full task specification object (runtime, source, entrypoint, dependencies, LLM config, artifacts, max_runtime_sec, max_sibling_calls, max_amount_usdc_micros, notify_email, end_at, optional schedule cron/timezone, optional tool_list, and env keys with values masked) that can be used as a template for creating a new task.

## 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",
  "max_amount_usdc_micros",
  "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"
  },
  "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/agents-withzero-xyz-clone-task-spec-into-fresh-template-3b7876f0/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)
