Das Private Gateway für Claude testen («test»: die Schritte vor Live, ändert nichts), neu starten («restart»), live schalten («live», nur nach bestandenem Test genau dieser Konfiguration) oder die Limits jetzt übernehmen («limits»)
curl --request POST \
--url https://ki.muster.example/api/v1/mandanten/{id}/claude-gateway/{action} \
--header 'Authorization: Bearer <token>'import requests
url = "https://ki.muster.example/api/v1/mandanten/{id}/claude-gateway/{action}"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://ki.muster.example/api/v1/mandanten/{id}/claude-gateway/{action}', 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}/claude-gateway/{action}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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}/claude-gateway/{action}"
req, _ := http.NewRequest("POST", 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.post("https://ki.muster.example/api/v1/mandanten/{id}/claude-gateway/{action}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://ki.muster.example/api/v1/mandanten/{id}/claude-gateway/{action}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"gateway": {
"id": "<string>",
"clientId": "<string>",
"device": {
"id": "<string>",
"name": "<string>",
"online": true
},
"url": "<string>",
"bind": "<string>",
"tls": "firm",
"postgresUrl": "<string>",
"profiles": [
{
"id": "<string>",
"name": "<string>",
"groups": [
"<string>"
],
"models": [
"<string>"
],
"webFetch": {
"on": true,
"domains": [
"<string>"
]
},
"confidential": true,
"desktop": true,
"groupNames": [
"<string>"
]
}
],
"upstreams": [
{
"id": "<string>",
"name": "<string>",
"provider": "bedrock",
"region": "<string>"
}
],
"renderedSha": "<string>",
"health": {
"state": "starting",
"version": "<string>",
"ready": true,
"alive": true,
"sha": "<string>",
"restarts": 4503599627370495,
"since": "<string>",
"error": "no-binary",
"issuer": true,
"hooks": {
"listening": true,
"rulesSha": "<string>",
"counts": [
{
"day": "<string>",
"profile": "<string>",
"checked": 4503599627370495,
"blocked": 4503599627370495,
"rules": {}
}
],
"usage": [
{
"day": "<string>",
"profile": "<string>",
"tokensIn": 4503599627370495,
"tokensOut": 4503599627370495,
"tokensCache": 4503599627370495,
"sessions": 4503599627370495
}
]
},
"steps": [
{
"id": "config",
"state": "ok",
"why": "<string>",
"profiles": [
{
"id": "<string>",
"blocked": true,
"passed": true
}
]
}
],
"signinUrl": "<string>",
"spend": {
"ok": true,
"applied": 4503599627370495,
"removed": 4503599627370495,
"rows": [
{
"user": "<string>",
"period": "daily",
"spend": 1,
"limit": 1,
"source": "<string>"
}
],
"error": "<string>"
}
},
"checkedAt": "<string>",
"signedIn": 4503599627370495,
"createdAt": "<string>",
"by": "<string>",
"live": true,
"liveSha": "<string>",
"draft": true,
"test": {
"sha": "<string>",
"at": "<string>",
"by": "<string>",
"steps": [
{
"id": "config",
"state": "ok",
"why": "<string>",
"profiles": [
{
"id": "<string>",
"blocked": true,
"passed": true
}
]
}
],
"passed": true,
"signinUrl": "<string>"
},
"hooks": [
{
"id": "<string>",
"name": "<string>",
"checked": 4503599627370495,
"blocked": 4503599627370495
}
],
"limits": {
"at": "<string>",
"applied": 4503599627370495,
"removed": 4503599627370495,
"skipped": 4503599627370495,
"error": "<string>"
}
},
"text": "<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"
}Das Private Gateway für Claude testen («test»: die Schritte vor Live, ändert nichts), neu starten («restart»), live schalten («live», nur nach bestandenem Test genau dieser Konfiguration) oder die Limits jetzt übernehmen («limits»)
Das Private Gateway für Claude testen («test»: die Schritte vor Live, ändert nichts), neu starten («restart»), live schalten («live», nur nach bestandenem Test genau dieser Konfiguration) oder die Limits jetzt übernehmen («limits»).
Im Chat mit «Mono Admin»: betrieb_status.
POST
/
mandanten
/
{id}
/
claude-gateway
/
{action}
Das Private Gateway für Claude testen («test»: die Schritte vor Live, ändert nichts), neu starten («restart»), live schalten («live», nur nach bestandenem Test genau dieser Konfiguration) oder die Limits jetzt übernehmen («limits»)
curl --request POST \
--url https://ki.muster.example/api/v1/mandanten/{id}/claude-gateway/{action} \
--header 'Authorization: Bearer <token>'import requests
url = "https://ki.muster.example/api/v1/mandanten/{id}/claude-gateway/{action}"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://ki.muster.example/api/v1/mandanten/{id}/claude-gateway/{action}', 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}/claude-gateway/{action}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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}/claude-gateway/{action}"
req, _ := http.NewRequest("POST", 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.post("https://ki.muster.example/api/v1/mandanten/{id}/claude-gateway/{action}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://ki.muster.example/api/v1/mandanten/{id}/claude-gateway/{action}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"gateway": {
"id": "<string>",
"clientId": "<string>",
"device": {
"id": "<string>",
"name": "<string>",
"online": true
},
"url": "<string>",
"bind": "<string>",
"tls": "firm",
"postgresUrl": "<string>",
"profiles": [
{
"id": "<string>",
"name": "<string>",
"groups": [
"<string>"
],
"models": [
"<string>"
],
"webFetch": {
"on": true,
"domains": [
"<string>"
]
},
"confidential": true,
"desktop": true,
"groupNames": [
"<string>"
]
}
],
"upstreams": [
{
"id": "<string>",
"name": "<string>",
"provider": "bedrock",
"region": "<string>"
}
],
"renderedSha": "<string>",
"health": {
"state": "starting",
"version": "<string>",
"ready": true,
"alive": true,
"sha": "<string>",
"restarts": 4503599627370495,
"since": "<string>",
"error": "no-binary",
"issuer": true,
"hooks": {
"listening": true,
"rulesSha": "<string>",
"counts": [
{
"day": "<string>",
"profile": "<string>",
"checked": 4503599627370495,
"blocked": 4503599627370495,
"rules": {}
}
],
"usage": [
{
"day": "<string>",
"profile": "<string>",
"tokensIn": 4503599627370495,
"tokensOut": 4503599627370495,
"tokensCache": 4503599627370495,
"sessions": 4503599627370495
}
]
},
"steps": [
{
"id": "config",
"state": "ok",
"why": "<string>",
"profiles": [
{
"id": "<string>",
"blocked": true,
"passed": true
}
]
}
],
"signinUrl": "<string>",
"spend": {
"ok": true,
"applied": 4503599627370495,
"removed": 4503599627370495,
"rows": [
{
"user": "<string>",
"period": "daily",
"spend": 1,
"limit": 1,
"source": "<string>"
}
],
"error": "<string>"
}
},
"checkedAt": "<string>",
"signedIn": 4503599627370495,
"createdAt": "<string>",
"by": "<string>",
"live": true,
"liveSha": "<string>",
"draft": true,
"test": {
"sha": "<string>",
"at": "<string>",
"by": "<string>",
"steps": [
{
"id": "config",
"state": "ok",
"why": "<string>",
"profiles": [
{
"id": "<string>",
"blocked": true,
"passed": true
}
]
}
],
"passed": true,
"signinUrl": "<string>"
},
"hooks": [
{
"id": "<string>",
"name": "<string>",
"checked": 4503599627370495,
"blocked": 4503599627370495
}
],
"limits": {
"at": "<string>",
"applied": 4503599627370495,
"removed": 4503599627370495,
"skipped": 4503599627370495,
"error": "<string>"
}
},
"text": "<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"
}