Skip to content

Create tasks in a batch

POST
/tasks/batch
Code sample: Shell / cURL
curl --request POST \
--url https://example.com/api/v1/tasks/batch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "defaults": { "assigneeId": "example", "priority": "NONE", "priorityOptionId": "example", "projectId": "example", "status": "example" }, "tasks": [ { "assigneeId": "example", "brief": { "acceptanceCriteria": [ "example" ], "context": "example", "dependencies": [ "example" ], "language": "en", "objective": "example", "outOfScope": [ "example" ], "requirements": [ "example" ], "source": { "section": "example", "title": "example", "url": "example" } }, "createdAt": "2026-04-15T12:00:00Z", "creatorId": "example", "dependencies": [ { "dependencyId": "example", "type": "FINISH_TO_START" } ], "description": "example", "dueAt": "2026-04-15T12:00:00Z", "dueDate": "example", "labelIds": [ "example" ], "parentId": "example", "priority": "NONE", "priorityOptionId": "example", "projectId": "example", "recurrence": { "endDate": "2026-04-15", "frequency": "DAILY", "interval": 1, "monthDay": 1, "weekdays": [ 1 ] }, "ref": "example", "startAt": "2026-04-15T12:00:00Z", "startDate": "example", "status": "example", "subtasks": [ { "assigneeId": "example", "brief": { "acceptanceCriteria": [ "example" ], "context": "example", "dependencies": [ "example" ], "language": "en", "objective": "example", "outOfScope": [ "example" ], "requirements": [ "example" ], "source": { "section": "example", "title": "example", "url": "example" } }, "createdAt": "2026-04-15T12:00:00Z", "creatorId": "example", "dependencies": [ { "dependencyId": "example", "type": "FINISH_TO_START" } ], "description": "example", "dueAt": "2026-04-15T12:00:00Z", "dueDate": "example", "labelIds": [ "example" ], "priority": "NONE", "priorityOptionId": "example", "projectId": "example", "recurrence": { "endDate": "2026-04-15", "frequency": "DAILY", "interval": 1, "monthDay": 1, "weekdays": [ 1 ] }, "ref": "example", "startAt": "2026-04-15T12:00:00Z", "startDate": "example", "status": "example", "subtasks": [ { "assigneeId": "example", "brief": { "acceptanceCriteria": [ "example" ], "context": "example", "dependencies": [ "example" ], "language": "en", "objective": "example", "outOfScope": [ "example" ], "requirements": [ "example" ], "source": { "section": "example", "title": "example", "url": "example" } }, "createdAt": "2026-04-15T12:00:00Z", "creatorId": "example", "dependencies": [ { "dependencyId": "example", "type": "FINISH_TO_START" } ], "description": "example", "dueAt": "2026-04-15T12:00:00Z", "dueDate": "example", "labelIds": [ "example" ], "priority": "NONE", "priorityOptionId": "example", "projectId": "example", "recurrence": { "endDate": "2026-04-15", "frequency": "DAILY", "interval": 1, "monthDay": 1, "weekdays": [ 1 ] }, "ref": "example", "startAt": "2026-04-15T12:00:00Z", "startDate": "example", "status": "example", "timeEstimate": 1, "title": "example" } ], "timeEstimate": 1, "title": "example" } ], "timeEstimate": 1, "title": "example" } ] }'

Creates up to 50 top-level tasks, each with optional nested subtasks (three levels at most, 200 tasks per call in all), by running every task through the same service as POST /tasks: the same fields (a Markdown description or a structured brief, never both), validation, audit, activity and notifications. A subtask is created under its created parent, in the order sent; a project or a parent outside the caller’s reach (projects.view_all or an assignment, tasks.view_all or a task on a project they reach) fails that task as not found. Optional defaults (projectId, status, assigneeId, priority, priorityOptionId) fill the fields a task omits. The batch is not atomic: the response is 200 whenever the batch was processed, with succeeded (ref, path, id, number, projectId) and failed (ref, path, error) listed per task by path, “2” for the third task and “2.0” for its first subtask. A task whose own creation fails reports parent was not created for each of its subtasks, which are not attempted. Requires tasks.create; a task’s initial assigneeId also requires tasks.assign, its labelIds and dependencies tasks.manage, and historical creatorId and createdAt tasks.import: a task lacking one fails on its own without stopping the rest. A batch over the limits is rejected with 400 before anything is created.

Media typeapplication/json
object
defaults

Applied to every task of the call, subtasks included, that omits the field. status only reaches tasks placed on the default project.

object
assigneeId

The task’s only assignee: an active team member. Requires tasks.assign.

string
>= 1 characters
priority
string
Allowed values: NONE LOW MEDIUM HIGH URGENT
priorityOptionId
string
>= 1 characters
projectId
string
>= 1 characters
status

Only applied to a task whose project is this call’s default project.

string
>= 1 characters
tasks
required

1 to 50 top-level tasks. Each task, its subtasks and their subtasks count toward a 200-task limit per call; nesting stops at three levels.

Array<object>
>= 1 items <= 50 items
object
assigneeId

The task’s only assignee: an active team member. Requires tasks.assign.

