Get Agent Config History Entry
curl --request GET \
--url https://api.streamkap.com/agents/{job_id}/config/history/{version} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.streamkap.com/agents/{job_id}/config/history/{version}"
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/history/{version}', 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/history/{version}",
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/history/{version}"
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/history/{version}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.streamkap.com/agents/{job_id}/config/history/{version}")
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{
"version": 1,
"changedTimestamp": "2023-11-07T05:31:56Z",
"agentConfig": {
"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
}
},
"changedByEmail": "<string>",
"rollbackSourceVersion": 123,
"changeNote": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Agents
Get Agent Config History Entry
Return the masked full config for a specific history version.
Stored snapshots are re-validated through CreateAgentConfigRequest
on the response path. If the validator has tightened since the snapshot
was written, surface the error as 422 so the FE can explain the drift
- same shape the rollback endpoint uses. Unhandled, the error would otherwise land as a 500.
GET
/
agents
/
{job_id}
/
config
/
history
/
{version}
Get Agent Config History Entry
curl --request GET \
--url https://api.streamkap.com/agents/{job_id}/config/history/{version} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.streamkap.com/agents/{job_id}/config/history/{version}"
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/history/{version}', 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/history/{version}",
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/history/{version}"
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/history/{version}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.streamkap.com/agents/{job_id}/config/history/{version}")
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{
"version": 1,
"changedTimestamp": "2023-11-07T05:31:56Z",
"agentConfig": {
"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
}
},
"changedByEmail": "<string>",
"rollbackSourceVersion": 123,
"changeNote": "<string>"
}{
"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.
Response
Successful Response
Response for GET /agents/{id}/config/history/{version}.
Same masking rules as AgentConfigResponse - partial sk-a****xyzw
for apiKey / clientSecret, full ******** for
bearerToken / headerValue / any headers dict value.
Required range:
x >= 0Available options:
create, update, rollback Historical agent_config at this version, masked
Show child attributes
Show child attributes
Was this page helpful?
⌘I