KI-Clients und Katalog «Im Voraus»
curl --request GET \
--url https://ki.muster.example/api/v1/mandanten/{id}/clients \
--header 'Authorization: Bearer <token>'import requests
url = "https://ki.muster.example/api/v1/mandanten/{id}/clients"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://ki.muster.example/api/v1/mandanten/{id}/clients', 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://ki.muster.example/api/v1/mandanten/{id}/clients",
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://ki.muster.example/api/v1/mandanten/{id}/clients"
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://ki.muster.example/api/v1/mandanten/{id}/clients")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://ki.muster.example/api/v1/mandanten/{id}/clients")
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{
"clients": [
{
"id": "<string>",
"mandantId": "<string>",
"knownId": "<string>",
"name": "<string>",
"provider": "<string>",
"region": "<string>",
"trainsOnData": true,
"status": "pending",
"groups": "all",
"dataClasses": [
"öffentlich"
],
"requestedAt": "<string>",
"consents": 4503599627370495,
"training": "plan",
"requestedBy": {
"id": "<string>",
"name": "<string>",
"photo": {
"url": "<string>",
"etag": "<string>"
}
},
"decidedBy": {
"id": "<string>",
"name": "<string>",
"photo": {
"url": "<string>",
"etag": "<string>"
}
},
"decidedAt": "<string>",
"inAdvance": true,
"atConnect": true,
"standard": true,
"revoked": true,
"tools": [
"<string>"
],
"platform": {
"settings": {
"hosting": "selbst",
"provider": "anthropic",
"region": "<string>",
"modelIdPrefix": "<string>",
"account": "<string>",
"gateway": "<string>"
},
"where": "<string>",
"zone": "eu",
"receives": [
"öffentlich"
],
"confidential": true,
"actsFor": [
{
"id": "<string>",
"name": "<string>"
}
],
"waiting": 4503599627370495,
"calls": 4503599627370495,
"confirmed": {
"by": "<string>",
"at": "<string>"
},
"connectUrl": "<string>",
"gateway": "missing"
}
}
],
"catalog": [],
"suggestion": [
{
"id": "<string>",
"name": "<string>"
}
],
"apps": [
"<string>"
],
"compatible": [
{
"id": "<string>",
"name": "<string>",
"steps": {},
"source": "<string>"
}
],
"addresses": [
{
"id": "<string>",
"name": "<string>",
"url": "<string>"
}
],
"toolsOutdated": [
{
"client": "<string>",
"clientName": "<string>",
"servers": [
"<string>"
],
"since": "<string>",
"people": 4503599627370495,
"names": [
"<string>"
],
"latest": "<string>"
}
],
"gateways": [
{
"id": "<string>",
"name": "<string>",
"locality": "lokal",
"classes": [
"öffentlich"
],
"drift": true,
"reports": true,
"print": "<string>"
}
]
}{
"error": "forbidden",
"message": "Nur für Admins dieses Mandanten",
"reason": "admins_only"
}{
"error": "forbidden",
"message": "Nur für Admins dieses Mandanten",
"reason": "admins_only"
}{
"error": "forbidden",
"message": "Nur für Admins dieses Mandanten",
"reason": "admins_only"
}KI-Clients und Katalog «Im Voraus»
KI-Clients und Katalog «Im Voraus».
Im Chat mit «Mono Admin»: clients_list.
GET
/
mandanten
/
{id}
/
clients
KI-Clients und Katalog «Im Voraus»
curl --request GET \
--url https://ki.muster.example/api/v1/mandanten/{id}/clients \
--header 'Authorization: Bearer <token>'import requests
url = "https://ki.muster.example/api/v1/mandanten/{id}/clients"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://ki.muster.example/api/v1/mandanten/{id}/clients', 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://ki.muster.example/api/v1/mandanten/{id}/clients",
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://ki.muster.example/api/v1/mandanten/{id}/clients"
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://ki.muster.example/api/v1/mandanten/{id}/clients")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://ki.muster.example/api/v1/mandanten/{id}/clients")
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{
"clients": [
{
"id": "<string>",
"mandantId": "<string>",
"knownId": "<string>",
"name": "<string>",
"provider": "<string>",
"region": "<string>",
"trainsOnData": true,
"status": "pending",
"groups": "all",
"dataClasses": [
"öffentlich"
],
"requestedAt": "<string>",
"consents": 4503599627370495,
"training": "plan",
"requestedBy": {
"id": "<string>",
"name": "<string>",
"photo": {
"url": "<string>",
"etag": "<string>"
}
},
"decidedBy": {
"id": "<string>",
"name": "<string>",
"photo": {
"url": "<string>",
"etag": "<string>"
}
},
"decidedAt": "<string>",
"inAdvance": true,
"atConnect": true,
"standard": true,
"revoked": true,
"tools": [
"<string>"
],
"platform": {
"settings": {
"hosting": "selbst",
"provider": "anthropic",
"region": "<string>",
"modelIdPrefix": "<string>",
"account": "<string>",
"gateway": "<string>"
},
"where": "<string>",
"zone": "eu",
"receives": [
"öffentlich"
],
"confidential": true,
"actsFor": [
{
"id": "<string>",
"name": "<string>"
}
],
"waiting": 4503599627370495,
"calls": 4503599627370495,
"confirmed": {
"by": "<string>",
"at": "<string>"
},
"connectUrl": "<string>",
"gateway": "missing"
}
}
],
"catalog": [],
"suggestion": [
{
"id": "<string>",
"name": "<string>"
}
],
"apps": [
"<string>"
],
"compatible": [
{
"id": "<string>",
"name": "<string>",
"steps": {},
"source": "<string>"
}
],
"addresses": [
{
"id": "<string>",
"name": "<string>",
"url": "<string>"
}
],
"toolsOutdated": [
{
"client": "<string>",
"clientName": "<string>",
"servers": [
"<string>"
],
"since": "<string>",
"people": 4503599627370495,
"names": [
"<string>"
],
"latest": "<string>"
}
],
"gateways": [
{
"id": "<string>",
"name": "<string>",
"locality": "lokal",
"classes": [
"öffentlich"
],
"drift": true,
"reports": true,
"print": "<string>"
}
]
}{
"error": "forbidden",
"message": "Nur für Admins dieses Mandanten",
"reason": "admins_only"
}{
"error": "forbidden",
"message": "Nur für Admins dieses Mandanten",
"reason": "admins_only"
}{
"error": "forbidden",
"message": "Nur für Admins dieses Mandanten",
"reason": "admins_only"
}Autorisierungen
Antwort
Erfolgreich.