curl --request POST \
--url https://api2.getsales.io/playtables/v1/api/workflows/{sid}/duplicate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Team-SID: <api-key>' \
--data '
{
"name": "<string>",
"playtable_sid": "<string>",
"dry_run": true
}
'import requests
url = "https://api2.getsales.io/playtables/v1/api/workflows/{sid}/duplicate"
payload = {
"name": "<string>",
"playtable_sid": "<string>",
"dry_run": True
}
headers = {
"Authorization": "Bearer <token>",
"Team-SID": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'Team-SID': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({name: '<string>', playtable_sid: '<string>', dry_run: true})
};
fetch('https://api2.getsales.io/playtables/v1/api/workflows/{sid}/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://api2.getsales.io/playtables/v1/api/workflows/{sid}/duplicate",
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([
'name' => '<string>',
'playtable_sid' => '<string>',
'dry_run' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Team-SID: <api-key>"
],
]);
$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://api2.getsales.io/playtables/v1/api/workflows/{sid}/duplicate"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"playtable_sid\": \"<string>\",\n \"dry_run\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Team-SID", "<api-key>")
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://api2.getsales.io/playtables/v1/api/workflows/{sid}/duplicate")
.header("Authorization", "Bearer <token>")
.header("Team-SID", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"playtable_sid\": \"<string>\",\n \"dry_run\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api2.getsales.io/playtables/v1/api/workflows/{sid}/duplicate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Team-SID"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"playtable_sid\": \"<string>\",\n \"dry_run\": true\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"operation": "action",
"action": "<string>",
"item": {
"sid": "<string>",
"team_sid": "<string>",
"name": "<string>",
"description": "<string>",
"status": "draft",
"published_version_sid": "<string>",
"draft_steps": [
{
"type": "linkedin_send_connection_request",
"id": 2,
"name": "<string>",
"message": "<string>",
"required_fields": {
"refs": [
"<string>"
],
"on_missing": "fail"
}
}
],
"schedule": {
"timeblocks": [
{
"dow": 3,
"start_minute": 719,
"end_minute": 720
}
],
"timezone": "<string>",
"use_people_timezone": true
},
"on_reply": "ai_sdr",
"agent_sid": "<string>",
"sender_profile_sids": [
"<string>"
],
"rotation_strategy": "fair",
"priority": 123,
"created_by": {
"actor_type": "user",
"actor_sid": "<string>",
"team_sid": "<string>",
"permissions": {},
"actor_name": "<string>",
"oauth_client_sid": "<string>",
"reason": "<string>",
"cluster_id": 123,
"trace_id": "<string>"
},
"deleted_by": {
"actor_type": "user",
"actor_sid": "<string>",
"team_sid": "<string>",
"permissions": {},
"actor_name": "<string>",
"oauth_client_sid": "<string>",
"reason": "<string>",
"cluster_id": 123,
"trace_id": "<string>"
},
"created_at": "<string>",
"updated_at": "<string>",
"deleted_at": "<string>"
},
"result": {
"source_sid": "<string>",
"playtable_sid": "<string>",
"dry_run": true,
"missing_columns": [
{
"ref": "<string>",
"name": "<string>",
"step_ids": [
1
]
}
]
},
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"team_sid": "<string>",
"actor_type": "<string>"
}
}{
"success": false,
"error": {
"code": "validation_failed",
"message": "<string>",
"recoverable": true,
"suggestion": "<string>",
"field_errors": {},
"blockers": [
{
"type": "<string>",
"severity": "hard",
"description": "<string>",
"entity_sid": "<string>",
"resolution": "<string>",
"resolution_hint": "<string>",
"count": 123
}
],
"context": {}
},
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"team_sid": "<string>",
"actor_type": "<string>"
}
}{
"success": false,
"error": {
"code": "validation_failed",
"message": "<string>",
"recoverable": true,
"suggestion": "<string>",
"field_errors": {},
"blockers": [
{
"type": "<string>",
"severity": "hard",
"description": "<string>",
"entity_sid": "<string>",
"resolution": "<string>",
"resolution_hint": "<string>",
"count": 123
}
],
"context": {}
},
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"team_sid": "<string>",
"actor_type": "<string>"
}
}Duplicate workflow
Copy a workflow as a draft, into its own table or into another one (playtable_sid). The copy carries the steps, the sender profiles that still exist, rotation, priority, schedule, on_reply, the AI SDR pick and the canvas notes on the same steps; it has no audience (add a source or add_workflow_people after publishing), no version and no history, and every step is numbered again from 1. Every call makes a new copy.
In another table a run_column step takes that table’s action column of the same slug, or comes over with field_sid null when there is none; slugs in texts, conditions and set_field steps are kept as written. result.missing_columns names every column the steps read that the copy’s table lacks: fix those steps (update_workflow) or add the columns (create_playtable_field) before publish_workflow, since a text that reads a missing column fails each send by the step’s empty-value rule. dry_run: true answers missing_columns alone and writes nothing: call it first to tell the user what would not carry over.
Use it for “the same sequence for another table” and “a variant of this workflow to edit”. A whole table with its workflows is duplicate_playtable.
Contract:
- MCP tool
duplicate_workflow, registry packagemcp.playtables/workflows, mountplaytables.workflows. - Operation
action, response envelopeaction. - Flags: none.
curl --request POST \
--url https://api2.getsales.io/playtables/v1/api/workflows/{sid}/duplicate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Team-SID: <api-key>' \
--data '
{
"name": "<string>",
"playtable_sid": "<string>",
"dry_run": true
}
'import requests
url = "https://api2.getsales.io/playtables/v1/api/workflows/{sid}/duplicate"
payload = {
"name": "<string>",
"playtable_sid": "<string>",
"dry_run": True
}
headers = {
"Authorization": "Bearer <token>",
"Team-SID": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'Team-SID': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({name: '<string>', playtable_sid: '<string>', dry_run: true})
};
fetch('https://api2.getsales.io/playtables/v1/api/workflows/{sid}/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://api2.getsales.io/playtables/v1/api/workflows/{sid}/duplicate",
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([
'name' => '<string>',
'playtable_sid' => '<string>',
'dry_run' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Team-SID: <api-key>"
],
]);
$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://api2.getsales.io/playtables/v1/api/workflows/{sid}/duplicate"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"playtable_sid\": \"<string>\",\n \"dry_run\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Team-SID", "<api-key>")
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://api2.getsales.io/playtables/v1/api/workflows/{sid}/duplicate")
.header("Authorization", "Bearer <token>")
.header("Team-SID", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"playtable_sid\": \"<string>\",\n \"dry_run\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api2.getsales.io/playtables/v1/api/workflows/{sid}/duplicate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Team-SID"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"playtable_sid\": \"<string>\",\n \"dry_run\": true\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"operation": "action",
"action": "<string>",
"item": {
"sid": "<string>",
"team_sid": "<string>",
"name": "<string>",
"description": "<string>",
"status": "draft",
"published_version_sid": "<string>",
"draft_steps": [
{
"type": "linkedin_send_connection_request",
"id": 2,
"name": "<string>",
"message": "<string>",
"required_fields": {
"refs": [
"<string>"
],
"on_missing": "fail"
}
}
],
"schedule": {
"timeblocks": [
{
"dow": 3,
"start_minute": 719,
"end_minute": 720
}
],
"timezone": "<string>",
"use_people_timezone": true
},
"on_reply": "ai_sdr",
"agent_sid": "<string>",
"sender_profile_sids": [
"<string>"
],
"rotation_strategy": "fair",
"priority": 123,
"created_by": {
"actor_type": "user",
"actor_sid": "<string>",
"team_sid": "<string>",
"permissions": {},
"actor_name": "<string>",
"oauth_client_sid": "<string>",
"reason": "<string>",
"cluster_id": 123,
"trace_id": "<string>"
},
"deleted_by": {
"actor_type": "user",
"actor_sid": "<string>",
"team_sid": "<string>",
"permissions": {},
"actor_name": "<string>",
"oauth_client_sid": "<string>",
"reason": "<string>",
"cluster_id": 123,
"trace_id": "<string>"
},
"created_at": "<string>",
"updated_at": "<string>",
"deleted_at": "<string>"
},
"result": {
"source_sid": "<string>",
"playtable_sid": "<string>",
"dry_run": true,
"missing_columns": [
{
"ref": "<string>",
"name": "<string>",
"step_ids": [
1
]
}
]
},
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"team_sid": "<string>",
"actor_type": "<string>"
}
}{
"success": false,
"error": {
"code": "validation_failed",
"message": "<string>",
"recoverable": true,
"suggestion": "<string>",
"field_errors": {},
"blockers": [
{
"type": "<string>",
"severity": "hard",
"description": "<string>",
"entity_sid": "<string>",
"resolution": "<string>",
"resolution_hint": "<string>",
"count": 123
}
],
"context": {}
},
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"team_sid": "<string>",
"actor_type": "<string>"
}
}{
"success": false,
"error": {
"code": "validation_failed",
"message": "<string>",
"recoverable": true,
"suggestion": "<string>",
"field_errors": {},
"blockers": [
{
"type": "<string>",
"severity": "hard",
"description": "<string>",
"entity_sid": "<string>",
"resolution": "<string>",
"resolution_hint": "<string>",
"count": 123
}
],
"context": {}
},
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"team_sid": "<string>",
"actor_type": "<string>"
}
}Authorizations
Path Parameters
Body
Request body of duplicate_workflow.
Response
action success envelope.