Workflows
Duplicate a workflow
Copy a workflow as <name> (copy), disabled.
POST
/
v2
/
workflows
/
{id}
/
duplicate
Duplicate a workflow
curl --request POST \
--url https://api.opennous.cloud/v2/workflows/{id}/duplicate \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.opennous.cloud/v2/workflows/{id}/duplicate"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.opennous.cloud/v2/workflows/{id}/duplicate', 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.opennous.cloud/v2/workflows/{id}/duplicate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.opennous.cloud/v2/workflows/{id}/duplicate"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.opennous.cloud/v2/workflows/{id}/duplicate")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.opennous.cloud/v2/workflows/{id}/duplicate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"workflow": {
"id": "6a5b4c3d-2e1f-4a0b-9c8d-7e6f5a4b3c2d",
"name": "Daily pipeline digest (copy)",
"enabled": false,
"trigger": {
"type": "clock",
"frequency": "daily",
"at": "08:00"
},
"steps_count": 2,
"last_run_at": null,
"created_at": "2026-09-30T10:00:00Z",
"steps": [
{
"id": "step_1",
"type": "agent",
"prompt": "Summarise what moved in the pipeline since yesterday."
},
{
"id": "step_2",
"type": "email",
"to": "team@yourco.com"
}
],
"owner_user_id": "u1",
"updated_at": "2026-09-30T10:00:00Z",
"artifact": null,
"prompt": "Summarise what moved in the pipeline since yesterday.",
"destination": "email"
}
}
Workflows are in beta. Today the runner executes the first agent step and the first send step. Email and webhook sends are delivered. A Slack step is recorded, but Slack delivery is not wired yet. Other step types are validated and saved but not executed yet.
<name> (copy). The copy is disabled, so it takes no slot on your plan until you switch it on.⌘I
Duplicate a workflow
curl --request POST \
--url https://api.opennous.cloud/v2/workflows/{id}/duplicate \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.opennous.cloud/v2/workflows/{id}/duplicate"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.opennous.cloud/v2/workflows/{id}/duplicate', 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.opennous.cloud/v2/workflows/{id}/duplicate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.opennous.cloud/v2/workflows/{id}/duplicate"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.opennous.cloud/v2/workflows/{id}/duplicate")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.opennous.cloud/v2/workflows/{id}/duplicate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"workflow": {
"id": "6a5b4c3d-2e1f-4a0b-9c8d-7e6f5a4b3c2d",
"name": "Daily pipeline digest (copy)",
"enabled": false,
"trigger": {
"type": "clock",
"frequency": "daily",
"at": "08:00"
},
"steps_count": 2,
"last_run_at": null,
"created_at": "2026-09-30T10:00:00Z",
"steps": [
{
"id": "step_1",
"type": "agent",
"prompt": "Summarise what moved in the pipeline since yesterday."
},
{
"id": "step_2",
"type": "email",
"to": "team@yourco.com"
}
],
"owner_user_id": "u1",
"updated_at": "2026-09-30T10:00:00Z",
"artifact": null,
"prompt": "Summarise what moved in the pipeline since yesterday.",
"destination": "email"
}
}