curl --request POST \
--url 'https://sandbox.circularo.com/api/v1/settings/verify/llm?token=' \
--header 'Content-Type: application/json' \
--data '
{
"apiKey": "sk-abcdefghijklmnopqrstuvwxyz123456789",
"model": "gpt-5.6-luna",
"url": "https://api.custom-llm-provider.com/"
}
'import requests
url = "https://sandbox.circularo.com/api/v1/settings/verify/llm?token="
payload = {
"apiKey": "sk-abcdefghijklmnopqrstuvwxyz123456789",
"model": "gpt-5.6-luna",
"url": "https://api.custom-llm-provider.com/"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
apiKey: 'sk-abcdefghijklmnopqrstuvwxyz123456789',
model: 'gpt-5.6-luna',
url: 'https://api.custom-llm-provider.com/'
})
};
fetch('https://sandbox.circularo.com/api/v1/settings/verify/llm?token=', 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://sandbox.circularo.com/api/v1/settings/verify/llm?token=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'apiKey' => 'sk-abcdefghijklmnopqrstuvwxyz123456789',
'model' => 'gpt-5.6-luna',
'url' => 'https://api.custom-llm-provider.com/'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.circularo.com/api/v1/settings/verify/llm?token="
payload := strings.NewReader("{\n \"apiKey\": \"sk-abcdefghijklmnopqrstuvwxyz123456789\",\n \"model\": \"gpt-5.6-luna\",\n \"url\": \"https://api.custom-llm-provider.com/\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox.circularo.com/api/v1/settings/verify/llm?token=")
.header("Content-Type", "application/json")
.body("{\n \"apiKey\": \"sk-abcdefghijklmnopqrstuvwxyz123456789\",\n \"model\": \"gpt-5.6-luna\",\n \"url\": \"https://api.custom-llm-provider.com/\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/settings/verify/llm?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"apiKey\": \"sk-abcdefghijklmnopqrstuvwxyz123456789\",\n \"model\": \"gpt-5.6-luna\",\n \"url\": \"https://api.custom-llm-provider.com/\"\n}"
response = http.request(request)
puts response.read_body{
"status": "SUCCESS"
}{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 404,
"type": "RESOURCE:NOT_FOUND",
"message": "Resource not found",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 429,
"type": "SYSTEM:RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 500,
"type": "SYSTEM:INTERNAL_ERROR",
"message": "Internal error",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Try out the language model configuration
POST /settings/verify/llm
Checks that a language model configuration actually works before it is saved: the platform reaches out to the provider with the key it was given, asks what models it offers, and looks for the one named among them.
Anything not given is taken from what is configured now, so a configuration can be checked as it stands, or changed one piece at a time - except that the configured key is only tried against the address it is configured with, so another address is checked only together with its key. Nothing is saved either way - a configuration that passes still has to be written through the settings.
The answer says how it went in a word: it went through, the address is not one the platform may call, the key was refused, the address answered with something that is not a list of models, the model is not among the ones offered. Only reaching the provider and finding the model are established here; what the model then makes of a real request is not.
Token authorization: Authorize using a token — either a session token obtained from login or an API key — to call this endpoint.
Required user role: admin or organization_admin
curl --request POST \
--url 'https://sandbox.circularo.com/api/v1/settings/verify/llm?token=' \
--header 'Content-Type: application/json' \
--data '
{
"apiKey": "sk-abcdefghijklmnopqrstuvwxyz123456789",
"model": "gpt-5.6-luna",
"url": "https://api.custom-llm-provider.com/"
}
'import requests
url = "https://sandbox.circularo.com/api/v1/settings/verify/llm?token="
payload = {
"apiKey": "sk-abcdefghijklmnopqrstuvwxyz123456789",
"model": "gpt-5.6-luna",
"url": "https://api.custom-llm-provider.com/"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
apiKey: 'sk-abcdefghijklmnopqrstuvwxyz123456789',
model: 'gpt-5.6-luna',
url: 'https://api.custom-llm-provider.com/'
})
};
fetch('https://sandbox.circularo.com/api/v1/settings/verify/llm?token=', 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://sandbox.circularo.com/api/v1/settings/verify/llm?token=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'apiKey' => 'sk-abcdefghijklmnopqrstuvwxyz123456789',
'model' => 'gpt-5.6-luna',
'url' => 'https://api.custom-llm-provider.com/'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.circularo.com/api/v1/settings/verify/llm?token="
payload := strings.NewReader("{\n \"apiKey\": \"sk-abcdefghijklmnopqrstuvwxyz123456789\",\n \"model\": \"gpt-5.6-luna\",\n \"url\": \"https://api.custom-llm-provider.com/\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox.circularo.com/api/v1/settings/verify/llm?token=")
.header("Content-Type", "application/json")
.body("{\n \"apiKey\": \"sk-abcdefghijklmnopqrstuvwxyz123456789\",\n \"model\": \"gpt-5.6-luna\",\n \"url\": \"https://api.custom-llm-provider.com/\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/settings/verify/llm?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"apiKey\": \"sk-abcdefghijklmnopqrstuvwxyz123456789\",\n \"model\": \"gpt-5.6-luna\",\n \"url\": \"https://api.custom-llm-provider.com/\"\n}"
response = http.request(request)
puts response.read_body{
"status": "SUCCESS"
}{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 404,
"type": "RESOURCE:NOT_FOUND",
"message": "Resource not found",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 429,
"type": "SYSTEM:RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 500,
"type": "SYSTEM:INTERNAL_ERROR",
"message": "Internal error",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Authorizations
Body
Key to authenticate with, as issued by the provider. Left out, the one already configured is tried instead - which is how a configuration that is failing is checked without the key having to be typed again - but only against the address it is configured with: together with a different url, the key has to be given. It is only tried, never stored.
"sk-abcdefghijklmnopqrstuvwxyz123456789"
Address of the provider to ask, for a service that is hosted elsewhere or reached through a gateway of your own. Left out, the one already configured is used, and failing that the provider the platform talks to by default. The address has to be an absolute http or https URL without a user name, a password, a query or a fragment, and an address of an internal or reserved network - a loopback, private or link-local address, or a host name resolving to one - is refused unless the platform configuration allows it; the platform's own provider address is always accepted. A refused address is never reached for.
"https://api.custom-llm-provider.com/"