Stream chat responses for cluster troubleshooting
import requests
url = "https://platform.ankra.app/api/v1/org/clusters/{cluster_id}/kubernetes/chat"
payload = {
"query": "<string>",
"addon_name": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({query: '<string>', addon_name: '<string>'})
};
fetch('https://platform.ankra.app/api/v1/org/clusters/{cluster_id}/kubernetes/chat', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/api/v1/org/clusters/{cluster_id}/kubernetes/chat \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "<string>",
"addon_name": "<string>"
}
'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Chat
Stream chat responses for cluster troubleshooting
POST
/
api
/
v1
/
org
/
clusters
/
{cluster_id}
/
kubernetes
/
chat
Stream chat responses for cluster troubleshooting
import requests
url = "https://platform.ankra.app/api/v1/org/clusters/{cluster_id}/kubernetes/chat"
payload = {
"query": "<string>",
"addon_name": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({query: '<string>', addon_name: '<string>'})
};
fetch('https://platform.ankra.app/api/v1/org/clusters/{cluster_id}/kubernetes/chat', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/api/v1/org/clusters/{cluster_id}/kubernetes/chat \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "<string>",
"addon_name": "<string>"
}
'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
application/json
Show child attributes
Show child attributes
Show child attributes
Show child attributes
When true, this turn forks the conversation at the end of the supplied conversation_history (edit-and-resend): the server fills in the turns before it from the stored transcript and never the branch after it.
Show child attributes
Show child attributes
Available options:
ask, agentic, plan Show child attributes
Show child attributes
Show child attributes
Show child attributes
Response
Streaming chat response