Skip to content

Workflows

Workflows define the stages a project moves through — from proposal to completion. Create custom workflows, add stages with colors, and assign workflows to projects.

FieldTypeDescription
iduuidUnique identifier for the workflow
account_iduuidID of the account that owns the workflow
namestringWorkflow (pipeline) name
is_defaultboolWhether this is the account’s default workflow; the default cannot be deleted
stagesobject[]Ordered list of stages in the workflow
created_atdatetimeTimestamp the workflow was created, ISO 8601
updated_atdatetimeTimestamp the workflow was last updated, ISO 8601

Endpoint: workflows-create

FieldTypeRequiredDescription
namestringYesWorkflow (pipeline) name (required)
stagesobject[]YesOrdered list of stages for the workflow; at least one is required
Terminal window
curl -X POST https://api.driftwoodapp.com/api/workflows-create \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name": "...", "stages": []}'

Endpoint: workflows-delete

FieldTypeRequiredDescription
idstringYesID of the workflow to delete; the default workflow cannot be deleted
Terminal window
curl -X POST https://api.driftwoodapp.com/api/workflows-delete \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"id": "..."}'

Endpoint: workflows-get

FieldTypeRequiredDescription
idstringYesID of the workflow to retrieve
Terminal window
curl -X POST https://api.driftwoodapp.com/api/workflows-get \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"id": "..."}'

Endpoint: workflows-list

Endpoint: workflows-set-stages

FieldTypeRequiredDescription
idstringYesID of the workflow whose stages to replace
stagesobject[]YesNew ordered list of stages; at least one is required. Stages currently in use cannot be removed
Terminal window
curl -X POST https://api.driftwoodapp.com/api/workflows-set-stages \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"id": "...", "stages": []}'

Endpoint: workflows-update

FieldTypeRequiredDescription
idstringYesID of the workflow to update
namestringYesUpdated workflow name (required)
Terminal window
curl -X POST https://api.driftwoodapp.com/api/workflows-update \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"id": "...", "name": "..."}'
CodeDescription
workflows.name_requiredName required
workflows.stages_requiredStages required
workflows.stage_label_requiredStage label required
workflows.invalid_idInvalid id
workflows.cannot_delete_defaultCannot delete default
workflows.not_foundNot found
workflows.invalid_stage_idInvalid stage id
workflows.stage_in_useStage in use