curl --request PATCH \
--url https://api.tented.ai/v1/email-flows/{flowId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"triggers": [
{
"type": "added_to_static_list",
"list_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"steps": [
{
"type": "send_email",
"step_id": "<string>",
"label": "<string>",
"email_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"operational": true,
"next_step_id": "<string>"
}
],
"disqualification_rules": {
"conditions": "<array>",
"kind": "group",
"operator": "and"
},
"settings": {}
}
'import requests
url = "https://api.tented.ai/v1/email-flows/{flowId}"
payload = {
"name": "<string>",
"description": "<string>",
"triggers": [
{
"type": "added_to_static_list",
"list_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"steps": [
{
"type": "send_email",
"step_id": "<string>",
"label": "<string>",
"email_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"operational": True,
"next_step_id": "<string>"
}
],
"disqualification_rules": {
"conditions": "<array>",
"kind": "group",
"operator": "and"
},
"settings": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
description: '<string>',
triggers: [
{type: 'added_to_static_list', list_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'}
],
steps: [
{
type: 'send_email',
step_id: '<string>',
label: '<string>',
email_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
operational: true,
next_step_id: '<string>'
}
],
disqualification_rules: {conditions: '<array>', kind: 'group', operator: 'and'},
settings: {}
})
};
fetch('https://api.tented.ai/v1/email-flows/{flowId}', 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.tented.ai/v1/email-flows/{flowId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'description' => '<string>',
'triggers' => [
[
'type' => 'added_to_static_list',
'list_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]
],
'steps' => [
[
'type' => 'send_email',
'step_id' => '<string>',
'label' => '<string>',
'email_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'operational' => true,
'next_step_id' => '<string>'
]
],
'disqualification_rules' => [
'conditions' => '<array>',
'kind' => 'group',
'operator' => 'and'
],
'settings' => [
]
]),
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.tented.ai/v1/email-flows/{flowId}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"triggers\": [\n {\n \"type\": \"added_to_static_list\",\n \"list_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n ],\n \"steps\": [\n {\n \"type\": \"send_email\",\n \"step_id\": \"<string>\",\n \"label\": \"<string>\",\n \"email_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"operational\": true,\n \"next_step_id\": \"<string>\"\n }\n ],\n \"disqualification_rules\": {\n \"conditions\": \"<array>\",\n \"kind\": \"group\",\n \"operator\": \"and\"\n },\n \"settings\": {}\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.tented.ai/v1/email-flows/{flowId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"triggers\": [\n {\n \"type\": \"added_to_static_list\",\n \"list_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n ],\n \"steps\": [\n {\n \"type\": \"send_email\",\n \"step_id\": \"<string>\",\n \"label\": \"<string>\",\n \"email_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"operational\": true,\n \"next_step_id\": \"<string>\"\n }\n ],\n \"disqualification_rules\": {\n \"conditions\": \"<array>\",\n \"kind\": \"group\",\n \"operator\": \"and\"\n },\n \"settings\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tented.ai/v1/email-flows/{flowId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"triggers\": [\n {\n \"type\": \"added_to_static_list\",\n \"list_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n ],\n \"steps\": [\n {\n \"type\": \"send_email\",\n \"step_id\": \"<string>\",\n \"label\": \"<string>\",\n \"email_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"operational\": true,\n \"next_step_id\": \"<string>\"\n }\n ],\n \"disqualification_rules\": {\n \"conditions\": \"<array>\",\n \"kind\": \"group\",\n \"operator\": \"and\"\n },\n \"settings\": {}\n}"
response = http.request(request)
puts response.read_body{
"flow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>",
"name": "<string>",
"status": "draft",
"description": "<string>",
"triggers": [
{
"type": "added_to_static_list",
"list_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"steps": [
{
"type": "send_email",
"step_id": "<string>",
"label": "<string>",
"email_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"operational": true,
"next_step_id": "<string>"
}
],
"disqualification_rules": {
"conditions": "<array>",
"kind": "group",
"operator": "and"
},
"reentry_policy": "allow",
"manual_membership_enabled": true,
"settings": {},
"details": {
"total_entered": 123,
"active_count": 123,
"waiting_count": 123,
"completed_count": 123,
"dropped_count": 123,
"most_recent_entry_at": "2023-11-07T05:31:56Z"
},
"archived_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"error": "<string>",
"error_code": "<string>",
"message": "<string>",
"code": "<string>",
"details": {},
"limit": 123,
"current": 123
}{
"error": "<string>",
"error_code": "<string>",
"message": "<string>",
"code": "<string>",
"details": {},
"limit": 123,
"current": 123
}{
"error": "<string>",
"error_code": "<string>",
"message": "<string>",
"code": "<string>",
"details": {},
"limit": 123,
"current": 123
}{
"error": "<string>",
"error_code": "<string>",
"message": "<string>",
"code": "<string>",
"details": {},
"limit": 123,
"current": 123
}Update a flow
Patch flow fields. triggers and steps are full replacements when provided. Setting disqualification_rules on an active flow immediately drops matching members. Structure is editable only while draft or paused.
curl --request PATCH \
--url https://api.tented.ai/v1/email-flows/{flowId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"triggers": [
{
"type": "added_to_static_list",
"list_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"steps": [
{
"type": "send_email",
"step_id": "<string>",
"label": "<string>",
"email_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"operational": true,
"next_step_id": "<string>"
}
],
"disqualification_rules": {
"conditions": "<array>",
"kind": "group",
"operator": "and"
},
"settings": {}
}
'import requests
url = "https://api.tented.ai/v1/email-flows/{flowId}"
payload = {
"name": "<string>",
"description": "<string>",
"triggers": [
{
"type": "added_to_static_list",
"list_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"steps": [
{
"type": "send_email",
"step_id": "<string>",
"label": "<string>",
"email_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"operational": True,
"next_step_id": "<string>"
}
],
"disqualification_rules": {
"conditions": "<array>",
"kind": "group",
"operator": "and"
},
"settings": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
description: '<string>',
triggers: [
{type: 'added_to_static_list', list_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'}
],
steps: [
{
type: 'send_email',
step_id: '<string>',
label: '<string>',
email_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
operational: true,
next_step_id: '<string>'
}
],
disqualification_rules: {conditions: '<array>', kind: 'group', operator: 'and'},
settings: {}
})
};
fetch('https://api.tented.ai/v1/email-flows/{flowId}', 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.tented.ai/v1/email-flows/{flowId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'description' => '<string>',
'triggers' => [
[
'type' => 'added_to_static_list',
'list_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]
],
'steps' => [
[
'type' => 'send_email',
'step_id' => '<string>',
'label' => '<string>',
'email_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'operational' => true,
'next_step_id' => '<string>'
]
],
'disqualification_rules' => [
'conditions' => '<array>',
'kind' => 'group',
'operator' => 'and'
],
'settings' => [
]
]),
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.tented.ai/v1/email-flows/{flowId}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"triggers\": [\n {\n \"type\": \"added_to_static_list\",\n \"list_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n ],\n \"steps\": [\n {\n \"type\": \"send_email\",\n \"step_id\": \"<string>\",\n \"label\": \"<string>\",\n \"email_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"operational\": true,\n \"next_step_id\": \"<string>\"\n }\n ],\n \"disqualification_rules\": {\n \"conditions\": \"<array>\",\n \"kind\": \"group\",\n \"operator\": \"and\"\n },\n \"settings\": {}\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.tented.ai/v1/email-flows/{flowId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"triggers\": [\n {\n \"type\": \"added_to_static_list\",\n \"list_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n ],\n \"steps\": [\n {\n \"type\": \"send_email\",\n \"step_id\": \"<string>\",\n \"label\": \"<string>\",\n \"email_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"operational\": true,\n \"next_step_id\": \"<string>\"\n }\n ],\n \"disqualification_rules\": {\n \"conditions\": \"<array>\",\n \"kind\": \"group\",\n \"operator\": \"and\"\n },\n \"settings\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tented.ai/v1/email-flows/{flowId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"triggers\": [\n {\n \"type\": \"added_to_static_list\",\n \"list_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n ],\n \"steps\": [\n {\n \"type\": \"send_email\",\n \"step_id\": \"<string>\",\n \"label\": \"<string>\",\n \"email_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"operational\": true,\n \"next_step_id\": \"<string>\"\n }\n ],\n \"disqualification_rules\": {\n \"conditions\": \"<array>\",\n \"kind\": \"group\",\n \"operator\": \"and\"\n },\n \"settings\": {}\n}"
response = http.request(request)
puts response.read_body{
"flow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>",
"name": "<string>",
"status": "draft",
"description": "<string>",
"triggers": [
{
"type": "added_to_static_list",
"list_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"steps": [
{
"type": "send_email",
"step_id": "<string>",
"label": "<string>",
"email_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"operational": true,
"next_step_id": "<string>"
}
],
"disqualification_rules": {
"conditions": "<array>",
"kind": "group",
"operator": "and"
},
"reentry_policy": "allow",
"manual_membership_enabled": true,
"settings": {},
"details": {
"total_entered": 123,
"active_count": 123,
"waiting_count": 123,
"completed_count": 123,
"dropped_count": 123,
"most_recent_entry_at": "2023-11-07T05:31:56Z"
},
"archived_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"error": "<string>",
"error_code": "<string>",
"message": "<string>",
"code": "<string>",
"details": {},
"limit": 123,
"current": 123
}{
"error": "<string>",
"error_code": "<string>",
"message": "<string>",
"code": "<string>",
"details": {},
"limit": 123,
"current": 123
}{
"error": "<string>",
"error_code": "<string>",
"message": "<string>",
"code": "<string>",
"details": {},
"limit": 123,
"current": 123
}{
"error": "<string>",
"error_code": "<string>",
"message": "<string>",
"code": "<string>",
"details": {},
"limit": 123,
"current": 123
}Authorizations
Workspace API key, e.g. Authorization: Bearer tented_.... Create keys in Workspace Settings → API Keys.
Path Parameters
Flow ID.
Body
Flow name.
1 - 200Description.
1000Re-entry policy.
allow, no_reentry Full replacement of triggers.
25A flow entry trigger. A flow may define up to 25 triggers. Triggers fire on new events only — activating a flow never retroactively enrolls contacts.
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
Show child attributes
Show child attributes
Full replacement of steps.
100A flow step. A flow may contain up to 100 steps. Steps link via next_step_id (or the branch fields on condition_check); omitting a link ends the flow.
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
- Option 7
- Option 8
- Option 9
Show child attributes
Show child attributes
Disqualification rules. Pass null to clear.
- Option 1
- Option 2
Show child attributes
Show child attributes
Free-form settings (max 16 KB).
Response
Updated flow.
Flow ID.
Always triggered_flow.
Flow name.
Lifecycle state. Structure is editable only while draft or paused.
draft, active, paused, archived Description.
Entry triggers.
A flow entry trigger. A flow may define up to 25 triggers. Triggers fire on new events only — activating a flow never retroactively enrolls contacts.
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
Show child attributes
Show child attributes
Step graph.
A flow step. A flow may contain up to 100 steps. Steps link via next_step_id (or the branch fields on condition_check); omitting a link ends the flow.
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
- Option 7
- Option 8
- Option 9
Show child attributes
Show child attributes
Contacts matching these rules are dropped (evaluated continuously). null when unset.
- Option 1
- Option 2
Show child attributes
Show child attributes
Whether contacts may re-enter after exiting.
allow, no_reentry Whether contacts can be added via the API.
Free-form flow settings (max 16 KB).
Aggregate membership counters.
Show child attributes
Show child attributes
When the flow was archived.
Creation time.
Last update.