Skip to content

Create an automation

POST
/projects/{id}/automations
Code sample: Shell / cURL
curl --request POST \
--url https://example.com/api/v1/projects/example/automations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "actions": [ { "priorityOptionId": "example", "type": "set_priority_option" } ], "branches": [ { "actions": [ { "priorityOptionId": "example", "type": "set_priority_option" } ], "branches": [ { "actions": [ { "priorityOptionId": "example", "type": "set_priority_option" } ], "branches": [ { "actions": [ { "priorityOptionId": "example", "type": "set_priority_option" } ], "branches": [ { "actions": [ { "priorityOptionId": "example", "type": "set_priority_option" } ], "branches": [ { "actions": [ { "priorityOptionId": "example", "type": "set_priority_option" } ], "branches": [ "example" ], "conditionMatch": "all", "conditions": [ { "fieldDefinitionId": "example", "instructions": "example", "op": "eq", "subject": "priority_option", "value": "example", "values": [ "example" ] } ], "id": "example" } ], "conditionMatch": "all", "conditions": [ { "fieldDefinitionId": "example", "instructions": "example", "op": "eq", "subject": "priority_option", "value": "example", "values": [ "example" ] } ], "id": "example" } ], "conditionMatch": "all", "conditions": [ { "fieldDefinitionId": "example", "instructions": "example", "op": "eq", "subject": "priority_option", "value": "example", "values": [ "example" ] } ], "id": "example" } ], "conditionMatch": "all", "conditions": [ { "fieldDefinitionId": "example", "instructions": "example", "op": "eq", "subject": "priority_option", "value": "example", "values": [ "example" ] } ], "id": "example" } ], "conditionMatch": "all", "conditions": [ { "fieldDefinitionId": "example", "instructions": "example", "op": "eq", "subject": "priority_option", "value": "example", "values": [ "example" ] } ], "id": "example" } ], "conditions": [ { "fieldDefinitionId": "example", "instructions": "example", "op": "eq", "subject": "priority_option", "value": "example", "values": [ "example" ] } ], "isActive": true, "name": "example", "trigger": "TASK_CREATED", "triggerConfig": { "days": 1, "fieldDefinitionId": "example", "labelId": "example", "statusId": "example" }, "triggers": [ { "config": null, "type": "TASK_CREATED" } ] }'