string
>= 1 characters
brief

The task’s structured brief: the source it comes from, objective, context, requirements, out of scope, acceptance criteria and dependencies. The server writes it as the description, the source on the first line and one heading per section in the brief’s language; send it instead of description, never both.

object
acceptanceCriteria
required

Results a reviewer can check without asking anyone, one per item; at least one.

Array<string>
>= 1 items <= 15 items
context
required

Who asked for it, what exists today and why the work is needed.

string
>= 1 characters <= 2000 characters
dependencies
required

What is missing to start or finish and who provides it: content, access, a decision, another ticket. Empty when nothing is pending.

Array<string>
<= 15 items
language
required

The language the brief is written in, which sets its section headings: es or en. The one the workspace guidance names, else the source’s.

string
Allowed values: en es
objective
required

What changes and for whom, in one to three sentences.

string
>= 1 characters <= 1000 characters
outOfScope
required

What the source mentions that this ticket does not do, and where it goes instead. Empty when nothing is left out.

Array<string>
<= 15 items
requirements
required

What to do, one behavior or piece of work per item, in order; listed numbered. Inline Markdown.

Array<string>
>= 1 items <= 15 items
source
required

The document or request the work comes from.

object
section

The part of the source the work comes from: a page, a clause, a timestamp.

string
>= 1 characters <= 300 characters
title
required

The source’s name: a file name, a Figma frame, a video, a meeting, a message.

string
>= 1 characters <= 300 characters
url

Where the source is: an http(s) address (a Figma frame, a video, a page), the url a deal file has or the fileUrl a task attachment has. Omit only when the source has no address.

string
<= 2000 characters
createdAt

Historical creation instant; requires tasks.import and is audited.

string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$/
creatorId

Historical creator in this workspace; requires tasks.import and is audited.

string
>= 1 characters
dependencies
Array<object>
<= 100 items
object
dependencyId
required
string
>= 1 characters
type
string
default: FINISH_TO_START
Allowed values: FINISH_TO_START START_TO_START FINISH_TO_FINISH START_TO_FINISH
description

Task description as Markdown. GitHub-Flavored Markdown, converted to sanitized HTML for storage. Survives the round trip: headings (the web editor edits h1-h2 and demotes deeper levels to paragraphs), bold, italic, strikethrough, underline as , inline code, fenced code blocks with a language, links, bullet, numbered and nested lists, task lists, blockquotes, horizontal rules, hard line breaks, tables with header rows (merged cells and complex tables use sanitized inline HTML), images served from /api/v1/files/, member mentions written as @Name, and a Loom, Cap (cap.so or the organization’s own Cap server), Figma, YouTube, Google Docs or GitHub pull-request link standing alone in its paragraph, which becomes an embed. Inline HTML passes through the same sanitizer as the editor. Lost: external image URLs (dropped by the sanitizer), link titles, text alignment.

string
dueAt

Due instant with a UTC offset (Z or ±hh:mm); derives dueDate in the workspace timezone, and when both are sent they must agree.

string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$/
dueDate

Calendar day as YYYY-MM-DD, stored at UTC midnight. A full ISO timestamp keeps its UTC day.

string
labelIds
Array<string>
<= 100 items
parentId

Existing task to nest this task under, appended after its siblings; omit for a root task.

string
>= 1 characters
priority
string
Allowed values: NONE LOW MEDIUM HIGH URGENT
priorityOptionId
string
>= 1 characters
projectId

The project a root task belongs to; it starts on that project’s board. A subtask belongs to its root task’s project.

string
recurrence

PERIODIC repeats interval days after completion; the other frequencies follow the scheduled calendar date. Completing the task creates the next instance.

object
endDate

Last calendar day of the series, YYYY-MM-DD.

string format: date
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$/
frequency
required
string
Allowed values: DAILY WEEKLY MONTHLY YEARLY PERIODIC
interval
integer
default: 1 >= 1 <= 366
monthDay

Day a MONTHLY rule repeats on. Defaults to the due date’s day, clamped per month.

integer
>= 1 <= 31
weekdays

Days a WEEKLY rule repeats on, 0 = Sunday. Defaults to the due date’s weekday.

Array<integer>
>= 1 items <= 7 items
ref

Caller-chosen label echoed back on this task’s entry of the result.

string
>= 1 characters <= 200 characters
startAt

Start instant with a UTC offset (Z or ±hh:mm); derives startDate in the workspace timezone, and when both are sent they must agree.

string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$/
startDate

Calendar day as YYYY-MM-DD, stored at UTC midnight. A full ISO timestamp keeps its UTC day.

string
status

Status of the project’s workflow the task starts in, by name (matched without case) or id; needs projectId or a parent. Omitted, the workflow’s default status.

string
>= 1 characters
subtasks

Subtasks created under this task, in this order, with the same fields as the task except parentId.

