Obter Agente Por Unidade
curl --request GET \
--url https://chat.api.toolzz.com.br/api/v1/bot/unity/{unityId}import requests
url = "https://chat.api.toolzz.com.br/api/v1/bot/unity/{unityId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://chat.api.toolzz.com.br/api/v1/bot/unity/{unityId}', 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://chat.api.toolzz.com.br/api/v1/bot/unity/{unityId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://chat.api.toolzz.com.br/api/v1/bot/unity/{unityId}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://chat.api.toolzz.com.br/api/v1/bot/unity/{unityId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://chat.api.toolzz.com.br/api/v1/bot/unity/{unityId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"id?": "<string>",
"name": "<string>",
"prompt": "<string>",
"description": "<string>",
"folders": [
"<any>"
],
"plugins": [
"<any>"
],
"botGenAI": "<any>",
"assistantId": "<string>",
"IconFile": "<any>",
"widgetId": "<string>",
"tags": [
"<string>"
],
"unityId": "<string>",
"progressStatus": "<string>",
"safeMode": true,
"institutionId": "<string>",
"indexService": "<string>",
"isActivated": true
}Agente
Obter Agente Por Unidade
Endpoint para obter um agente por unidade
GET
/
api
/
v1
/
bot
/
unity
/
{unityId}
Obter Agente Por Unidade
curl --request GET \
--url https://chat.api.toolzz.com.br/api/v1/bot/unity/{unityId}import requests
url = "https://chat.api.toolzz.com.br/api/v1/bot/unity/{unityId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://chat.api.toolzz.com.br/api/v1/bot/unity/{unityId}', 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://chat.api.toolzz.com.br/api/v1/bot/unity/{unityId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://chat.api.toolzz.com.br/api/v1/bot/unity/{unityId}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://chat.api.toolzz.com.br/api/v1/bot/unity/{unityId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://chat.api.toolzz.com.br/api/v1/bot/unity/{unityId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"id?": "<string>",
"name": "<string>",
"prompt": "<string>",
"description": "<string>",
"folders": [
"<any>"
],
"plugins": [
"<any>"
],
"botGenAI": "<any>",
"assistantId": "<string>",
"IconFile": "<any>",
"widgetId": "<string>",
"tags": [
"<string>"
],
"unityId": "<string>",
"progressStatus": "<string>",
"safeMode": true,
"institutionId": "<string>",
"indexService": "<string>",
"isActivated": true
}string
Token de acesso (“Bearer” deve estar antes do token)
uuid
ID da unidade
Descrição da Resposta
string
required
ID único do agente
string
required
Nome do agente
string
required
Texto ou comando utilizado como entrada para o agente.
string
required
Descrição detalhada sobre a finalidade ou funcionamento do agente.
any[]
required
Lista de pastas associadas ao agente.
any[]
required
Plugins ou integrações ativas no agente.
any
required
Configurações relacionadas à inteligência artificial do agente.
string
required
ID exclusivo do assistente vinculado.
any
required
Arquivo de ícone associado ao agente.
string
ID opcional do widget vinculado.
string[]
Lista de tags associadas ao agente.
string
ID da unidade organizacional.
string
Status de progresso do agente.
boolean
Modo seguro ativado ou não.
string
required
ID da instituição responsável pelo agente.
string
Serviço de indexação vinculado ao agente.
boolean
required
Status de ativação do agente.