Requires the projects.manage and tasks.manage permissions. The caller becomes the automation’s owner: actions run only while they retain task-management permission and reach to the task. triggers or trigger is required; sending neither answers 400, and sending both is accepted only when trigger and triggerConfig repeat the first entry of triggers, as a GET response carries them. Statuses referenced must belong to the project’s workflow; members, labels and custom fields to the workspace. Use ordered branches for first-match execution; top-level conditions and actions must be empty. A branch may contain nested branches, evaluated only after its conditions match. At every sibling level only the first match runs, and only the last sibling may be unconditional. Parent actions run before the selected child actions. A branch may have an empty actions array when it has children. Branch conditionMatch accepts all (AND, default) or any (OR). Limits: 5 levels, 50 branches total, 10 siblings per level. TASK_COMPLETION_CHANGED fires when a task is completed or reopened; TASK_COMPLETED fires only on completion. The completion condition reads complete or incomplete, with eq, neq, in, or operand-free is_set and is_empty. The order_hours_left condition takes op lt and value, a number of hours above 0, and holds when the project’s order has fewer hours left than that; the order is the project’s own (its default time order, else its one order with hours), never one read from the task, and a project with no order with hours does not match, which the run’s note says. clear_custom_field requires fieldDefinitionId and removes that task’s stored value; unassign takes no operands and leaves the task unassigned; assign_project_manager takes an optional roleId, a workspace role, and assigns the project’s first manager holding it (its members at Manager level or, when it has none, its company’s Direct Access managers, oldest first), or its first manager without a role; assign_team_lead assigns the lead of the project’s oldest team, or of its company’s oldest team. When nobody qualifies it leaves the task as it is and says so in the run’s note. assign_round_robin requires memberIds (2 to 20 team members) and assigns whichever has the fewest open tasks in the project, the first listed on a tie; create_subtasks requires titles (1 to 20) and creates those subtasks under the task, in order. copy_from_parent takes fields (assignee, dueDate, priority) and copies them from the task’s parent onto the task, and a task with no parent is left as it is with a note in the run; a rule with this action also runs on subtasks, which other rules never do. copy_to_open_subtasks takes the same fields and copies them from the task onto each open subtask. assign_person_field assigns the member a person (MEMBER) custom field holds; add_follower and remove_follower take memberId. create_task creates a top-level task with a title, in projectId (another open project the owner reaches; this project when omitted), optional taskStatusId of that project’s workflow and assigneeId. move_to_project moves the task with its subtasks to projectId (another open project the owner reaches), in taskStatusId of its workflow or, when omitted, each status matched by name and category. An automation starts from a list of triggers: triggers is [{ type, config }], 1 to 10 entries without duplicates, and any one of them fires the automation. The older single form, trigger with an optional triggerConfig, is still accepted and equals a list of one; the two forms are never sent together. Responses always return triggers and, for clients that predate it, trigger and triggerConfig holding the first trigger. Each trigger’s config (triggerConfig in the single form) follows its type. TASK_STATUS_CHANGED optionally filters the destination with statusId, a status of the project’s workflow. TASK_CUSTOM_FIELD_CHANGED requires a stable fieldDefinitionId from the project or workspace; custom-field renames do not change the reference. Native name, description, priority, estimate, due-date and start-date changes have dedicated triggers. TASK_DUE_SOON and TASK_START_SOON require days (0–365); TASK_OVERDUE and TASK_START_PASSED need no configuration. TASK_LABEL_ADDED and TASK_LABEL_REMOVED require labelId, a task label of the workspace, and fire when that tag is added to or removed from a task through the app, API or MCP. TASK_IN_STATUS_FOR requires statusId and days (1–365, business days) and fires once each time a task has been in that status for that long: leaving the status and coming back starts a new count. TASK_CLIENT_REPLIED needs no configuration and fires when the requester replies on a ticket linked to the task; internal notes and team replies do not count. Date-only schedules use the workspace calendar day; timed dates use their instant. TASK_UNBLOCKED fires when the last unfinished blocking dependency is completed or removed. TASK_OR_SUBTASKS_COMPLETION_CHANGED also observes changes to the completion state of all direct subtasks. TASK_ATTACHMENT_ADDED, TASK_COMMENT_ADDED and TASK_COLLABORATOR_ADDED observe additions; collaborators are task followers. TASK_ADDED_TO_PROJECT fires when a task moves into this project from another one. TASK_VIDEO_TRANSCRIPT_READY fires once for each task of the project whose description or comment embeds a Cap video when that video’s transcript becomes ready; it needs no configuration and never fires for an archived task. MANUAL fires only when someone runs the automation on chosen tasks (POST /projects/{id}/automations/{automationId}/run). INCOMING_WEBHOOK fires only when another system calls the automation’s signed webhook URL (webhookUrl; see POST /projects/{id}/automations/{automationId}/webhook-secret). Task-type and approval-status triggers are not supported; an approval custom field can use TASK_CUSTOM_FIELD_CHANGED.

id
required

Resource identifier (CUID2).

string
>= 1 characters

Resource identifier (CUID2).

Media typeapplication/json
object
actions
Array<object>
<= 10 items
One of:
object
priorityOptionId
required
string
>= 1 characters
type
required
string
Allowed value: set_priority_option
branches

Ordered first-match branches at each level. Parent conditions gate children; parent actions run before selected child actions. Maximum 5 levels, 10 siblings and 50 total branches. An unconditional fallback is allowed only last at each level. Empty means a linear automation.

Array<object>
<= 10 items
object
actions
required
Array<object>
<= 10 items
One of:
object
priorityOptionId
required
string
>= 1 characters
type
required
string
Allowed value: set_priority_option
branches
Array<object>
<= 10 items
object
actions
required
Array<object>
<= 10 items
One of:
object
priorityOptionId
required
string
>= 1 characters
type
required
string
Allowed value: set_priority_option
branches
Array<object>
<= 10 items
object
actions
required
Array<object>
<= 10 items
One of:
object
priorityOptionId
required
string
>= 1 characters
type
required
string
Allowed value: set_priority_option
branches
Array<object>
<= 10 items
object
actions
required
Array<object>
<= 10 items
One of:
object
priorityOptionId
required
string
>= 1 characters
type
required
string
Allowed value: set_priority_option
branches
Array<object>
<= 10 items
object
actions
required
Array<object>
<= 10 items
One of:
object
priorityOptionId
required
string
>= 1 characters
type
required
string
Allowed value: set_priority_option
branches
Array
0
conditionMatch