Array<object>
<= 200 items
object
assigneeId
string
>= 1 characters
brief
object
acceptanceCriteria
required
Array<string>
>= 1 items <= 15 items
context
required
string
>= 1 characters <= 2000 characters
dependencies
required
Array<string>
<= 15 items
language
required
string
Allowed values: en es
objective
required
string
>= 1 characters <= 1000 characters
outOfScope
required
Array<string>
<= 15 items
requirements
required
Array<string>
>= 1 items <= 15 items
source
required
object
section
string
>= 1 characters <= 300 characters
title
required
string
>= 1 characters <= 300 characters
url
string
<= 2000 characters
createdAt
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$/
creatorId
string
>= 1 characters
dependencies
Array<object>
<= 100 items
object
dependencyId
required
string
>= 1 characters
type
string
default: FINISH_TO_START
Allowed values: FINISH_TO_START START_TO_START FINISH_TO_FINISH START_TO_FINISH
description
string
dueAt
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$/
dueDate
string
labelIds
Array<string>
<= 100 items
priority
string
Allowed values: NONE LOW MEDIUM HIGH URGENT
priorityOptionId
string
>= 1 characters
projectId
string
recurrence
object
endDate
string format: date
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$/
frequency
required
string
Allowed values: DAILY WEEKLY MONTHLY YEARLY PERIODIC
interval
integer
default: 1 >= 1 <= 366
monthDay
integer
>= 1 <= 31
weekdays
Array<integer>
>= 1 items <= 7 items
ref
string
>= 1 characters <= 200 characters
startAt
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$/
startDate
string
status
string
>= 1 characters
subtasks

The third and last level: the same fields, no subtasks.

Array<object>
<= 200 items
object
assigneeId
string
>= 1 characters
brief
object
acceptanceCriteria
required
Array<string>
>= 1 items <= 15 items
context
required
string
>= 1 characters <= 2000 characters
dependencies
required
Array<string>
<= 15 items
language
required
string
Allowed values: en es
objective
required
string
>= 1 characters <= 1000 characters
outOfScope
required
Array<string>
<= 15 items
requirements
required
Array<string>
>= 1 items <= 15 items
source
required
object
section
string
>= 1 characters <= 300 characters
title
required
string
>= 1 characters <= 300 characters
url
string
<= 2000 characters
createdAt
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$/
creatorId
string
>= 1 characters
dependencies
Array<object>
<= 100 items
object
dependencyId
required
string
>= 1 characters
type
string
default: FINISH_TO_START
Allowed values: FINISH_TO_START START_TO_START FINISH_TO_FINISH START_TO_FINISH
description
string
dueAt
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$/
dueDate
string
labelIds
Array<string>
<= 100 items
priority
string
Allowed values: NONE LOW MEDIUM HIGH URGENT
priorityOptionId
string
>= 1 characters
projectId
string
recurrence
object
endDate
string format: date
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$/
frequency
required
string
Allowed values: DAILY WEEKLY MONTHLY YEARLY PERIODIC
interval
integer
default: 1 >= 1 <= 366
monthDay
integer
>= 1 <= 31
weekdays
Array<integer>
>= 1 items <= 7 items
ref
string
>= 1 characters <= 200 characters
startAt
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$/
startDate
string
status
string
>= 1 characters
timeEstimate
integer
> 0 <= 9007199254740991
title
required
string
>= 1 characters <= 500 characters
timeEstimate
integer
> 0 <= 9007199254740991
title
required
string
>= 1 characters <= 500 characters
timeEstimate

Time estimate in whole seconds (5400 = 1h 30m).

integer
> 0 <= 9007199254740991
title
required
string
>= 1 characters <= 500 characters

The outcome of each task.

Media typeapplication/json
object
data
required

What each task of a create batch became. The batch is not atomic.

object
failed
required
Array<object>
object
error
required

Why the task was not created; “parent was not created” for a subtask whose parent failed.

string
path
required
string
ref
required
string | null
succeeded
required
Array<object>
object
id
required
string
number
required
integer
>= -9007199254740991 <= 9007199254740991
path
required

Position in the request: “2” for the third task, “2.0” for its first subtask.

string
projectId
required

The project the task belongs to.

string
ref
required

The caller’s ref, or null when none was sent.

string | null

Example generated

{
"data": {
"failed": [
{
"error": "example",
"path": "example",
"ref": "example"
}
],
"succeeded": [
{
"id": "example",
"number": 1,
"path": "example",
"projectId": "example",
"ref": "example"
}
]
}
}

Validation error. Parse failures include field paths and expectations.

Media typeapplication/json

Validation error with safe field paths and expected values; submitted values are never returned.

object
error
required
object
code
required

Stable machine-readable error code.

string
issues
Array<object>
object
expected
required
string
message
required
string
path
required
Array<string | number>
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Unauthorized.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Forbidden.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Rate limit exceeded. Wait for Retry-After before retrying.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}
RateLimit-Limit
string
/^\d+$/

Maximum requests in the current quota window.

RateLimit-Policy
string

Quota policy in requests and window seconds, for example 60;w=60.

RateLimit-Remaining
string
/^\d+$/

Requests left in this quota window (zero when blocked).

RateLimit-Reset
string
/^\d+$/

Seconds until the current quota window resets, when available from the rate-limit store.

Retry-After
string
/^\d+$/

Seconds until another request may be attempted.