{"uid":"cap_7jGXXX2Ntx5750x6QNDGb","slug":"agents-withzero-xyz-clone-task-spec-into-fresh-template-3b7876f0","name":"Clone Task Spec into Fresh Template","description":"Clone an existing task spec into a fresh template (env values masked). 📖 Full guide: https://scheduler.withzero.xyz/llms.txt","url":"https://agents.withzero.xyz/api/v1/scheduler/tasks/clone","method":"POST","headers":{},"bodySchema":{"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},"responseSchema":{"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},"example":null,"exampleRequest":null,"tags":[],"displayCostAmount":"0.000000","displayCostAsset":"USD","priceDynamic":false,"priceHint":null,"priceStatus":"unknown_unparsed","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"unknown","summary":"price unknown","primary":{"kind":"unknown","protocol":"mpp","network":"tempo","amountUsd":null,"per":"call","confidence":"unknown"},"accepted":[{"kind":"unknown","protocol":"mpp","network":"tempo","amountUsd":null,"per":"call","confidence":"unknown"}]},"paymentMethods":[{"uid":"pm_8_v0f07cCq5090tLiLFdm","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.000000","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":"agents.withzero.xyz","brandSlug":"agents-withzero-xyz-mpp","brandBaseUrl":"https://agents.withzero.xyz","brandDocsUrl":null,"whatItDoes":"Clones an existing task's configuration spec into a new template, with all environment variable values masked for safety.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Reuse a completed task's config","prompt":"I have a completed data-processing task with ID a1b2c3d4-e5f6-7890-abcd-ef1234567890 — can you clone its spec into a template so I can create a new task with the same settings?"},{"title":"Scaffold new task from deleted task","prompt":"I deleted a task last week but I want to recreate it. Its ID was 550e8400-e29b-41d4-a716-446655440000 — can you clone its spec so I have the config to work from again?"},{"title":"Copy agent task for a new environment","prompt":"Clone the spec from task 6ba7b810-9dad-11d1-80b4-00c04fd430c8 into a fresh template so I can tweak it for a different environment — I don't need the actual env variable values, just the structure."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:44:12.477Z","isFirstParty":true}