How branch conditions combine: all (AND, default when omitted) or any (OR).

string
Allowed values: all any
conditions
required
Array<object>
<= 20 items
object
fieldDefinitionId

Custom_field only: the CustomFieldDefinition the condition reads.

string
>= 1 characters
instructions

Ai_missing_information and ai_duplicates only: what the AI is asked to judge. Required for them, not allowed on any other subject.

string
>= 1 characters <= 2000 characters
op
required
string
Allowed values: eq neq in is_set is_empty lt contains
subject
required
string
Allowed values: priority_option completion status assignee label custom_field order_hours_left creator due_date start_date name description has_attachment has_comment is_blocked ai_missing_information ai_duplicates
value

Eq / neq operand. For order_hours_left with lt: the hours as a number above 0, such as 5 or 2.5. For name and description with contains: the words to find, ignoring case. For due_date and start_date: past, today, tomorrow or next_7_days. For has_attachment, has_comment and is_blocked: yes or no. For creator: a member id.

string
>= 1 characters <= 500 characters
values

In operand: the condition holds when the subject matches any of them.

Array<string>
>= 1 items <= 50 items
id
required
string
>= 1 characters <= 100 characters
conditionMatch

How branch conditions combine: all (AND, default when omitted) or any (OR).

string
Allowed values: all any
conditions
required
Array<object>
<= 20 items
object
fieldDefinitionId

Custom_field only: the CustomFieldDefinition the condition reads.

string
>= 1 characters
instructions

Ai_missing_information and ai_duplicates only: what the AI is asked to judge. Required for them, not allowed on any other subject.

string
>= 1 characters <= 2000 characters
op
required
string
Allowed values: eq neq in is_set is_empty lt contains
subject
required
string
Allowed values: priority_option completion status assignee label custom_field order_hours_left creator due_date start_date name description has_attachment has_comment is_blocked ai_missing_information ai_duplicates
value

Eq / neq operand. For order_hours_left with lt: the hours as a number above 0, such as 5 or 2.5. For name and description with contains: the words to find, ignoring case. For due_date and start_date: past, today, tomorrow or next_7_days. For has_attachment, has_comment and is_blocked: yes or no. For creator: a member id.

string
>= 1 characters <= 500 characters
values

In operand: the condition holds when the subject matches any of them.

Array<string>
>= 1 items <= 50 items
id
required
string
>= 1 characters <= 100 characters
conditionMatch

How branch conditions combine: all (AND, default when omitted) or any (OR).

string
Allowed values: all any
conditions
required
Array<object>
<= 20 items
object
fieldDefinitionId

Custom_field only: the CustomFieldDefinition the condition reads.

string
>= 1 characters
instructions

Ai_missing_information and ai_duplicates only: what the AI is asked to judge. Required for them, not allowed on any other subject.

string
>= 1 characters <= 2000 characters
op
required
string
Allowed values: eq neq in is_set is_empty lt contains
subject
required
string
Allowed values: priority_option completion status assignee label custom_field order_hours_left creator due_date start_date name description has_attachment has_comment is_blocked ai_missing_information ai_duplicates
value

Eq / neq operand. For order_hours_left with lt: the hours as a number above 0, such as 5 or 2.5. For name and description with contains: the words to find, ignoring case. For due_date and start_date: past, today, tomorrow or next_7_days. For has_attachment, has_comment and is_blocked: yes or no. For creator: a member id.

string
>= 1 characters <= 500 characters
values

In operand: the condition holds when the subject matches any of them.

Array<string>
>= 1 items <= 50 items
id
required
string
>= 1 characters <= 100 characters
conditionMatch

How branch conditions combine: all (AND, default when omitted) or any (OR).

string
Allowed values: all any
conditions
required
Array<object>
<= 20 items
object
fieldDefinitionId

Custom_field only: the CustomFieldDefinition the condition reads.

string
>= 1 characters
instructions

Ai_missing_information and ai_duplicates only: what the AI is asked to judge. Required for them, not allowed on any other subject.

string
>= 1 characters <= 2000 characters
op
required
string
Allowed values: eq neq in is_set is_empty lt contains
subject
required
string
Allowed values: priority_option completion status assignee label custom_field order_hours_left creator due_date start_date name description has_attachment has_comment is_blocked ai_missing_information ai_duplicates
value

