Typescript (SDK)
import { SyllableSDK } from "syllable-sdk";
const syllableSDK = new SyllableSDK({
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
});
async function run() {
const result = await syllableSDK.insights.workflows.queueWork({
workflowName: "summary-workflow",
});
console.log(result);
}
run();import os
from syllable_sdk import SyllableSDK
with SyllableSDK(
api_key_header=os.getenv("SYLLABLESDK_API_KEY_HEADER", ""),
) as ss_client:
res = ss_client.insights.workflows.queue_work(request={
"workflow_name": "summary-workflow",
})
# Handle response
print(res)curl --request POST \
--url https://api.syllable.cloud/api/v1/insights/workflows/queue-work \
--header 'Content-Type: application/json' \
--header 'Syllable-API-Key: <api-key>' \
--data '
{
"workflow_name": "<string>",
"session_id_list": "[12334,23445,34556]",
"file_id_list": "[1234,1678,2224]"
}
'const options = {
method: 'POST',
headers: {'Syllable-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
workflow_name: '<string>',
session_id_list: '[12334,23445,34556]',
file_id_list: '[1234,1678,2224]'
})
};
fetch('https://api.syllable.cloud/api/v1/insights/workflows/queue-work', 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.syllable.cloud/api/v1/insights/workflows/queue-work",
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([
'workflow_name' => '<string>',
'session_id_list' => '[12334,23445,34556]',
'file_id_list' => '[1234,1678,2224]'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"Syllable-API-Key: <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://api.syllable.cloud/api/v1/insights/workflows/queue-work"
payload := strings.NewReader("{\n \"workflow_name\": \"<string>\",\n \"session_id_list\": \"[12334,23445,34556]\",\n \"file_id_list\": \"[1234,1678,2224]\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Syllable-API-Key", "<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://api.syllable.cloud/api/v1/insights/workflows/queue-work")
.header("Syllable-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"workflow_name\": \"<string>\",\n \"session_id_list\": \"[12334,23445,34556]\",\n \"file_id_list\": \"[1234,1678,2224]\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.syllable.cloud/api/v1/insights/workflows/queue-work")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Syllable-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"workflow_name\": \"<string>\",\n \"session_id_list\": \"[12334,23445,34556]\",\n \"file_id_list\": \"[1234,1678,2224]\"\n}"
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}insights.workflows
Queue Insights Workflow For Sessions/Files
Manually queue sessions for insights workflow evaluation.
POST
/
api
/
v1
/
insights
/
workflows
/
queue-work
Typescript (SDK)
import { SyllableSDK } from "syllable-sdk";
const syllableSDK = new SyllableSDK({
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
});
async function run() {
const result = await syllableSDK.insights.workflows.queueWork({
workflowName: "summary-workflow",
});
console.log(result);
}
run();import os
from syllable_sdk import SyllableSDK
with SyllableSDK(
api_key_header=os.getenv("SYLLABLESDK_API_KEY_HEADER", ""),
) as ss_client:
res = ss_client.insights.workflows.queue_work(request={
"workflow_name": "summary-workflow",
})
# Handle response
print(res)curl --request POST \
--url https://api.syllable.cloud/api/v1/insights/workflows/queue-work \
--header 'Content-Type: application/json' \
--header 'Syllable-API-Key: <api-key>' \
--data '
{
"workflow_name": "<string>",
"session_id_list": "[12334,23445,34556]",
"file_id_list": "[1234,1678,2224]"
}
'const options = {
method: 'POST',
headers: {'Syllable-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
workflow_name: '<string>',
session_id_list: '[12334,23445,34556]',
file_id_list: '[1234,1678,2224]'
})
};
fetch('https://api.syllable.cloud/api/v1/insights/workflows/queue-work', 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.syllable.cloud/api/v1/insights/workflows/queue-work",
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([
'workflow_name' => '<string>',
'session_id_list' => '[12334,23445,34556]',
'file_id_list' => '[1234,1678,2224]'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"Syllable-API-Key: <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://api.syllable.cloud/api/v1/insights/workflows/queue-work"
payload := strings.NewReader("{\n \"workflow_name\": \"<string>\",\n \"session_id_list\": \"[12334,23445,34556]\",\n \"file_id_list\": \"[1234,1678,2224]\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Syllable-API-Key", "<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://api.syllable.cloud/api/v1/insights/workflows/queue-work")
.header("Syllable-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"workflow_name\": \"<string>\",\n \"session_id_list\": \"[12334,23445,34556]\",\n \"file_id_list\": \"[1234,1678,2224]\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.syllable.cloud/api/v1/insights/workflows/queue-work")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Syllable-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"workflow_name\": \"<string>\",\n \"session_id_list\": \"[12334,23445,34556]\",\n \"file_id_list\": \"[1234,1678,2224]\"\n}"
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Body
application/json
Session identifier for workflow queue.
Response
Successful Response
⌘I

