Create tasks in a batch
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.
Authorizations
Section titled “Authorizations”Request Body
Section titled “Request Body”object
Applied to every task of the call, subtasks included, that omits the field. status only reaches tasks placed on the default project.
object
The task’s only assignee: an active team member. Requires tasks.assign.
Only applied to a task whose project is this call’s default project.
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.
object
The task’s only assignee: an active team member. Requires tasks.assign.
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
Results a reviewer can check without asking anyone, one per item; at least one.
Who asked for it, what exists today and why the work is needed.
What is missing to start or finish and who provides it: content, access, a decision, another ticket. Empty when nothing is pending.
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.
What changes and for whom, in one to three sentences.
What the source mentions that this ticket does not do, and where it goes instead. Empty when nothing is left out.
What to do, one behavior or piece of work per item, in order; listed numbered. Inline Markdown.
The document or request the work comes from.
object
The part of the source the work comes from: a page, a clause, a timestamp.
The source’s name: a file name, a Figma frame, a video, a meeting, a message.
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.
Historical creation instant; requires tasks.import and is audited.
Historical creator in this workspace; requires tasks.import and is audited.
object
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.
Due instant with a UTC offset (Z or ±hh:mm); derives dueDate in the workspace timezone, and when both are sent they must agree.
Calendar day as YYYY-MM-DD, stored at UTC midnight. A full ISO timestamp keeps its UTC day.
Existing task to nest this task under, appended after its siblings; omit for a root task.
The project a root task belongs to; it starts on that project’s board. A subtask belongs to its root task’s project.
PERIODIC repeats interval days after completion; the other frequencies follow the scheduled calendar date. Completing the task creates the next instance.
object
Last calendar day of the series, YYYY-MM-DD.
Day a MONTHLY rule repeats on. Defaults to the due date’s day, clamped per month.
Days a WEEKLY rule repeats on, 0 = Sunday. Defaults to the due date’s weekday.
Caller-chosen label echoed back on this task’s entry of the result.
Start instant with a UTC offset (Z or ±hh:mm); derives startDate in the workspace timezone, and when both are sent they must agree.
Calendar day as YYYY-MM-DD, stored at UTC midnight. A full ISO timestamp keeps its UTC day.
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.
Subtasks created under this task, in this order, with the same fields as the task except parentId.
object
object
object
object
object
The third and last level: the same fields, no subtasks.
object
object
object
object
object
Time estimate in whole seconds (5400 = 1h 30m).
Responses
Section titled “Responses”The outcome of each task.
object
What each task of a create batch became. The batch is not atomic.
object
object
Why the task was not created; “parent was not created” for a subtask whose parent failed.
object
Position in the request: “2” for the third task, “2.0” for its first subtask.
The project the task belongs to.
The caller’s ref, or null when none was sent.
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.
Validation error with safe field paths and expected values; submitted values are never returned.
object
object
Stable machine-readable error code.
object
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Unauthorized.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Forbidden.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Rate limit exceeded. Wait for Retry-After before retrying.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Headers
Section titled “Headers”Maximum requests in the current quota window.
Quota policy in requests and window seconds, for example 60;w=60.
Requests left in this quota window (zero when blocked).
Seconds until the current quota window resets, when available from the rate-limit store.
Seconds until another request may be attempted.
Chelsea is operated by Arepa Labs LLC