Eq / neq operand. For order_hours_left with lt: the hours as a number above 0, such as 5 or 2.5. For name and description with contains: the words to find, ignoring case. For due_date and start_date: past, today, tomorrow or next_7_days. For has_attachment, has_comment and is_blocked: yes or no. For creator: a member id.

string
>= 1 characters <= 500 characters
values

In operand: the condition holds when the subject matches any of them.

Array<string>
>= 1 items <= 50 items
id
required
string
>= 1 characters <= 100 characters
conditionMatch

How branch conditions combine: all (AND, default when omitted) or any (OR).

string
Allowed values: all any
conditions
required
Array<object>
<= 20 items
object
fieldDefinitionId

Custom_field only: the CustomFieldDefinition the condition reads.

string
>= 1 characters
instructions

Ai_missing_information and ai_duplicates only: what the AI is asked to judge. Required for them, not allowed on any other subject.

string
>= 1 characters <= 2000 characters
op
required
string
Allowed values: eq neq in is_set is_empty lt contains
subject
required
string
Allowed values: priority_option completion status assignee label custom_field order_hours_left creator due_date start_date name description has_attachment has_comment is_blocked ai_missing_information ai_duplicates
value

Eq / neq operand. For order_hours_left with lt: the hours as a number above 0, such as 5 or 2.5. For name and description with contains: the words to find, ignoring case. For due_date and start_date: past, today, tomorrow or next_7_days. For has_attachment, has_comment and is_blocked: yes or no. For creator: a member id.

string
>= 1 characters <= 500 characters
values

In operand: the condition holds when the subject matches any of them.

Array<string>
>= 1 items <= 50 items
id
required
string
>= 1 characters <= 100 characters
conditions
Array<object>
<= 20 items
object
fieldDefinitionId

Custom_field only: the CustomFieldDefinition the condition reads.

string
>= 1 characters
instructions

Ai_missing_information and ai_duplicates only: what the AI is asked to judge. Required for them, not allowed on any other subject.

string
>= 1 characters <= 2000 characters
op
required
string
Allowed values: eq neq in is_set is_empty lt contains
subject
required
string
Allowed values: priority_option completion status assignee label custom_field order_hours_left creator due_date start_date name description has_attachment has_comment is_blocked ai_missing_information ai_duplicates
value

Eq / neq operand. For order_hours_left with lt: the hours as a number above 0, such as 5 or 2.5. For name and description with contains: the words to find, ignoring case. For due_date and start_date: past, today, tomorrow or next_7_days. For has_attachment, has_comment and is_blocked: yes or no. For creator: a member id.

string
>= 1 characters <= 500 characters
values

In operand: the condition holds when the subject matches any of them.

Array<string>
>= 1 items <= 50 items
isActive
boolean
name
required
string
>= 1 characters <= 120 characters
trigger

Single-trigger form; send it instead of triggers, or together with it when it repeats the first entry, as a GET response does.

string
Allowed values: TASK_CREATED TASK_STATUS_CHANGED TASK_LABEL_ADDED TASK_LABEL_REMOVED TASK_ASSIGNED TASK_DUE_SOON TASK_COMPLETED TASK_COMPLETION_CHANGED TASK_NAME_CHANGED TASK_DESCRIPTION_CHANGED TASK_DUE_DATE_CHANGED TASK_OVERDUE TASK_START_DATE_CHANGED TASK_START_SOON TASK_START_PASSED TASK_IN_STATUS_FOR TASK_UNBLOCKED TASK_OR_SUBTASKS_COMPLETION_CHANGED TASK_CUSTOM_FIELD_CHANGED TASK_PRIORITY_CHANGED TASK_TIME_ESTIMATE_CHANGED TASK_ATTACHMENT_ADDED TASK_COMMENT_ADDED TASK_COLLABORATOR_ADDED TASK_ADDED_TO_PROJECT TASK_VIDEO_TRANSCRIPT_READY TASK_CLIENT_REPLIED MANUAL INCOMING_WEBHOOK
triggerConfig

Config of trigger; sent together with triggers only when it repeats the first entry.

Any of:
object
days

TASK_DUE_SOON or TASK_START_SOON: days before the scheduled date (0 means today). TASK_IN_STATUS_FOR: business days the task has been in the status (1 or more).

integer
<= 365
fieldDefinitionId

