Smstools
 

API

Guides

Messages

Voice

WhatsApp Business

Groups

Contacts

Outbox

Account

Sender IDs

Teammate/Subaccount

Conversations

Workflows

Message Templates

Birthday Message

Opt-out

Other

Webhooks (v2)

Update workflow

Writes the editable draft of a workflow. Send only the keys you want to change; nodes and edges always travel together. When the workflow is published and has no draft yet, a new draft version is created next to the published version and the published version keeps running until you call Publish workflow again. An empty body returns error 139.

Base URL:

PATCH: https://api.smsgatewayapi.com/v1/flows/{flow_id}

Example:

PATCH: https://api.smsgatewayapi.com/v1/flows/flw_5d41402abc4b2a76b9719d911017c592
ParameterInputDescription
client_idAPI client IDDeveloper › API & Webhooks › API credentials
Required
client_secretAPI client secretA cs_ credential, shown once when you create it under Developer › API & Webhooks › API credentials
Required
flow_idworkflow IDThe public ID (flw_...) of the workflow as returned by List workflows; the numeric ID is accepted too
Required
namename of the workflow1 to 255 characters
Optional
nodeslist of node objects1 to 200 nodes; replaces the whole definition together with edges
Optional
edgeslist of edge objects0 to 400 edges; always sent together with nodes
Optional
viewport{ x, y, zoom }Position and zoom of the builder canvas
Optional
metaobjectFree-form data that is stored with the version
Optional
<?php
	//PHP - cURL
	$ch = curl_init();
	$url = "https://api.smsgatewayapi.com/v1/flows/{flow_id}";
	$client_id = "XXX"; // Your API client ID (required)
	$client_secret = "YYY"; // Your API client secret (required)
	$data = [
		'name' => "STOP = opt-out (renamed)" //New name (optional); nodes and edges can be sent too, always together
	];
curl_setopt($ch, CURLOPT_URL, "$url"); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PATCH'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_VERBOSE, true); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "X-Client-Id: $client_id", "X-Client-Secret: $client_secret", "Content-Type: application/json", ]); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data)); $response = curl_exec($ch); ?>

Example request:

{
	"name": "STOP = opt-out (renamed)"
}

Example success response:

{
	"id": "flw_5d41402abc4b2a76b9719d911017c592",
	"uuid": "c0a8012e-4f5b-4d6c-8e9f-1a2b3c4d5e6f",
	"name": "STOP = opt-out (renamed)",
	"status": "active",
	"trigger_type": "inbound_message",
	"trigger_config": {
		"triggerType": "inbound_message",
		"inboxId": 0
	},
	"published_version_number": 1,
	"draft_version_number": 2,
	"has_draft_changes": true,
	"published_at": "2026-09-01T09:00:00+02:00",
	"updated_at": "2026-09-08T11:02:41+02:00",
	"nodes": [ ... ],
	"edges": [ ... ],
	"viewport": null,
	"meta": null,
	"version_number": 2,
	"version_status": "draft"
}

The workflow was published (version 1 stays active); the change went into a new draft, version 2.

Example error response:

{
	"error": 139,
	"errorMsg": "Parameters nodes and edges must be sent together"
}

SMS gateway API

Smstools
Bulk SMS gateway integreren via onze SMS API. Hiermee kan je jouw software verbinden met onze SMS gateway om Bulk SMS berichten te versturen en ontvangen. Gratis testaccount. Start direct! SMS gateway API
5 van de 5 op basis van 3313 gebruikersbeoordelingen.
SMSGATEWAYAPI API1

REGISTREER NU

Probeer onze geavanceerde SMS software & API vandaag!

Probeer nu gratis