curl --request GET \
--url https://api.enkryptai.com/mcp-gateway/get-gateway-config \
--header 'X-Enkrypt-MCP-Gateway: <x-enkrypt-mcp-gateway>' \
--header 'apikey: <api-key>'import requests
url = "https://api.enkryptai.com/mcp-gateway/get-gateway-config"
headers = {
"X-Enkrypt-MCP-Gateway": "<x-enkrypt-mcp-gateway>",
"apikey": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-Enkrypt-MCP-Gateway': '<x-enkrypt-mcp-gateway>', apikey: '<api-key>'}
};
fetch('https://api.enkryptai.com/mcp-gateway/get-gateway-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.enkryptai.com/mcp-gateway/get-gateway-config",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Enkrypt-MCP-Gateway: <x-enkrypt-mcp-gateway>",
"apikey: <api-key>"
],
]);
$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.enkryptai.com/mcp-gateway/get-gateway-config"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Enkrypt-MCP-Gateway", "<x-enkrypt-mcp-gateway>")
req.Header.Add("apikey", "<api-key>")
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.enkryptai.com/mcp-gateway/get-gateway-config")
.header("X-Enkrypt-MCP-Gateway", "<x-enkrypt-mcp-gateway>")
.header("apikey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.enkryptai.com/mcp-gateway/get-gateway-config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Enkrypt-MCP-Gateway"] = '<x-enkrypt-mcp-gateway>'
request["apikey"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"gateway_saved_name": "<string>",
"gateway_version": "<string>",
"gateway_id": "<string>",
"project_name": "<string>",
"is_active": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"common_overrides": {
"input_guardrails_config": {
"enabled": true,
"guardrail_name": "<string>",
"additional_config": {},
"block": [
"policy_violation"
]
},
"output_guardrails_config": {
"enabled": true,
"guardrail_name": "<string>",
"additional_config": {},
"block": [
"policy_violation"
]
},
"server_tools_guardrails_config": {
"enabled": true,
"guardrail_name": "<string>",
"additional_config": {},
"block": [
"policy_violation"
]
}
},
"expanded_servers": [
{
"saved_name": "<string>",
"server_version": "<string>",
"server_name": "<string>",
"description": "<string>",
"job_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"source_url": "<string>",
"source_version": "<string>",
"registry_id": "<string>",
"is_active": true,
"mcp_config": {},
"gateway_overrides": {
"input_guardrails_config": {
"enabled": true,
"guardrail_name": "<string>",
"additional_config": {},
"block": [
"policy_violation"
]
},
"output_guardrails_config": {
"enabled": true,
"guardrail_name": "<string>",
"additional_config": {},
"block": [
"policy_violation"
]
}
}
}
]
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Get Expanded MCP Gateway Configuration
Retrieve the complete expanded MCP gateway configuration. Each entry in expanded_servers[] carries mcp_config = registry server’s base mcp_config merged with that entry’s per-server overrides. Gateway-wide servers_config.common_overrides always wins: for any override key (input_guardrails_config, output_guardrails_config, server_tools_guardrails_config) that common_overrides sets, the key is omitted from every server’s mcp_config (even if a per-server entry also set the same input/output key — the per-server value is dropped). Read those values once from the top-level common_overrides in the response. Requires X-Enkrypt-MCP-Gateway header.
curl --request GET \
--url https://api.enkryptai.com/mcp-gateway/get-gateway-config \
--header 'X-Enkrypt-MCP-Gateway: <x-enkrypt-mcp-gateway>' \
--header 'apikey: <api-key>'import requests
url = "https://api.enkryptai.com/mcp-gateway/get-gateway-config"
headers = {
"X-Enkrypt-MCP-Gateway": "<x-enkrypt-mcp-gateway>",
"apikey": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-Enkrypt-MCP-Gateway': '<x-enkrypt-mcp-gateway>', apikey: '<api-key>'}
};
fetch('https://api.enkryptai.com/mcp-gateway/get-gateway-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.enkryptai.com/mcp-gateway/get-gateway-config",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Enkrypt-MCP-Gateway: <x-enkrypt-mcp-gateway>",
"apikey: <api-key>"
],
]);
$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.enkryptai.com/mcp-gateway/get-gateway-config"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Enkrypt-MCP-Gateway", "<x-enkrypt-mcp-gateway>")
req.Header.Add("apikey", "<api-key>")
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.enkryptai.com/mcp-gateway/get-gateway-config")
.header("X-Enkrypt-MCP-Gateway", "<x-enkrypt-mcp-gateway>")
.header("apikey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.enkryptai.com/mcp-gateway/get-gateway-config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Enkrypt-MCP-Gateway"] = '<x-enkrypt-mcp-gateway>'
request["apikey"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"gateway_saved_name": "<string>",
"gateway_version": "<string>",
"gateway_id": "<string>",
"project_name": "<string>",
"is_active": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"common_overrides": {
"input_guardrails_config": {
"enabled": true,
"guardrail_name": "<string>",
"additional_config": {},
"block": [
"policy_violation"
]
},
"output_guardrails_config": {
"enabled": true,
"guardrail_name": "<string>",
"additional_config": {},
"block": [
"policy_violation"
]
},
"server_tools_guardrails_config": {
"enabled": true,
"guardrail_name": "<string>",
"additional_config": {},
"block": [
"policy_violation"
]
}
},
"expanded_servers": [
{
"saved_name": "<string>",
"server_version": "<string>",
"server_name": "<string>",
"description": "<string>",
"job_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"source_url": "<string>",
"source_version": "<string>",
"registry_id": "<string>",
"is_active": true,
"mcp_config": {},
"gateway_overrides": {
"input_guardrails_config": {
"enabled": true,
"guardrail_name": "<string>",
"additional_config": {},
"block": [
"policy_violation"
]
},
"output_guardrails_config": {
"enabled": true,
"guardrail_name": "<string>",
"additional_config": {},
"block": [
"policy_violation"
]
}
}
}
]
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
Headers
Gateway saved_name
32"my-dev-gateway"
Gateway version (defaults to "v1")
"v1"
Response
Expanded gateway configuration
Gateway name
Gateway version
Hashed gateway ID
Project name
Whether the gateway is enabled
Creation timestamp
Last update timestamp
Echo of servers_config.common_overrides — the gateway-wide override block applied to every server before per-server overrides are layered on. Empty object when not set.
Show child attributes
Show child attributes
Show child attributes
Show child attributes

