Skip to main content
Discard the draft for a workflow, leaving the live version untouched.

Overview

The Delete Workflow Draft endpoint removes the staged draft for a workflow. The live (published) workflow is unaffected — only the in-progress changes are thrown away. Use this when you want to abandon a round of edits and start fresh.

Authentication

Requires a valid API key. No special permission scope is needed beyond a valid key.

Key Features

  • Non-Destructive: The live workflow is preserved
  • Safe Reset: Abandon draft changes without touching execution history
  • No Credit Cost: This endpoint is free to use
curl -X DELETE "https://api.trigify.io/v1/workflows/wf_abc123/draft" \
  -H "x-api-key: YOUR_API_KEY"

Path Parameters

ParameterTypeDescription
idstringThe unique workflow ID

Example Response

{
  "message": "Draft deleted successfully",
  "success": true,
  "data": {
    "deleted": true,
    "workflow_id": "wf_abc123"
  }
}

Response Fields

FieldTypeDescription
messagestringHuman-readable status message
successbooleantrue on success
data.deletedbooleanAlways true on success
data.workflow_idstringThe ID of the workflow whose draft was deleted

Credit Usage

This endpoint is free and does not consume credits.