TASK_CUSTOM_FIELD_CHANGED: stable ID of the project or workspace custom field.

string
>= 1 characters
labelId

TASK_LABEL_ADDED or TASK_LABEL_REMOVED: stable ID of the tag (required).

string
>= 1 characters
statusId

TASK_STATUS_CHANGED: optional destination status; omit for any status. TASK_IN_STATUS_FOR: the status the task sits in (required).

string
>= 1 characters
triggers

The triggers that start the automation; any one of them fires it. Replaces the single trigger and triggerConfig.

Array<object>
>= 1 items <= 10 items

One way an automation starts: a trigger type and its optional configuration. Any trigger of the automation fires it.

object
config
Any of:
object
days

TASK_DUE_SOON or TASK_START_SOON: days before the scheduled date (0 means today). TASK_IN_STATUS_FOR: business days the task has been in the status (1 or more).

integer
<= 365
fieldDefinitionId

TASK_CUSTOM_FIELD_CHANGED: stable ID of the project or workspace custom field.

string
>= 1 characters
labelId

TASK_LABEL_ADDED or TASK_LABEL_REMOVED: stable ID of the tag (required).

string
>= 1 characters
statusId

TASK_STATUS_CHANGED: optional destination status; omit for any status. TASK_IN_STATUS_FOR: the status the task sits in (required).

string
>= 1 characters
type
required
string
Allowed values: TASK_CREATED TASK_STATUS_CHANGED TASK_LABEL_ADDED TASK_LABEL_REMOVED TASK_ASSIGNED TASK_DUE_SOON TASK_COMPLETED TASK_COMPLETION_CHANGED TASK_NAME_CHANGED TASK_DESCRIPTION_CHANGED TASK_DUE_DATE_CHANGED TASK_OVERDUE TASK_START_DATE_CHANGED TASK_START_SOON TASK_START_PASSED TASK_IN_STATUS_FOR TASK_UNBLOCKED TASK_OR_SUBTASKS_COMPLETION_CHANGED TASK_CUSTOM_FIELD_CHANGED TASK_PRIORITY_CHANGED TASK_TIME_ESTIMATE_CHANGED TASK_ATTACHMENT_ADDED TASK_COMMENT_ADDED TASK_COLLABORATOR_ADDED TASK_ADDED_TO_PROJECT TASK_VIDEO_TRANSCRIPT_READY TASK_CLIENT_REPLIED MANUAL INCOMING_WEBHOOK

The created automation.

Media typeapplication/json
object
data
required

A Chelsea-native automation over one project’s tasks.

object
actions
required

Executed in order, acting as the automation’s owner.

Array<object>
One of:
object
priorityOptionId
required
string
>= 1 characters
type
required
string
Allowed value: set_priority_option
branches
required

Ordered first-match branches at each level. Parent conditions gate children; parent actions run before selected child actions. Maximum 5 levels, 10 siblings and 50 total branches. An unconditional fallback is allowed only last at each level. Empty means a linear automation.

Array<object>
<= 10 items
object
actions
required
Array<object>
<= 10 items
One of:
object
priorityOptionId
required
string
>= 1 characters
type
required
string
Allowed value: set_priority_option
branches
Array<object>
<= 10 items
object
actions
required
Array<object>
<= 10 items
One of:
object
priorityOptionId
required
string
>= 1 characters
type
required
string
Allowed value: set_priority_option
branches
Array<object>
<= 10 items
object
actions
required
Array<object>
<= 10 items
One of:
object
priorityOptionId
required
string
>= 1 characters
type
required
string
Allowed value: set_priority_option
branches
Array<object>
<= 10 items
object
actions
required
Array<object>
<= 10 items
One of:
object
priorityOptionId
required
string
>= 1 characters
type
required
string
Allowed value: set_priority_option
branches
Array<object>
<= 10 items
object
actions
required
Array<object>
<= 10 items
One of:
object
priorityOptionId
required
string
>= 1 characters
type
required
string
Allowed value: set_priority_option
branches
Array
0
conditionMatch

How branch conditions combine: all (AND, default when omitted) or any (OR).

string
Allowed values: all any
conditions
required
Array<object>
<= 20 items
object
fieldDefinitionId

Custom_field only: the CustomFieldDefinition the condition reads.

string
>= 1 characters
instructions

