Get Call Flow
curl --request GET \
--url https://api.trillet.ai/v1/api/call-flows/{id} \
--header 'x-api-key: <api-key>' \
--header 'x-workspace-id: <x-workspace-id>'import requests
url = "https://api.trillet.ai/v1/api/call-flows/{id}"
headers = {
"x-api-key": "<api-key>",
"x-workspace-id": "<x-workspace-id>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'x-api-key': '<api-key>', 'x-workspace-id': '<x-workspace-id>'}
};
fetch('https://api.trillet.ai/v1/api/call-flows/{id}', 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.trillet.ai/v1/api/call-flows/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>",
"x-workspace-id: <x-workspace-id>"
],
]);
$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.trillet.ai/v1/api/call-flows/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("x-workspace-id", "<x-workspace-id>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.trillet.ai/v1/api/call-flows/{id}")
.header("x-api-key", "<api-key>")
.header("x-workspace-id", "<x-workspace-id>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.trillet.ai/v1/api/call-flows/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
request["x-workspace-id"] = '<x-workspace-id>'
response = http.request(request)
puts response.read_body{
"_id": "exampleId",
"workspaceId": "workspacePlaceholder",
"name": "Customer Support Flow",
"direction": "inbound",
"description": "Handles inbound support calls",
"agent": "agentPlaceholder",
"promptType": "simple",
"flowData": {
"nodes": [],
"edges": []
},
"prompt": "Keep the conversation short and friendly.",
"isActive": true,
"settings": {
"knowledgeBases": [],
"responseSettings": { "delay": 0 },
"security": { "hipaaCompliance": false },
"callSetting": { "maxCallDuration": 600, "endCallOnSilence": 10 }
},
"createdAt": "2025-01-03T11:00:00Z",
"updatedAt": "2025-01-03T11:10:00Z"
}
Call Flows
Get Call Flow
Retrieve a specific call flow by its ID.
GET
/
v1
/
api
/
call-flows
/
{id}
Get Call Flow
curl --request GET \
--url https://api.trillet.ai/v1/api/call-flows/{id} \
--header 'x-api-key: <api-key>' \
--header 'x-workspace-id: <x-workspace-id>'import requests
url = "https://api.trillet.ai/v1/api/call-flows/{id}"
headers = {
"x-api-key": "<api-key>",
"x-workspace-id": "<x-workspace-id>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'x-api-key': '<api-key>', 'x-workspace-id': '<x-workspace-id>'}
};
fetch('https://api.trillet.ai/v1/api/call-flows/{id}', 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.trillet.ai/v1/api/call-flows/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>",
"x-workspace-id: <x-workspace-id>"
],
]);
$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.trillet.ai/v1/api/call-flows/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("x-workspace-id", "<x-workspace-id>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.trillet.ai/v1/api/call-flows/{id}")
.header("x-api-key", "<api-key>")
.header("x-workspace-id", "<x-workspace-id>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.trillet.ai/v1/api/call-flows/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
request["x-workspace-id"] = '<x-workspace-id>'
response = http.request(request)
puts response.read_body{
"_id": "exampleId",
"workspaceId": "workspacePlaceholder",
"name": "Customer Support Flow",
"direction": "inbound",
"description": "Handles inbound support calls",
"agent": "agentPlaceholder",
"promptType": "simple",
"flowData": {
"nodes": [],
"edges": []
},
"prompt": "Keep the conversation short and friendly.",
"isActive": true,
"settings": {
"knowledgeBases": [],
"responseSettings": { "delay": 0 },
"security": { "hipaaCompliance": false },
"callSetting": { "maxCallDuration": 600, "endCallOnSilence": 10 }
},
"createdAt": "2025-01-03T11:00:00Z",
"updatedAt": "2025-01-03T11:10:00Z"
}
Headers
string
required
API key used for authenticating requests to the API.
string
required
Workspace identifier for the API.
Path Parameters
string
required
The unique ID of the call flow.
Response Fields
string
The unique identifier for the call flow.
string
The identifier of the workspace where the call flow is configured.
string
The name assigned to the call flow.
string
Indicates the direction of the call flow, such as “inbound”.
string
A brief description of what the call flow is designed to handle.
string
The ID of the agent associated with this call flow.
string
The type of prompt used in the call flow, such as “simple”.
object
string
The initial or system prompt that is presented in the call flow.
boolean
Indicates whether the call flow is currently active.
object
The configuration settings for the call flow, including details on knowledge bases, response settings, security measures, and call settings.
array
An array of references to knowledge bases included in the call flow.
object
Settings related to response timing within the call flow.
number
The delay before a response is issued, measured in seconds.
object
Security settings relevant to the call flow.
boolean
Indicates whether HIPAA compliance is enabled.
string
Timestamp when the call flow was created.
string
Timestamp when the call flow was last updated.
{
"_id": "exampleId",
"workspaceId": "workspacePlaceholder",
"name": "Customer Support Flow",
"direction": "inbound",
"description": "Handles inbound support calls",
"agent": "agentPlaceholder",
"promptType": "simple",
"flowData": {
"nodes": [],
"edges": []
},
"prompt": "Keep the conversation short and friendly.",
"isActive": true,
"settings": {
"knowledgeBases": [],
"responseSettings": { "delay": 0 },
"security": { "hipaaCompliance": false },
"callSetting": { "maxCallDuration": 600, "endCallOnSilence": 10 }
},
"createdAt": "2025-01-03T11:00:00Z",
"updatedAt": "2025-01-03T11:10:00Z"
}
