Skip to content

Deal Workflows

Deal workflows define the stages a deal moves through — from first touch to closed-won or closed-lost. Create multiple pipelines, add stages with colors, and flag stages as open, won, or lost.

FieldTypeDescription
iduuidUnique identifier for the deal workflow
account_iduuidID of the account that owns the workflow
namestringName of the workflow
is_defaultboolTrue when this is the account’s default workflow used for new deals that do not specify one
stagesobject[]Ordered list of stages in the workflow
created_atdatetimeISO 8601 timestamp when the workflow was created
updated_atdatetimeISO 8601 timestamp when the workflow was last updated

Endpoint: deal-workflows-create

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

Endpoint: deal-workflows-delete

Endpoint: deal-workflows-get

Endpoint: deal-workflows-list

Endpoint: deal-workflows-set-stages

FieldTypeRequiredDescription
idstringYesID of the workflow whose stages are being replaced
stagesobject[]YesFull ordered list of stages to set on the workflow; at least one stage is required and existing stages still in use cannot be removed
Terminal window
curl -X POST https://api.driftwoodapp.com/api/deal-workflows-set-stages \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"id": "...", "stages": []}'

Endpoint: deal-workflows-update

CodeDescription
deal_workflows.name_requiredName required
deal_workflows.stages_requiredStages required
deal_workflows.stage_label_requiredStage label required
deal_workflows.invalid_idInvalid id
deal_workflows.cannot_delete_defaultCannot delete default
deal_workflows.not_foundNot found
deal_workflows.invalid_stage_idInvalid stage id
deal_workflows.stage_in_useStage in use