Ai_missing_information and ai_duplicates only: what the AI is asked to judge. Required for them, not allowed on any other subject.

string
>= 1 characters <= 2000 characters
op
required
string
Allowed values: eq neq in is_set is_empty lt contains
subject
required
string
Allowed values: priority_option completion status assignee label custom_field order_hours_left creator due_date start_date name description has_attachment has_comment is_blocked ai_missing_information ai_duplicates
value

Eq / neq operand. For order_hours_left with lt: the hours as a number above 0, such as 5 or 2.5. For name and description with contains: the words to find, ignoring case. For due_date and start_date: past, today, tomorrow or next_7_days. For has_attachment, has_comment and is_blocked: yes or no. For creator: a member id.

string
>= 1 characters <= 500 characters
values

In operand: the condition holds when the subject matches any of them.

Array<string>
>= 1 items <= 50 items
id
required
string
>= 1 characters <= 100 characters
conditionMatch

How branch conditions combine: all (AND, default when omitted) or any (OR).

string
Allowed values: all any
conditions
required
Array<object>
<= 20 items
object
fieldDefinitionId

Custom_field only: the CustomFieldDefinition the condition reads.

string
>= 1 characters
instructions

Ai_missing_information and ai_duplicates only: what the AI is asked to judge. Required for them, not allowed on any other subject.

string
>= 1 characters <= 2000 characters
op
required
string
Allowed values: eq neq in is_set is_empty lt contains
subject
required
string
Allowed values: priority_option completion status assignee label custom_field order_hours_left creator due_date start_date name description has_attachment has_comment is_blocked ai_missing_information ai_duplicates
value

Eq / neq operand. For order_hours_left with lt: the hours as a number above 0, such as 5 or 2.5. For name and description with contains: the words to find, ignoring case. For due_date and start_date: past, today, tomorrow or next_7_days. For has_attachment, has_comment and is_blocked: yes or no. For creator: a member id.

string
>= 1 characters <= 500 characters
values

In operand: the condition holds when the subject matches any of them.

Array<string>
>= 1 items <= 50 items
id
required
string
>= 1 characters <= 100 characters
conditionMatch

How branch conditions combine: all (AND, default when omitted) or any (OR).

string
Allowed values: all any
conditions
required
Array<object>
<= 20 items
object
fieldDefinitionId

Custom_field only: the CustomFieldDefinition the condition reads.

string
>= 1 characters
instructions

Ai_missing_information and ai_duplicates only: what the AI is asked to judge. Required for them, not allowed on any other subject.

string
>= 1 characters <= 2000 characters
op
required
string
Allowed values: eq neq in is_set is_empty lt contains
subject
required
string
Allowed values: priority_option completion status assignee label custom_field order_hours_left creator due_date start_date name description has_attachment has_comment is_blocked ai_missing_information ai_duplicates
value

Eq / neq operand. For order_hours_left with lt: the hours as a number above 0, such as 5 or 2.5. For name and description with contains: the words to find, ignoring case. For due_date and start_date: past, today, tomorrow or next_7_days. For has_attachment, has_comment and is_blocked: yes or no. For creator: a member id.

string
>= 1 characters <= 500 characters
values

In operand: the condition holds when the subject matches any of them.

Array<string>
>= 1 items <= 50 items
id
required
string
>= 1 characters <= 100 characters
conditionMatch

How branch conditions combine: all (AND, default when omitted) or any (OR).

string
Allowed values: all any
conditions
required
Array<object>
<= 20 items
object
fieldDefinitionId

Custom_field only: the CustomFieldDefinition the condition reads.

string
>= 1 characters
instructions

Ai_missing_information and ai_duplicates only: what the AI is asked to judge. Required for them, not allowed on any other subject.

string
>= 1 characters <= 2000 characters
op
required
string
Allowed values: eq neq in is_set is_empty lt contains
subject
required
string
Allowed values: priority_option completion status assignee label custom_field order_hours_left creator due_date start_date name description has_attachment has_comment is_blocked ai_missing_information ai_duplicates
value

Eq / neq operand. For order_hours_left with lt: the hours as a number above 0, such as 5 or 2.5. For name and description with contains: the words to find, ignoring case. For due_date and start_date: past, today, tomorrow or next_7_days. For has_attachment, has_comment and is_blocked: yes or no. For creator: a member id.

string
>= 1 characters <= 500 characters
values

In operand: the condition holds when the subject matches any of them.

