Get Web Client Config
curl --request GET \
--url https://api.example.com/api/v1/web-client/configimport requests
url = "https://api.example.com/api/v1/web-client/config"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/v1/web-client/config', 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/v1/web-client/config",
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/v1/web-client/config"
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/v1/web-client/config")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/web-client/config")
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{
"app_mode": "oss",
"posthog_client_key": "<string>",
"feature_flags": {
"enable_billing": false,
"hide_llm_settings": false,
"enable_jira": false,
"enable_jira_dc": false,
"enable_linear": false,
"hide_users_page": false,
"hide_billing_page": false,
"hide_integrations_page": false,
"hide_personal_workspaces": false,
"allow_user_llm_configuration": true,
"enable_acp": true,
"deployment_mode": "cloud",
"enable_onboarding": false,
"enable_automations": true,
"enable_agent_canvas_banner": false
},
"providers_configured": [
"github"
],
"maintenance_start_time": "2023-11-07T05:31:56Z",
"auth_url": "<string>",
"recaptcha_site_key": "<string>",
"faulty_models": [
"<string>"
],
"error_message": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"github_app_slug": "<string>",
"kind": "WebClientConfig",
"gitlab_enabled": false,
"provider_default_hosts": {},
"slack_enabled": false,
"email_enabled": false,
"email_change_enabled": true,
"acp_providers": [
{
"key": "<string>",
"display_name": "<string>",
"default_command": [
"<string>"
],
"default_model": "<string>",
"available_models": [
{
"id": "<string>",
"label": "<string>"
}
],
"api_key_env_var": "<string>",
"base_url_env_var": "<string>"
}
],
"jira_dc_oauth_host": "<string>",
"jira_dc_service_account_managed": false,
"jira_dc_service_account_email": "<string>",
"jira_dc_service_account_config_error": "<string>"
}Config
Get Web Client Config
Get the configuration of the web client.
This endpoint is typically one of the first invoked, and does not require authentication. It provides general settings for the web client independent of users.
GET
/
api
/
v1
/
web-client
/
config
Get Web Client Config
curl --request GET \
--url https://api.example.com/api/v1/web-client/configimport requests
url = "https://api.example.com/api/v1/web-client/config"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/v1/web-client/config', 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/v1/web-client/config",
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/v1/web-client/config"
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/v1/web-client/config")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/web-client/config")
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{
"app_mode": "oss",
"posthog_client_key": "<string>",
"feature_flags": {
"enable_billing": false,
"hide_llm_settings": false,
"enable_jira": false,
"enable_jira_dc": false,
"enable_linear": false,
"hide_users_page": false,
"hide_billing_page": false,
"hide_integrations_page": false,
"hide_personal_workspaces": false,
"allow_user_llm_configuration": true,
"enable_acp": true,
"deployment_mode": "cloud",
"enable_onboarding": false,
"enable_automations": true,
"enable_agent_canvas_banner": false
},
"providers_configured": [
"github"
],
"maintenance_start_time": "2023-11-07T05:31:56Z",
"auth_url": "<string>",
"recaptcha_site_key": "<string>",
"faulty_models": [
"<string>"
],
"error_message": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"github_app_slug": "<string>",
"kind": "WebClientConfig",
"gitlab_enabled": false,
"provider_default_hosts": {},
"slack_enabled": false,
"email_enabled": false,
"email_change_enabled": true,
"acp_providers": [
{
"key": "<string>",
"display_name": "<string>",
"default_command": [
"<string>"
],
"default_model": "<string>",
"available_models": [
{
"id": "<string>",
"label": "<string>"
}
],
"api_key_env_var": "<string>",
"base_url_env_var": "<string>"
}
],
"jira_dc_oauth_host": "<string>",
"jira_dc_service_account_managed": false,
"jira_dc_service_account_email": "<string>",
"jira_dc_service_account_config_error": "<string>"
}Response
200 - application/json
Successful Response
Available options:
oss, saas Show child attributes
Show child attributes
Available options:
github, gitlab, bitbucket, bitbucket_data_center, forgejo, azure_devops, enterprise_sso Allowed value:
"WebClientConfig"Show child attributes
Show child attributes
Show child attributes
Show child attributes
Was this page helpful?

