Skip to main content
POST
/
api
/
workflows
/
{id}
/
activate
Toggle workflow active/paused
curl --request POST \
  --url https://app.puffle.ai/api/workflows/{id}/activate \
  --header 'Authorization: Bearer <token>'
{ "workflow": { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "name": "<string>", "description": "<string>", "status": "draft", "trigger_config": {}, "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" } }

Overview

Toggles a workflow’s status. If currently active, it becomes paused (no validation). Otherwise the server validates the graph before activating — the workflow must have at least one signal_trigger node and at least one action node (add_to_campaign or add_to_list). Missing either returns 400 with a specific message.

AI agent notes

Validation only fires on activation. Pausing an active workflow always succeeds. Activating a draft or paused workflow runs the graph-completeness check.Graph must be saved first. The validator reads workflow_nodes — if you haven’t saved via Bulk save workflow nodes + edges, activation will fail with “Workflow must have a signal trigger node”.Related: Get a workflow, List workflow runs.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<uuid>
required

Workflow UUID.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$

Response

Workflow status toggled. New status in the response body.

workflow
object
required