Preview an automation against a task
curl --request POST \ --url https://example.com/api/v1/projects/example/automations/example/dry-run \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "taskId": "example" }'Requires the projects.manage permission and reach to the project and the task. Reports per trigger whether the task’s own state would fire it now (triggers[].matchesNow, null when only an event can), which conditions hold, whether the configured all/any match succeeds, and what each action would do, in order. Nothing is written: no task change, no activity and no run-log entry. Branch previews are a flat preorder list; nested rows include parentBranchId and depth, and selected marks every node on the matching path. matchedBranchId identifies the selected top-level branch, while actions includes parent actions followed by selected child actions.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Resource identifier (CUID2).
Resource identifier (CUID2).
Project automation identifier (CUID2).
Project automation identifier (CUID2).
Request Body
Section titled “Request Body”object
Task the automation is evaluated against.
Example generated
{ "taskId": "example"}Responses
Section titled “Responses”The preview.
object
Read-only evaluation: matchedBranchId identifies the selected top-level branch. Branch previews are in preorder, with parentBranchId and depth on nested rows; selected marks every node on the matching path. Actions include parent actions before selected child actions.
object
object
object
object
object
True for an AI condition. A dry run never calls the model, so it reports holds: true for it and previews the actions as if the AI answered as the condition asks.
Nested level relative to the root; omitted for top-level branches.
Parent branch ID; omitted for top-level branches.
object
True for an AI condition. A dry run never calls the model, so it reports holds: true for it and previews the actions as if the AI answered as the condition asks.
What each trigger of the automation would do for the task, in editor order.
object
object
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).
TASK_CUSTOM_FIELD_CHANGED: stable ID of the project or workspace custom field.
TASK_LABEL_ADDED or TASK_LABEL_REMOVED: stable ID of the tag (required).
TASK_STATUS_CHANGED: optional destination status; omit for any status. TASK_IN_STATUS_FOR: the status the task sits in (required).
True or false when the task’s own state decides the trigger (scheduled dates, completion); null when only an event can fire it.
Example
{ "data": { "triggers": [ { "type": "TASK_CREATED" } ] }}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" }}Not found.
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" }}Invalid input.
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