curl --request PUT \
--url https://api.streamkap.com/agents/connections \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"llmConnections": [
{
"name": "<string>",
"capabilities": [],
"id": "<string>",
"apiKey": "",
"baseUrl": "<string>",
"chat": {
"model": "",
"temperature": 0.1,
"maxTokens": 1024,
"timeout": 120,
"thinkingBudgetTokens": 32000,
"ollamaThink": true,
"maxRetries": 10,
"region": "<string>",
"strict": true,
"store": true,
"instructions": "<string>",
"additionalKwargs": {},
"apiVersion": "<string>",
"azureEndpoint": "<string>"
},
"embedding": {
"model": "",
"dimensions": 32768,
"batchSize": 100,
"region": "<string>",
"maxRetries": 10
},
"description": "<string>"
}
],
"mcpConnections": [
{
"name": "<string>",
"source": "streamkap",
"serverUrl": "<string>",
"headers": {}
}
],
"httpConnections": [
{
"name": "<string>",
"id": "<string>",
"baseUrl": "<string>",
"headers": {},
"description": "<string>"
}
],
"vectorStoreConnections": [
{
"name": "<string>",
"id": "<string>",
"apiKey": "",
"endpoint": "<string>",
"defaultNamespace": "<string>",
"allowHashFallback": false,
"jdbcUrl": "<string>",
"username": "<string>",
"password": "<string>",
"table": "<string>",
"dims": 1,
"metric": "<string>",
"properties": {},
"description": "<string>"
}
]
}
'import requests
url = "https://api.streamkap.com/agents/connections"
payload = {
"llmConnections": [
{
"name": "<string>",
"capabilities": [],
"id": "<string>",
"apiKey": "",
"baseUrl": "<string>",
"chat": {
"model": "",
"temperature": 0.1,
"maxTokens": 1024,
"timeout": 120,
"thinkingBudgetTokens": 32000,
"ollamaThink": True,
"maxRetries": 10,
"region": "<string>",
"strict": True,
"store": True,
"instructions": "<string>",
"additionalKwargs": {},
"apiVersion": "<string>",
"azureEndpoint": "<string>"
},
"embedding": {
"model": "",
"dimensions": 32768,
"batchSize": 100,
"region": "<string>",
"maxRetries": 10
},
"description": "<string>"
}
],
"mcpConnections": [
{
"name": "<string>",
"source": "streamkap",
"serverUrl": "<string>",
"headers": {}
}
],
"httpConnections": [
{
"name": "<string>",
"id": "<string>",
"baseUrl": "<string>",
"headers": {},
"description": "<string>"
}
],
"vectorStoreConnections": [
{
"name": "<string>",
"id": "<string>",
"apiKey": "",
"endpoint": "<string>",
"defaultNamespace": "<string>",
"allowHashFallback": False,
"jdbcUrl": "<string>",
"username": "<string>",
"password": "<string>",
"table": "<string>",
"dims": 1,
"metric": "<string>",
"properties": {},
"description": "<string>"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
llmConnections: [
{
name: '<string>',
capabilities: [],
id: '<string>',
apiKey: '',
baseUrl: '<string>',
chat: {
model: '',
temperature: 0.1,
maxTokens: 1024,
timeout: 120,
thinkingBudgetTokens: 32000,
ollamaThink: true,
maxRetries: 10,
region: '<string>',
strict: true,
store: true,
instructions: '<string>',
additionalKwargs: {},
apiVersion: '<string>',
azureEndpoint: '<string>'
},
embedding: {
model: '',
dimensions: 32768,
batchSize: 100,
region: '<string>',
maxRetries: 10
},
description: '<string>'
}
],
mcpConnections: [{name: '<string>', source: 'streamkap', serverUrl: '<string>', headers: {}}],
httpConnections: [
{
name: '<string>',
id: '<string>',
baseUrl: '<string>',
headers: {},
description: '<string>'
}
],
vectorStoreConnections: [
{
name: '<string>',
id: '<string>',
apiKey: '',
endpoint: '<string>',
defaultNamespace: '<string>',
allowHashFallback: false,
jdbcUrl: '<string>',
username: '<string>',
password: '<string>',
table: '<string>',
dims: 1,
metric: '<string>',
properties: {},
description: '<string>'
}
]
})
};
fetch('https://api.streamkap.com/agents/connections', 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.streamkap.com/agents/connections",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'llmConnections' => [
[
'name' => '<string>',
'capabilities' => [
],
'id' => '<string>',
'apiKey' => '',
'baseUrl' => '<string>',
'chat' => [
'model' => '',
'temperature' => 0.1,
'maxTokens' => 1024,
'timeout' => 120,
'thinkingBudgetTokens' => 32000,
'ollamaThink' => true,
'maxRetries' => 10,
'region' => '<string>',
'strict' => true,
'store' => true,
'instructions' => '<string>',
'additionalKwargs' => [
],
'apiVersion' => '<string>',
'azureEndpoint' => '<string>'
],
'embedding' => [
'model' => '',
'dimensions' => 32768,
'batchSize' => 100,
'region' => '<string>',
'maxRetries' => 10
],
'description' => '<string>'
]
],
'mcpConnections' => [
[
'name' => '<string>',
'source' => 'streamkap',
'serverUrl' => '<string>',
'headers' => [
]
]
],
'httpConnections' => [
[
'name' => '<string>',
'id' => '<string>',
'baseUrl' => '<string>',
'headers' => [
],
'description' => '<string>'
]
],
'vectorStoreConnections' => [
[
'name' => '<string>',
'id' => '<string>',
'apiKey' => '',
'endpoint' => '<string>',
'defaultNamespace' => '<string>',
'allowHashFallback' => false,
'jdbcUrl' => '<string>',
'username' => '<string>',
'password' => '<string>',
'table' => '<string>',
'dims' => 1,
'metric' => '<string>',
'properties' => [
],
'description' => '<string>'
]
]
]),
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.streamkap.com/agents/connections"
payload := strings.NewReader("{\n \"llmConnections\": [\n {\n \"name\": \"<string>\",\n \"capabilities\": [],\n \"id\": \"<string>\",\n \"apiKey\": \"\",\n \"baseUrl\": \"<string>\",\n \"chat\": {\n \"model\": \"\",\n \"temperature\": 0.1,\n \"maxTokens\": 1024,\n \"timeout\": 120,\n \"thinkingBudgetTokens\": 32000,\n \"ollamaThink\": true,\n \"maxRetries\": 10,\n \"region\": \"<string>\",\n \"strict\": true,\n \"store\": true,\n \"instructions\": \"<string>\",\n \"additionalKwargs\": {},\n \"apiVersion\": \"<string>\",\n \"azureEndpoint\": \"<string>\"\n },\n \"embedding\": {\n \"model\": \"\",\n \"dimensions\": 32768,\n \"batchSize\": 100,\n \"region\": \"<string>\",\n \"maxRetries\": 10\n },\n \"description\": \"<string>\"\n }\n ],\n \"mcpConnections\": [\n {\n \"name\": \"<string>\",\n \"source\": \"streamkap\",\n \"serverUrl\": \"<string>\",\n \"headers\": {}\n }\n ],\n \"httpConnections\": [\n {\n \"name\": \"<string>\",\n \"id\": \"<string>\",\n \"baseUrl\": \"<string>\",\n \"headers\": {},\n \"description\": \"<string>\"\n }\n ],\n \"vectorStoreConnections\": [\n {\n \"name\": \"<string>\",\n \"id\": \"<string>\",\n \"apiKey\": \"\",\n \"endpoint\": \"<string>\",\n \"defaultNamespace\": \"<string>\",\n \"allowHashFallback\": false,\n \"jdbcUrl\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\",\n \"table\": \"<string>\",\n \"dims\": 1,\n \"metric\": \"<string>\",\n \"properties\": {},\n \"description\": \"<string>\"\n }\n ]\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.streamkap.com/agents/connections")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"llmConnections\": [\n {\n \"name\": \"<string>\",\n \"capabilities\": [],\n \"id\": \"<string>\",\n \"apiKey\": \"\",\n \"baseUrl\": \"<string>\",\n \"chat\": {\n \"model\": \"\",\n \"temperature\": 0.1,\n \"maxTokens\": 1024,\n \"timeout\": 120,\n \"thinkingBudgetTokens\": 32000,\n \"ollamaThink\": true,\n \"maxRetries\": 10,\n \"region\": \"<string>\",\n \"strict\": true,\n \"store\": true,\n \"instructions\": \"<string>\",\n \"additionalKwargs\": {},\n \"apiVersion\": \"<string>\",\n \"azureEndpoint\": \"<string>\"\n },\n \"embedding\": {\n \"model\": \"\",\n \"dimensions\": 32768,\n \"batchSize\": 100,\n \"region\": \"<string>\",\n \"maxRetries\": 10\n },\n \"description\": \"<string>\"\n }\n ],\n \"mcpConnections\": [\n {\n \"name\": \"<string>\",\n \"source\": \"streamkap\",\n \"serverUrl\": \"<string>\",\n \"headers\": {}\n }\n ],\n \"httpConnections\": [\n {\n \"name\": \"<string>\",\n \"id\": \"<string>\",\n \"baseUrl\": \"<string>\",\n \"headers\": {},\n \"description\": \"<string>\"\n }\n ],\n \"vectorStoreConnections\": [\n {\n \"name\": \"<string>\",\n \"id\": \"<string>\",\n \"apiKey\": \"\",\n \"endpoint\": \"<string>\",\n \"defaultNamespace\": \"<string>\",\n \"allowHashFallback\": false,\n \"jdbcUrl\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\",\n \"table\": \"<string>\",\n \"dims\": 1,\n \"metric\": \"<string>\",\n \"properties\": {},\n \"description\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.streamkap.com/agents/connections")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"llmConnections\": [\n {\n \"name\": \"<string>\",\n \"capabilities\": [],\n \"id\": \"<string>\",\n \"apiKey\": \"\",\n \"baseUrl\": \"<string>\",\n \"chat\": {\n \"model\": \"\",\n \"temperature\": 0.1,\n \"maxTokens\": 1024,\n \"timeout\": 120,\n \"thinkingBudgetTokens\": 32000,\n \"ollamaThink\": true,\n \"maxRetries\": 10,\n \"region\": \"<string>\",\n \"strict\": true,\n \"store\": true,\n \"instructions\": \"<string>\",\n \"additionalKwargs\": {},\n \"apiVersion\": \"<string>\",\n \"azureEndpoint\": \"<string>\"\n },\n \"embedding\": {\n \"model\": \"\",\n \"dimensions\": 32768,\n \"batchSize\": 100,\n \"region\": \"<string>\",\n \"maxRetries\": 10\n },\n \"description\": \"<string>\"\n }\n ],\n \"mcpConnections\": [\n {\n \"name\": \"<string>\",\n \"source\": \"streamkap\",\n \"serverUrl\": \"<string>\",\n \"headers\": {}\n }\n ],\n \"httpConnections\": [\n {\n \"name\": \"<string>\",\n \"id\": \"<string>\",\n \"baseUrl\": \"<string>\",\n \"headers\": {},\n \"description\": \"<string>\"\n }\n ],\n \"vectorStoreConnections\": [\n {\n \"name\": \"<string>\",\n \"id\": \"<string>\",\n \"apiKey\": \"\",\n \"endpoint\": \"<string>\",\n \"defaultNamespace\": \"<string>\",\n \"allowHashFallback\": false,\n \"jdbcUrl\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\",\n \"table\": \"<string>\",\n \"dims\": 1,\n \"metric\": \"<string>\",\n \"properties\": {},\n \"description\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Update Agent Connections
Bulk save the tenant’s agent connections. Secrets are encrypted at rest.
Service-layer ValueError (external MCP URL validation, intra-document
duplicate id guard) surfaces as 422 with the message so the FE can point
at the offending row. Unhandled, these would land as 500.
curl --request PUT \
--url https://api.streamkap.com/agents/connections \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"llmConnections": [
{
"name": "<string>",
"capabilities": [],
"id": "<string>",
"apiKey": "",
"baseUrl": "<string>",
"chat": {
"model": "",
"temperature": 0.1,
"maxTokens": 1024,
"timeout": 120,
"thinkingBudgetTokens": 32000,
"ollamaThink": true,
"maxRetries": 10,
"region": "<string>",
"strict": true,
"store": true,
"instructions": "<string>",
"additionalKwargs": {},
"apiVersion": "<string>",
"azureEndpoint": "<string>"
},
"embedding": {
"model": "",
"dimensions": 32768,
"batchSize": 100,
"region": "<string>",
"maxRetries": 10
},
"description": "<string>"
}
],
"mcpConnections": [
{
"name": "<string>",
"source": "streamkap",
"serverUrl": "<string>",
"headers": {}
}
],
"httpConnections": [
{
"name": "<string>",
"id": "<string>",
"baseUrl": "<string>",
"headers": {},
"description": "<string>"
}
],
"vectorStoreConnections": [
{
"name": "<string>",
"id": "<string>",
"apiKey": "",
"endpoint": "<string>",
"defaultNamespace": "<string>",
"allowHashFallback": false,
"jdbcUrl": "<string>",
"username": "<string>",
"password": "<string>",
"table": "<string>",
"dims": 1,
"metric": "<string>",
"properties": {},
"description": "<string>"
}
]
}
'import requests
url = "https://api.streamkap.com/agents/connections"
payload = {
"llmConnections": [
{
"name": "<string>",
"capabilities": [],
"id": "<string>",
"apiKey": "",
"baseUrl": "<string>",
"chat": {
"model": "",
"temperature": 0.1,
"maxTokens": 1024,
"timeout": 120,
"thinkingBudgetTokens": 32000,
"ollamaThink": True,
"maxRetries": 10,
"region": "<string>",
"strict": True,
"store": True,
"instructions": "<string>",
"additionalKwargs": {},
"apiVersion": "<string>",
"azureEndpoint": "<string>"
},
"embedding": {
"model": "",
"dimensions": 32768,
"batchSize": 100,
"region": "<string>",
"maxRetries": 10
},
"description": "<string>"
}
],
"mcpConnections": [
{
"name": "<string>",
"source": "streamkap",
"serverUrl": "<string>",
"headers": {}
}
],
"httpConnections": [
{
"name": "<string>",
"id": "<string>",
"baseUrl": "<string>",
"headers": {},
"description": "<string>"
}
],
"vectorStoreConnections": [
{
"name": "<string>",
"id": "<string>",
"apiKey": "",
"endpoint": "<string>",
"defaultNamespace": "<string>",
"allowHashFallback": False,
"jdbcUrl": "<string>",
"username": "<string>",
"password": "<string>",
"table": "<string>",
"dims": 1,
"metric": "<string>",
"properties": {},
"description": "<string>"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
llmConnections: [
{
name: '<string>',
capabilities: [],
id: '<string>',
apiKey: '',
baseUrl: '<string>',
chat: {
model: '',
temperature: 0.1,
maxTokens: 1024,
timeout: 120,
thinkingBudgetTokens: 32000,
ollamaThink: true,
maxRetries: 10,
region: '<string>',
strict: true,
store: true,
instructions: '<string>',
additionalKwargs: {},
apiVersion: '<string>',
azureEndpoint: '<string>'
},
embedding: {
model: '',
dimensions: 32768,
batchSize: 100,
region: '<string>',
maxRetries: 10
},
description: '<string>'
}
],
mcpConnections: [{name: '<string>', source: 'streamkap', serverUrl: '<string>', headers: {}}],
httpConnections: [
{
name: '<string>',
id: '<string>',
baseUrl: '<string>',
headers: {},
description: '<string>'
}
],
vectorStoreConnections: [
{
name: '<string>',
id: '<string>',
apiKey: '',
endpoint: '<string>',
defaultNamespace: '<string>',
allowHashFallback: false,
jdbcUrl: '<string>',
username: '<string>',
password: '<string>',
table: '<string>',
dims: 1,
metric: '<string>',
properties: {},
description: '<string>'
}
]
})
};
fetch('https://api.streamkap.com/agents/connections', 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.streamkap.com/agents/connections",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'llmConnections' => [
[
'name' => '<string>',
'capabilities' => [
],
'id' => '<string>',
'apiKey' => '',
'baseUrl' => '<string>',
'chat' => [
'model' => '',
'temperature' => 0.1,
'maxTokens' => 1024,
'timeout' => 120,
'thinkingBudgetTokens' => 32000,
'ollamaThink' => true,
'maxRetries' => 10,
'region' => '<string>',
'strict' => true,
'store' => true,
'instructions' => '<string>',
'additionalKwargs' => [
],
'apiVersion' => '<string>',
'azureEndpoint' => '<string>'
],
'embedding' => [
'model' => '',
'dimensions' => 32768,
'batchSize' => 100,
'region' => '<string>',
'maxRetries' => 10
],
'description' => '<string>'
]
],
'mcpConnections' => [
[
'name' => '<string>',
'source' => 'streamkap',
'serverUrl' => '<string>',
'headers' => [
]
]
],
'httpConnections' => [
[
'name' => '<string>',
'id' => '<string>',
'baseUrl' => '<string>',
'headers' => [
],
'description' => '<string>'
]
],
'vectorStoreConnections' => [
[
'name' => '<string>',
'id' => '<string>',
'apiKey' => '',
'endpoint' => '<string>',
'defaultNamespace' => '<string>',
'allowHashFallback' => false,
'jdbcUrl' => '<string>',
'username' => '<string>',
'password' => '<string>',
'table' => '<string>',
'dims' => 1,
'metric' => '<string>',
'properties' => [
],
'description' => '<string>'
]
]
]),
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.streamkap.com/agents/connections"
payload := strings.NewReader("{\n \"llmConnections\": [\n {\n \"name\": \"<string>\",\n \"capabilities\": [],\n \"id\": \"<string>\",\n \"apiKey\": \"\",\n \"baseUrl\": \"<string>\",\n \"chat\": {\n \"model\": \"\",\n \"temperature\": 0.1,\n \"maxTokens\": 1024,\n \"timeout\": 120,\n \"thinkingBudgetTokens\": 32000,\n \"ollamaThink\": true,\n \"maxRetries\": 10,\n \"region\": \"<string>\",\n \"strict\": true,\n \"store\": true,\n \"instructions\": \"<string>\",\n \"additionalKwargs\": {},\n \"apiVersion\": \"<string>\",\n \"azureEndpoint\": \"<string>\"\n },\n \"embedding\": {\n \"model\": \"\",\n \"dimensions\": 32768,\n \"batchSize\": 100,\n \"region\": \"<string>\",\n \"maxRetries\": 10\n },\n \"description\": \"<string>\"\n }\n ],\n \"mcpConnections\": [\n {\n \"name\": \"<string>\",\n \"source\": \"streamkap\",\n \"serverUrl\": \"<string>\",\n \"headers\": {}\n }\n ],\n \"httpConnections\": [\n {\n \"name\": \"<string>\",\n \"id\": \"<string>\",\n \"baseUrl\": \"<string>\",\n \"headers\": {},\n \"description\": \"<string>\"\n }\n ],\n \"vectorStoreConnections\": [\n {\n \"name\": \"<string>\",\n \"id\": \"<string>\",\n \"apiKey\": \"\",\n \"endpoint\": \"<string>\",\n \"defaultNamespace\": \"<string>\",\n \"allowHashFallback\": false,\n \"jdbcUrl\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\",\n \"table\": \"<string>\",\n \"dims\": 1,\n \"metric\": \"<string>\",\n \"properties\": {},\n \"description\": \"<string>\"\n }\n ]\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.streamkap.com/agents/connections")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"llmConnections\": [\n {\n \"name\": \"<string>\",\n \"capabilities\": [],\n \"id\": \"<string>\",\n \"apiKey\": \"\",\n \"baseUrl\": \"<string>\",\n \"chat\": {\n \"model\": \"\",\n \"temperature\": 0.1,\n \"maxTokens\": 1024,\n \"timeout\": 120,\n \"thinkingBudgetTokens\": 32000,\n \"ollamaThink\": true,\n \"maxRetries\": 10,\n \"region\": \"<string>\",\n \"strict\": true,\n \"store\": true,\n \"instructions\": \"<string>\",\n \"additionalKwargs\": {},\n \"apiVersion\": \"<string>\",\n \"azureEndpoint\": \"<string>\"\n },\n \"embedding\": {\n \"model\": \"\",\n \"dimensions\": 32768,\n \"batchSize\": 100,\n \"region\": \"<string>\",\n \"maxRetries\": 10\n },\n \"description\": \"<string>\"\n }\n ],\n \"mcpConnections\": [\n {\n \"name\": \"<string>\",\n \"source\": \"streamkap\",\n \"serverUrl\": \"<string>\",\n \"headers\": {}\n }\n ],\n \"httpConnections\": [\n {\n \"name\": \"<string>\",\n \"id\": \"<string>\",\n \"baseUrl\": \"<string>\",\n \"headers\": {},\n \"description\": \"<string>\"\n }\n ],\n \"vectorStoreConnections\": [\n {\n \"name\": \"<string>\",\n \"id\": \"<string>\",\n \"apiKey\": \"\",\n \"endpoint\": \"<string>\",\n \"defaultNamespace\": \"<string>\",\n \"allowHashFallback\": false,\n \"jdbcUrl\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\",\n \"table\": \"<string>\",\n \"dims\": 1,\n \"metric\": \"<string>\",\n \"properties\": {},\n \"description\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.streamkap.com/agents/connections")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"llmConnections\": [\n {\n \"name\": \"<string>\",\n \"capabilities\": [],\n \"id\": \"<string>\",\n \"apiKey\": \"\",\n \"baseUrl\": \"<string>\",\n \"chat\": {\n \"model\": \"\",\n \"temperature\": 0.1,\n \"maxTokens\": 1024,\n \"timeout\": 120,\n \"thinkingBudgetTokens\": 32000,\n \"ollamaThink\": true,\n \"maxRetries\": 10,\n \"region\": \"<string>\",\n \"strict\": true,\n \"store\": true,\n \"instructions\": \"<string>\",\n \"additionalKwargs\": {},\n \"apiVersion\": \"<string>\",\n \"azureEndpoint\": \"<string>\"\n },\n \"embedding\": {\n \"model\": \"\",\n \"dimensions\": 32768,\n \"batchSize\": 100,\n \"region\": \"<string>\",\n \"maxRetries\": 10\n },\n \"description\": \"<string>\"\n }\n ],\n \"mcpConnections\": [\n {\n \"name\": \"<string>\",\n \"source\": \"streamkap\",\n \"serverUrl\": \"<string>\",\n \"headers\": {}\n }\n ],\n \"httpConnections\": [\n {\n \"name\": \"<string>\",\n \"id\": \"<string>\",\n \"baseUrl\": \"<string>\",\n \"headers\": {},\n \"description\": \"<string>\"\n }\n ],\n \"vectorStoreConnections\": [\n {\n \"name\": \"<string>\",\n \"id\": \"<string>\",\n \"apiKey\": \"\",\n \"endpoint\": \"<string>\",\n \"defaultNamespace\": \"<string>\",\n \"allowHashFallback\": false,\n \"jdbcUrl\": \"<string>\",\n \"username\": \"<string>\",\n \"password\": \"<string>\",\n \"table\": \"<string>\",\n \"dims\": 1,\n \"metric\": \"<string>\",\n \"properties\": {},\n \"description\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Tenant-scoped saved agent connections. Stored in MongoDB agent_connections collection.
The bulk shape behind GET /agents/connections and
PUT /agents/connections: per-tenant lists of LLM, MCP, and HTTP
connection profiles that agents reference at deploy time.
The Mongo collection is agent_connections; per-row CRUD lives at
/agents/connections/{kind} (see
app.services.agent_connections_service).
Saved LLM connections - credentials + default tuning. Reusable across many agents.
Show child attributes
Show child attributes
Saved MCP connections (external-source only)
A saved Streamkap MCP server connection.
Authenticated via a pasted Project Key credential file in
headers["X-Streamkap-Project-Key"]. The BE structurally validates the
blob on save, encrypts every header value at rest, and the MCP server
(streamkap-tools) enforces the PK's stored tool_profile /
allowed_tools / blocked_tools scoping per session.
- StreamkapMcpConnection
- ExternalMcpNoneConnection
- ExternalMcpBearerConnection
- ExternalMcpHeaderConnection
Show child attributes
Show child attributes
Saved HTTP API connections. Referenced by HTTP tool rows via connectionId to inherit baseUrl + headers without duplicating them per tool.
Show child attributes
Show child attributes
Lightweight vector store credentials (apiKey + endpoint). Used by KBs and agent long-term memory.
Show child attributes
Show child attributes
Response
Successful Response
The response is of type Response Updateagentconnections · object.
Was this page helpful?