Get Configuration
curl --request GET \
--url https://api.example.com/api/configs/exportimport requests
url = "https://api.example.com/api/configs/export"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/configs/export', 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://api.example.com/api/configs/export",
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://api.example.com/api/configs/export"
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://api.example.com/api/configs/export")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/configs/export")
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{
"version": 123,
"ui": {
"enable_signup": true,
"ENABLE_LOGIN_FORM": true,
"default_locale": "<string>",
"default_models": "<string>",
"default_pinned_models": "<string>",
"model_order_list": [
{}
],
"prompt_suggestions": [
{
"title": [
{}
],
"content": "<string>"
}
],
"default_user_role": "<string>",
"default_group_id": "<string>",
"watermark": "<string>",
"enable_community_sharing": true,
"enable_message_rating": true,
"enable_user_webhooks": true,
"banners": [
{
"id": "<string>",
"type": "<string>",
"title": "<string>",
"content": "<string>",
"dismissible": true,
"timestamp": 123
}
]
},
"auth": {
"enable_api_keys": true,
"api_key.endpoint_restrictions": true,
"api_key.allowed_endpoints": "<string>",
"jwt_expiry": "<string>",
"admin.show": true,
"admin.email": "<string>"
},
"oauth": {
"enable_signup": true,
"merge_accounts_by_email": true,
"enable_role_mapping": true,
"enable_group_mapping": true,
"enable_group_creation": true,
"allowed_domains": [
{}
],
"update_picture_on_login": true,
"update_name_on_login": true,
"update_email_on_login": true
},
"ollama": {
"enable": true,
"base_urls": [
{}
],
"api_configs": {}
},
"openai": {
"enable": true,
"api_keys": [
{}
],
"api_base_urls": [
{}
],
"api_configs": {}
},
"models": {
"base_models_cache": true,
"default_metadata": {},
"default_params": {}
},
"tool_server": {
"connections": [
{
"url": "<string>",
"path": "<string>",
"type": "<string>",
"auth_type": "<string>",
"headers": {},
"key": "<string>",
"config": {}
}
]
},
"terminal_server": {
"connections": [
{}
]
},
"direct": {
"enable": true
},
"webui": {
"url": "<string>"
},
"user": {
"permissions": {}
},
"folders": {
"enable": true,
"max_file_count": "<string>"
},
"channels": {
"enable": true
},
"notes": {
"enable": true
},
"webhook_url": "<string>"
}Configuration
Get Configuration
Export the complete system configuration
GET
/
api
/
configs
/
export
Get Configuration
curl --request GET \
--url https://api.example.com/api/configs/exportimport requests
url = "https://api.example.com/api/configs/export"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/configs/export', 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://api.example.com/api/configs/export",
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://api.example.com/api/configs/export"
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://api.example.com/api/configs/export")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/configs/export")
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{
"version": 123,
"ui": {
"enable_signup": true,
"ENABLE_LOGIN_FORM": true,
"default_locale": "<string>",
"default_models": "<string>",
"default_pinned_models": "<string>",
"model_order_list": [
{}
],
"prompt_suggestions": [
{
"title": [
{}
],
"content": "<string>"
}
],
"default_user_role": "<string>",
"default_group_id": "<string>",
"watermark": "<string>",
"enable_community_sharing": true,
"enable_message_rating": true,
"enable_user_webhooks": true,
"banners": [
{
"id": "<string>",
"type": "<string>",
"title": "<string>",
"content": "<string>",
"dismissible": true,
"timestamp": 123
}
]
},
"auth": {
"enable_api_keys": true,
"api_key.endpoint_restrictions": true,
"api_key.allowed_endpoints": "<string>",
"jwt_expiry": "<string>",
"admin.show": true,
"admin.email": "<string>"
},
"oauth": {
"enable_signup": true,
"merge_accounts_by_email": true,
"enable_role_mapping": true,
"enable_group_mapping": true,
"enable_group_creation": true,
"allowed_domains": [
{}
],
"update_picture_on_login": true,
"update_name_on_login": true,
"update_email_on_login": true
},
"ollama": {
"enable": true,
"base_urls": [
{}
],
"api_configs": {}
},
"openai": {
"enable": true,
"api_keys": [
{}
],
"api_base_urls": [
{}
],
"api_configs": {}
},
"models": {
"base_models_cache": true,
"default_metadata": {},
"default_params": {}
},
"tool_server": {
"connections": [
{
"url": "<string>",
"path": "<string>",
"type": "<string>",
"auth_type": "<string>",
"headers": {},
"key": "<string>",
"config": {}
}
]
},
"terminal_server": {
"connections": [
{}
]
},
"direct": {
"enable": true
},
"webui": {
"url": "<string>"
},
"user": {
"permissions": {}
},
"folders": {
"enable": true,
"max_file_count": "<string>"
},
"channels": {
"enable": true
},
"notes": {
"enable": true
},
"webhook_url": "<string>"
}Exports the complete system configuration including all settings, OAuth providers, tool servers, models, and UI preferences.
Authentication
Requires admin authentication.Response
integer
Configuration version number
object
UI-related configuration settings
Show properties
Show properties
boolean
Whether user signup is enabled
boolean
Whether login form is displayed
string
Default locale for the UI
string
Comma-separated list of default models
string
Comma-separated list of pinned models
array
Ordered list of model IDs
array
string
Default role for new users (e.g., “pending”, “user”)
string
Default group ID for new users
string
Response watermark text
boolean
Whether community sharing is enabled
boolean
Whether message rating is enabled
boolean
Whether user webhooks are enabled
array
Array of banner objects
object
Authentication configuration
object
OAuth configuration settings
Show properties
Show properties
boolean
Whether OAuth signup is enabled
boolean
Whether to merge accounts by email
boolean
Whether OAuth role mapping is enabled
boolean
Whether OAuth group mapping is enabled
boolean
Whether OAuth group creation is enabled
array
Array of allowed domains for OAuth
boolean
Whether to update user picture on login
boolean
Whether to update user name on login
boolean
Whether to update user email on login
object
object
object
object
Tool server configuration
Show properties
Show properties
array
Array of tool server connection objects
object
Terminal server configuration
Show properties
Show properties
array
Array of terminal server connection objects
object
User configuration
Show properties
Show properties
object
Default user permissions object with nested workspace, sharing, chat, features, and settings permissions
object
string
Webhook URL for notifications
Example Response
{
"version": 0,
"ui": {
"enable_signup": true,
"ENABLE_LOGIN_FORM": true,
"default_locale": "",
"default_models": null,
"default_pinned_models": null,
"model_order_list": [],
"prompt_suggestions": [
{
"title": ["Help me study", "vocabulary for a college entrance exam"],
"content": "Help me study vocabulary: write a sentence for me to fill in the blank, and I'll try to pick the correct option."
}
],
"default_user_role": "pending",
"default_group_id": "",
"watermark": "",
"enable_community_sharing": true,
"enable_message_rating": true,
"enable_user_webhooks": true,
"banners": []
},
"auth": {
"enable_api_keys": false,
"api_key": {
"endpoint_restrictions": false,
"allowed_endpoints": ""
},
"jwt_expiry": "4w",
"admin": {
"show": true,
"email": null
}
},
"ollama": {
"enable": true,
"base_urls": ["http://localhost:11434"],
"api_configs": {}
},
"openai": {
"enable": true,
"api_keys": [],
"api_base_urls": ["https://api.openai.com/v1"],
"api_configs": {}
},
"models": {
"base_models_cache": false,
"default_metadata": {},
"default_params": {}
},
"tool_server": {
"connections": []
},
"direct": {
"enable": false
},
"webui": {
"url": ""
}
}