---
title: "Create one or more tasks in a project"
method: POST
path: "/createTask"
tags: ["Task"]
---

# Create one or more tasks in a project

`POST /createTask`

## Request

- Base URL: `https://www.taskade.com/api/v2`
- URL: `https://www.taskade.com/api/v2/createTask`
- Auth: OAuth 2 and HTTP bearer
  - Authorization code: `https://www.taskade.com/oauth2/authorize`
  - Token URL: `https://www.taskade.com/oauth2/token`

## Request body

- object
  - `projectId` string, required: The project to create tasks in
  - `tasks` union[], required: Tasks to create, positioned relative to an existing task or the project root
    - union
      - object
        - `contentType` 'text/markdown' | 'text/plain', required
        - `content` string, required
        - `taskId` 'null', nullable
        - `placement` 'afterbegin' | 'beforeend', required
      - object
        - `contentType` ContentType, required (unresolved $ref)
        - `content` string, required
        - `taskId` string, required
        - `placement` 'beforebegin' | 'afterbegin' | 'beforeend' | 'afterend', required

## Response `200`

Default response

- object
  - `ok` true, required
  - `items` object[], required
    - `id` string, required
    - `text` string
    - `completed` boolean

---

[API](https://skmtc.dev/taskade/apis/taskade-public-api-v2.md) - [All operations](https://skmtc.dev/taskade/apis/taskade-public-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/taskade/apis/taskade-public-api-v2/revisions/45f0e74ec083?raw)
