curl --request GET \
--url https://api.streamkap.com/agents/{job_id}/config \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.streamkap.com/agents/{job_id}/config"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.streamkap.com/agents/{job_id}/config', 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/{job_id}/config",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.streamkap.com/agents/{job_id}/config"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.streamkap.com/agents/{job_id}/config")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.streamkap.com/agents/{job_id}/config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"_id": "<string>",
"name": "<string>",
"agent_config": {
"name": "<string>",
"input": {
"topicPattern": "<string>",
"inputSerialization": "JsonConfluent",
"fields": [
"<string>"
],
"createTableSQL": "<string>",
"filterSQL": "<string>"
},
"output": {
"topic": "<string>",
"deadLetterTopic": "<string>",
"outputSerialization": "JsonConfluent",
"schema": {}
},
"llm": {
"model": "<string>",
"apiKey": "",
"llmConnectionId": "<string>",
"baseUrl": "<string>",
"temperature": 1,
"maxTokens": 50000,
"timeout": 300,
"thinkingBudgetTokens": 32000,
"ollamaThink": true,
"maxRetries": 10,
"region": "<string>",
"strict": true,
"store": true,
"instructions": "<string>",
"additionalKwargs": {},
"apiVersion": "<string>",
"azureEndpoint": "<string>"
},
"prompts": {
"system": "",
"customInstructions": "",
"user": "<record>{input_json}</record>"
},
"description": "<string>",
"enabled": true,
"agentType": "workflow",
"mcpServer": {
"projectKeyId": "<string>",
"serverUrl": "<string>",
"headers": {}
},
"tools": [
{
"name": "<string>",
"description": "",
"config": {},
"parameters": [
{
"name": "<string>",
"type": "string",
"description": ""
}
]
}
],
"memory": {
"keyField": "<string>",
"shortTerm": {
"enabled": false,
"ttlMs": 3600000,
"maxEntries": 20
},
"longTerm": {
"enabled": false,
"vectorStoreConnectionId": "<string>",
"namespace": "<string>",
"destinationId": "<string>"
}
},
"knowledgeBases": [
{
"id": "<string>",
"name": ""
}
],
"processing": {
"parallelism": 1,
"checkpointIntervalMin": 5,
"maxIterations": 10,
"maxTokensPerHour": 0
}
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Get Agent Config
Get the stored config for a config-based agent.
curl --request GET \
--url https://api.streamkap.com/agents/{job_id}/config \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.streamkap.com/agents/{job_id}/config"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.streamkap.com/agents/{job_id}/config', 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/{job_id}/config",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.streamkap.com/agents/{job_id}/config"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.streamkap.com/agents/{job_id}/config")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.streamkap.com/agents/{job_id}/config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"_id": "<string>",
"name": "<string>",
"agent_config": {
"name": "<string>",
"input": {
"topicPattern": "<string>",
"inputSerialization": "JsonConfluent",
"fields": [
"<string>"
],
"createTableSQL": "<string>",
"filterSQL": "<string>"
},
"output": {
"topic": "<string>",
"deadLetterTopic": "<string>",
"outputSerialization": "JsonConfluent",
"schema": {}
},
"llm": {
"model": "<string>",
"apiKey": "",
"llmConnectionId": "<string>",
"baseUrl": "<string>",
"temperature": 1,
"maxTokens": 50000,
"timeout": 300,
"thinkingBudgetTokens": 32000,
"ollamaThink": true,
"maxRetries": 10,
"region": "<string>",
"strict": true,
"store": true,
"instructions": "<string>",
"additionalKwargs": {},
"apiVersion": "<string>",
"azureEndpoint": "<string>"
},
"prompts": {
"system": "",
"customInstructions": "",
"user": "<record>{input_json}</record>"
},
"description": "<string>",
"enabled": true,
"agentType": "workflow",
"mcpServer": {
"projectKeyId": "<string>",
"serverUrl": "<string>",
"headers": {}
},
"tools": [
{
"name": "<string>",
"description": "",
"config": {},
"parameters": [
{
"name": "<string>",
"type": "string",
"description": ""
}
]
}
],
"memory": {
"keyField": "<string>",
"shortTerm": {
"enabled": false,
"ttlMs": 3600000,
"maxEntries": 20
},
"longTerm": {
"enabled": false,
"vectorStoreConnectionId": "<string>",
"namespace": "<string>",
"destinationId": "<string>"
}
},
"knowledgeBases": [
{
"id": "<string>",
"name": ""
}
],
"processing": {
"parallelism": 1,
"checkpointIntervalMin": 5,
"maxIterations": 10,
"maxTokensPerHour": 0
}
}
}{
"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.
Path Parameters
Response
Successful Response
Response for GET /agents/{id}/config - returns the stored agent config.
agent_config is a fully-typed CreateAgentConfigRequest rather than an
opaque dict so OpenAPI emits the complete schema and TypeScript clients can
deserialize without guessing field names. Secret values (e.g. apiKey)
come back masked (sk-a****xyzw), and every value inside any
mcpServer.headers / tool.config.headers dict comes back as
******** - both satisfy the min_length=1 constraint on the
underlying field.
Note: stored configs must remain valid under the current validators -
re-using CreateAgentConfigRequest re-runs all its validators
(per-type tool invariants, length caps, etc.) on every read. If validators
tighten over time, evolve stored configs via an explicit migration rather
than relying on response-time tolerance.
Was this page helpful?