Workflows

Delete a workflow

Delete a workflow. Successful deletion returns 204 No Content. If the workflow is currently sending or has queued contacts, Loops returns 409 Conflict with a message instead of deleting. Retry with confirmDelete: true to delete the workflow, stop sending, and cancel queued contacts.

delete/v1/workflows/{workflowId}

Request body

expectedRevisionIdstring nullable required

The workflow revision token returned by the latest workflow read or mutation. Older workflows may return null before their first revision-aware mutation; pass null back as expectedRevisionId in that case. If the token is stale, the API returns a 409 Conflict error.

confirmDeleteboolean

Set to true after a confirmation-required 409 Conflict response to confirm deleting a sending workflow or a workflow with queued contacts.

Response

Workflow deleted. No response body.

Changes