---
title: "POST Create a new automation"
description: "Creates a new automation for the specified task. Automations are used to collect and verify evidence automatically."
last_updated: "2026-05-06T07:33:53.349317+00:00"
canonical_url: "https://www.doc0.dev/docs/49c89830-117b-4def-8edc-b5bcc50766e0/api/task-automations/automationscontroller-createautomation"
---

<APIEndpoint
  method={"POST"}
  path={"/tasks/:taskId/automations"}
  summary={"Create a new automation"}
  description={"Creates a new automation for the specified task. Automations are used to collect and verify evidence automatically."}
  deprecated={false}
  baseUrl={""}
/>

## Parameters

<APIParameters parameters={[{"name":"taskId","in":"path","required":true,"description":"Unique task identifier","schema":{"type":"string"}},{"name":"X-Organization-Id","in":"header","required":false,"description":"Organization ID (required for session auth, optional for API key auth)","schema":{"type":"string"}}]} />

## Responses

<APIResponse
  statusCode={"201"}
  description={"Automation created successfully"}
  contentType={"application/json"}
  schema={{"type":"object"}}
/>

<APIResponse
  statusCode={"400"}
  description={"Invalid input"}
  contentType={"application/json"}
  schema={{"type":"object"}}
/>

<APIResponse
  statusCode={"401"}
  description={"Unauthorized"}
  contentType={"application/json"}
  schema={{"type":"object"}}
/>

<APIResponse
  statusCode={"404"}
  description={"Task not found"}
  contentType={"application/json"}
  schema={{"type":"object"}}
/>

## Try It

<APIPlayground
  method={"POST"}
  path={"/tasks/:taskId/automations"}
  parameters={[{"name":"taskId","in":"path","required":true,"description":"Unique task identifier","schema":{"type":"string"}},{"name":"X-Organization-Id","in":"header","required":false,"description":"Organization ID (required for session auth, optional for API key auth)","schema":{"type":"string"}}]}
  baseUrl={""}
/>


## Sitemap

See the full [sitemap](https://www.doc0.dev/docs/49c89830-117b-4def-8edc-b5bcc50766e0/llms.txt) for all pages in this wiki.
