Workflow Nodes
Add Node
deprecated
Add a step to a workflow, such as a voice call, delay, condition, or action.
POST
/
workflows
/
{id}
/
nodes
Create a node in a workflow
curl --request POST \
--url https://api.dialnexa.com/workflows/{id}/nodes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"node_type": "VOICE_CALL",
"label": "Initial Call",
"position_x": 100,
"position_y": 200,
"config": "<unknown>"
}
'import requests
url = "https://api.dialnexa.com/workflows/{id}/nodes"
payload = {
"node_type": "VOICE_CALL",
"label": "Initial Call",
"position_x": 100,
"position_y": 200,
"config": "<unknown>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
node_type: 'VOICE_CALL',
label: 'Initial Call',
position_x: 100,
position_y: 200,
config: '<unknown>'
})
};
fetch('https://api.dialnexa.com/workflows/{id}/nodes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.dialnexa.com/workflows/{id}/nodes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'node_type' => 'VOICE_CALL',
'label' => 'Initial Call',
'position_x' => 100,
'position_y' => 200,
'config' => '<unknown>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.dialnexa.com/workflows/{id}/nodes"
payload := strings.NewReader("{\n \"node_type\": \"VOICE_CALL\",\n \"label\": \"Initial Call\",\n \"position_x\": 100,\n \"position_y\": 200,\n \"config\": \"<unknown>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.dialnexa.com/workflows/{id}/nodes")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"node_type\": \"VOICE_CALL\",\n \"label\": \"Initial Call\",\n \"position_x\": 100,\n \"position_y\": 200,\n \"config\": \"<unknown>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dialnexa.com/workflows/{id}/nodes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"node_type\": \"VOICE_CALL\",\n \"label\": \"Initial Call\",\n \"position_x\": 100,\n \"position_y\": 200,\n \"config\": \"<unknown>\"\n}"
response = http.request(request)
puts response.read_bodyLegacy endpoint - deprecated. Unversioned endpoints are scheduled for removal on July 31, 2026. A public v1 replacement is not currently listed in the v1 reference. This endpoint remains available for existing integrations until then.
Node types
node_type | What it does |
|---|---|
VOICE_CALL | Places an outbound call to the lead using the specified agent. |
TIME | Waits for a configured duration before moving to the next step. |
CONDITIONAL | Branches the workflow based on a condition (e.g., call outcome). |
APPLICATION | Triggers an external action (e.g., a webhook or CRM update). |
CONVERTED | Terminal node that marks the lead as successfully converted. |
DROPPED | Terminal node that marks the lead as dropped from the sequence. |
VOICE_CALL config example
{
"node_type": "VOICE_CALL",
"label": "First Outreach Call",
"position_x": 100,
"position_y": 100,
"config": {
"agent_id": "agt_abc123",
"from_phone_number": "+912234567890"
}
}
TIME delay config example
{
"node_type": "TIME",
"label": "Wait 2 Days",
"config": {
"delay_hours": 48
}
}
CONDITIONAL config example
{
"node_type": "CONDITIONAL",
"label": "Check Call Outcome",
"config": {
"condition_field": "call_status",
"branches": ["COMPLETED", "FAILED", "NO_ANSWER"]
}
}
COMPLETED, FAILED, etc.) leading to the appropriate next node.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
application/json
Type of the node
Available options:
VOICE_CALL, CONDITIONAL, TIME, APPLICATION, CONVERTED, DROPPED Example:
"VOICE_CALL"
Label/name of the node
Example:
"Initial Call"
X position for UI
Example:
100
Y position for UI
Example:
200
Node-specific configuration (varies by node type)
Response
201
Node created successfully
Was this page helpful?
Previous
List NodesRetrieve every node in a workflow, including type, label, and configuration, for rebuilding the workflow graph.
Next
⌘I
Create a node in a workflow
curl --request POST \
--url https://api.dialnexa.com/workflows/{id}/nodes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"node_type": "VOICE_CALL",
"label": "Initial Call",
"position_x": 100,
"position_y": 200,
"config": "<unknown>"
}
'import requests
url = "https://api.dialnexa.com/workflows/{id}/nodes"
payload = {
"node_type": "VOICE_CALL",
"label": "Initial Call",
"position_x": 100,
"position_y": 200,
"config": "<unknown>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
node_type: 'VOICE_CALL',
label: 'Initial Call',
position_x: 100,
position_y: 200,
config: '<unknown>'
})
};
fetch('https://api.dialnexa.com/workflows/{id}/nodes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.dialnexa.com/workflows/{id}/nodes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'node_type' => 'VOICE_CALL',
'label' => 'Initial Call',
'position_x' => 100,
'position_y' => 200,
'config' => '<unknown>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.dialnexa.com/workflows/{id}/nodes"
payload := strings.NewReader("{\n \"node_type\": \"VOICE_CALL\",\n \"label\": \"Initial Call\",\n \"position_x\": 100,\n \"position_y\": 200,\n \"config\": \"<unknown>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.dialnexa.com/workflows/{id}/nodes")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"node_type\": \"VOICE_CALL\",\n \"label\": \"Initial Call\",\n \"position_x\": 100,\n \"position_y\": 200,\n \"config\": \"<unknown>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dialnexa.com/workflows/{id}/nodes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"node_type\": \"VOICE_CALL\",\n \"label\": \"Initial Call\",\n \"position_x\": 100,\n \"position_y\": 200,\n \"config\": \"<unknown>\"\n}"
response = http.request(request)
puts response.read_body