Array<string>
>= 1 items <= 50 items
id
required
string
>= 1 characters <= 100 characters
conditionMatch

How branch conditions combine: all (AND, default when omitted) or any (OR).

string
Allowed values: all any
conditions
required
Array<object>
<= 20 items
object
fieldDefinitionId

Custom_field only: the CustomFieldDefinition the condition reads.

string
>= 1 characters
instructions

Ai_missing_information and ai_duplicates only: what the AI is asked to judge. Required for them, not allowed on any other subject.

string
>= 1 characters <= 2000 characters
op
required
string
Allowed values: eq neq in is_set is_empty lt contains
subject
required
string
Allowed values: priority_option completion status assignee label custom_field order_hours_left creator due_date start_date name description has_attachment has_comment is_blocked ai_missing_information ai_duplicates
value

Eq / neq operand. For order_hours_left with lt: the hours as a number above 0, such as 5 or 2.5. For name and description with contains: the words to find, ignoring case. For due_date and start_date: past, today, tomorrow or next_7_days. For has_attachment, has_comment and is_blocked: yes or no. For creator: a member id.

string
>= 1 characters <= 500 characters
values

In operand: the condition holds when the subject matches any of them.

Array<string>
>= 1 items <= 50 items
id
required
string
>= 1 characters <= 100 characters
conditions
required

Every condition must hold on the task’s current state for the actions to run.

Array<object>
object
fieldDefinitionId

Custom_field only: the CustomFieldDefinition the condition reads.

string
>= 1 characters
instructions

Ai_missing_information and ai_duplicates only: what the AI is asked to judge. Required for them, not allowed on any other subject.

string
>= 1 characters <= 2000 characters
op
required
string
Allowed values: eq neq in is_set is_empty lt contains
subject
required
string
Allowed values: priority_option completion status assignee label custom_field order_hours_left creator due_date start_date name description has_attachment has_comment is_blocked ai_missing_information ai_duplicates
value

Eq / neq operand. For order_hours_left with lt: the hours as a number above 0, such as 5 or 2.5. For name and description with contains: the words to find, ignoring case. For due_date and start_date: past, today, tomorrow or next_7_days. For has_attachment, has_comment and is_blocked: yes or no. For creator: a member id.

string
>= 1 characters <= 500 characters
values

In operand: the condition holds when the subject matches any of them.

Array<string>
>= 1 items <= 50 items
createdAt
required
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))$/
hasWebhookSecret
required

Whether the webhook has a signing secret. The secret itself is returned only when it is created or replaced.

boolean
id
required
string
isActive
required
boolean
name
required
string
ownerId
required

WorkspaceMember the actions act as.

string
projectId
required
string
trigger
required

The type of the first trigger; kept for clients that predate triggers. Null when no stored trigger is supported any more, such as a board section trigger: the automation never runs until it is edited.

Any of:
string
Allowed values: TASK_CREATED TASK_STATUS_CHANGED TASK_LABEL_ADDED TASK_LABEL_REMOVED TASK_ASSIGNED TASK_DUE_SOON TASK_COMPLETED TASK_COMPLETION_CHANGED TASK_NAME_CHANGED TASK_DESCRIPTION_CHANGED TASK_DUE_DATE_CHANGED TASK_OVERDUE TASK_START_DATE_CHANGED TASK_START_SOON TASK_START_PASSED TASK_IN_STATUS_FOR TASK_UNBLOCKED TASK_OR_SUBTASKS_COMPLETION_CHANGED TASK_CUSTOM_FIELD_CHANGED TASK_PRIORITY_CHANGED TASK_TIME_ESTIMATE_CHANGED TASK_ATTACHMENT_ADDED TASK_COMMENT_ADDED TASK_COLLABORATOR_ADDED TASK_ADDED_TO_PROJECT TASK_VIDEO_TRANSCRIPT_READY TASK_CLIENT_REPLIED MANUAL INCOMING_WEBHOOK
triggerConfig
required

The config of the first trigger; kept for clients that predate triggers.

Any of:
object
days

TASK_DUE_SOON or TASK_START_SOON: days before the scheduled date (0 means today). TASK_IN_STATUS_FOR: business days the task has been in the status (1 or more).

integer
<= 365
fieldDefinitionId

TASK_CUSTOM_FIELD_CHANGED: stable ID of the project or workspace custom field.

string
>= 1 characters
labelId

