Update flow-level settings
curl --request PATCH \
--url https://app.pepline.ai/api/v1/agents/{agent_slug}/flow \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"flow": {
"idle_minutes": 11
}
}
'import requests
url = "https://app.pepline.ai/api/v1/agents/{agent_slug}/flow"
payload = { "flow": { "idle_minutes": 11 } }
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({flow: {idle_minutes: 11}})
};
fetch('https://app.pepline.ai/api/v1/agents/{agent_slug}/flow', 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://app.pepline.ai/api/v1/agents/{agent_slug}/flow",
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([
'flow' => [
'idle_minutes' => 11
]
]),
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://app.pepline.ai/api/v1/agents/{agent_slug}/flow"
payload := strings.NewReader("{\n \"flow\": {\n \"idle_minutes\": 11\n }\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://app.pepline.ai/api/v1/agents/{agent_slug}/flow")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"flow\": {\n \"idle_minutes\": 11\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.pepline.ai/api/v1/agents/{agent_slug}/flow")
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 \"flow\": {\n \"idle_minutes\": 11\n }\n}"
response = http.request(request)
puts response.read_body{
"object": "flow",
"agent": "<string>",
"name": "<string>",
"version": 123,
"phases": [
{
"object": "flow_state",
"id": 123,
"key": "<string>",
"title": "<string>",
"position": 123,
"kind": "step",
"objective": "<string>",
"exit_criteria": "<string>",
"max_turns": 123,
"tool_settings": {},
"archived": true,
"slots": [
{
"object": "information_slot",
"id": 123,
"key": "<string>",
"title": "<string>",
"data_type": "string",
"archived": true,
"required": true,
"enum_values": [
"<string>"
],
"enum_labels": {},
"translations": {},
"description": "<string>"
}
],
"tools": [
"<string>"
]
}
],
"archetype": "<string>",
"idle_minutes": 123
}{
"error": {
"type": "authentication_error",
"code": "missing_api_key",
"message": "<string>",
"param": "<string>"
}
}{
"error": {
"type": "authentication_error",
"code": "missing_api_key",
"message": "<string>",
"param": "<string>"
}
}{
"error": {
"type": "authentication_error",
"code": "missing_api_key",
"message": "<string>",
"param": "<string>"
}
}Flow
Update flow-level settings
Flow-level knobs. idle_minutes: minutes of visitor silence before the conversation pauses (idle-abandoned; the visitor can resume it for 7 days). Minimum 10; null = never pauses. Trial-compiles; applies to conversations started afterwards.
PATCH
/
agents
/
{agent_slug}
/
flow
Update flow-level settings
curl --request PATCH \
--url https://app.pepline.ai/api/v1/agents/{agent_slug}/flow \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"flow": {
"idle_minutes": 11
}
}
'import requests
url = "https://app.pepline.ai/api/v1/agents/{agent_slug}/flow"
payload = { "flow": { "idle_minutes": 11 } }
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({flow: {idle_minutes: 11}})
};
fetch('https://app.pepline.ai/api/v1/agents/{agent_slug}/flow', 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://app.pepline.ai/api/v1/agents/{agent_slug}/flow",
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([
'flow' => [
'idle_minutes' => 11
]
]),
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://app.pepline.ai/api/v1/agents/{agent_slug}/flow"
payload := strings.NewReader("{\n \"flow\": {\n \"idle_minutes\": 11\n }\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://app.pepline.ai/api/v1/agents/{agent_slug}/flow")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"flow\": {\n \"idle_minutes\": 11\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.pepline.ai/api/v1/agents/{agent_slug}/flow")
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 \"flow\": {\n \"idle_minutes\": 11\n }\n}"
response = http.request(request)
puts response.read_body{
"object": "flow",
"agent": "<string>",
"name": "<string>",
"version": 123,
"phases": [
{
"object": "flow_state",
"id": 123,
"key": "<string>",
"title": "<string>",
"position": 123,
"kind": "step",
"objective": "<string>",
"exit_criteria": "<string>",
"max_turns": 123,
"tool_settings": {},
"archived": true,
"slots": [
{
"object": "information_slot",
"id": 123,
"key": "<string>",
"title": "<string>",
"data_type": "string",
"archived": true,
"required": true,
"enum_values": [
"<string>"
],
"enum_labels": {},
"translations": {},
"description": "<string>"
}
],
"tools": [
"<string>"
]
}
],
"archetype": "<string>",
"idle_minutes": 123
}{
"error": {
"type": "authentication_error",
"code": "missing_api_key",
"message": "<string>",
"param": "<string>"
}
}{
"error": {
"type": "authentication_error",
"code": "missing_api_key",
"message": "<string>",
"param": "<string>"
}
}{
"error": {
"type": "authentication_error",
"code": "missing_api_key",
"message": "<string>",
"param": "<string>"
}
}Authorizations
Your secret key (pep_sk_…) from Settings → API. Keys are org-scoped; treat them like passwords.
Path Parameters
Body
application/json
Show child attributes
Show child attributes
Response
The updated flow.