TASK_LABEL_ADDED or TASK_LABEL_REMOVED: stable ID of the tag (required).

string
>= 1 characters
statusId

TASK_STATUS_CHANGED: optional destination status; omit for any status. TASK_IN_STATUS_FOR: the status the task sits in (required).

string
>= 1 characters
triggers
required

What starts the automation, in editor order: any one of them fires it. Each entry carries its own config (TASK_CUSTOM_FIELD_CHANGED requires config.fieldDefinitionId; TASK_STATUS_CHANGED optionally selects config.statusId; TASK_LABEL_ADDED and TASK_LABEL_REMOVED require config.labelId; TASK_DUE_SOON and TASK_START_SOON require config.days; TASK_IN_STATUS_FOR requires config.statusId and config.days of 1 or more, in business days; TASK_VIDEO_TRANSCRIPT_READY and TASK_CLIENT_REPLIED need none). Task type and approval-status triggers are not supported.

Array<object>

One way an automation starts: a trigger type and its optional configuration. Any trigger of the automation fires it.

object
config
required
Any of:
object
days

TASK_DUE_SOON or TASK_START_SOON: days before the scheduled date (0 means today). TASK_IN_STATUS_FOR: business days the task has been in the status (1 or more).

integer
<= 365
fieldDefinitionId

TASK_CUSTOM_FIELD_CHANGED: stable ID of the project or workspace custom field.

string
>= 1 characters
labelId

TASK_LABEL_ADDED or TASK_LABEL_REMOVED: stable ID of the tag (required).

string
>= 1 characters
statusId

TASK_STATUS_CHANGED: optional destination status; omit for any status. TASK_IN_STATUS_FOR: the status the task sits in (required).

string
>= 1 characters
type
required
string
Allowed values: TASK_CREATED TASK_STATUS_CHANGED TASK_LABEL_ADDED TASK_LABEL_REMOVED TASK_ASSIGNED TASK_DUE_SOON TASK_COMPLETED TASK_COMPLETION_CHANGED TASK_NAME_CHANGED TASK_DESCRIPTION_CHANGED TASK_DUE_DATE_CHANGED TASK_OVERDUE TASK_START_DATE_CHANGED TASK_START_SOON TASK_START_PASSED TASK_IN_STATUS_FOR TASK_UNBLOCKED TASK_OR_SUBTASKS_COMPLETION_CHANGED TASK_CUSTOM_FIELD_CHANGED TASK_PRIORITY_CHANGED TASK_TIME_ESTIMATE_CHANGED TASK_ATTACHMENT_ADDED TASK_COMMENT_ADDED TASK_COLLABORATOR_ADDED TASK_ADDED_TO_PROJECT TASK_VIDEO_TRANSCRIPT_READY TASK_CLIENT_REPLIED MANUAL INCOMING_WEBHOOK
updatedAt
required
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))$/
webhookUrl
required

Where another system sends the INCOMING_WEBHOOK trigger’s deliveries; null without that trigger.

string | null

Example

{
"data": {
"actions": [
{
"type": "set_priority_option"
}
],
"branches": [
{
"actions": [
{
"type": "set_priority_option"
}
],
"branches": [
{
"actions": [
{
"type": "set_priority_option"
}
],
"branches": [
{
"actions": [
{
"type": "set_priority_option"
}
],
"branches": [
{
"actions": [
{
"type": "set_priority_option"
}
],
"branches": [
{
"actions": [
{
"type": "set_priority_option"
}
],
"conditionMatch": "all",
"conditions": [
{
"op": "eq",
"subject": "priority_option"
}
]
}
],
"conditionMatch": "all",
"conditions": [
{
"op": "eq",
"subject": "priority_option"
}
]
}
],
"conditionMatch": "all",
"conditions": [
{
"op": "eq",
"subject": "priority_option"
}
]
}
],
"conditionMatch": "all",
"conditions": [
{
"op": "eq",
"subject": "priority_option"
}
]
}
],
"conditionMatch": "all",
"conditions": [
{
"op": "eq",
"subject": "priority_option"
}
]
}
],
"conditions": [
{
"op": "eq",
"subject": "priority_option"
}
],
"trigger": "TASK_CREATED",
"triggers": [
{
"config": null,
"type": "TASK_CREATED"
}
]
}
}

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"
}
}

Not found.

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"
}
}

Invalid input.

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.