Skip to main content
GET
/
mcp-gateway
/
get-gateway
Get MCP Gateway
curl --request GET \
  --url https://api.enkryptai.com/mcp-gateway/get-gateway \
  --header 'X-Enkrypt-MCP-Gateway: <x-enkrypt-mcp-gateway>' \
  --header 'apikey: <api-key>'
import requests

url = "https://api.enkryptai.com/mcp-gateway/get-gateway"

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', 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",
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"

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")
.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")

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>",
  "servers_config": {
    "common_overrides": {
      "input_guardrails_config": {
        "enabled": true,
        "guardrail_name": "<string>",
        "additional_config": {},
        "block": []
      },
      "output_guardrails_config": {
        "enabled": true,
        "guardrail_name": "<string>",
        "additional_config": {},
        "block": []
      },
      "server_tools_guardrails_config": {
        "enabled": true,
        "guardrail_name": "<string>",
        "additional_config": {},
        "block": []
      }
    },
    "servers": [
      {
        "saved_name": "<string>",
        "server_version": "v1",
        "input_guardrails_config": {
          "enabled": true,
          "guardrail_name": "<string>",
          "additional_config": {},
          "block": []
        },
        "output_guardrails_config": {
          "enabled": true,
          "guardrail_name": "<string>",
          "additional_config": {},
          "block": []
        }
      }
    ]
  },
  "gateway_id": "<string>",
  "project_name": "<string>",
  "is_active": true,
  "is_sample": true,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "updated_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
{
"error": "<string>"
}
{
"error": "<string>"
}
{
"error": "<string>"
}
{
"error": "<string>"
}
{
"error": "<string>"
}

Authorizations

apikey
string
header
required

Headers

X-Enkrypt-MCP-Gateway
string
required

Gateway saved_name

Maximum string length: 32
Example:

"my-dev-gateway"

X-Enkrypt-MCP-Gateway-Version
string
default:v1

Gateway version (defaults to "v1")

Example:

"v1"

Response

Gateway details

gateway_saved_name
string

User-given name for the gateway

gateway_version
string

Gateway version

servers_config
object
gateway_id
string

Hashed gateway ID

project_name
string

Project name

is_active
boolean

Whether the gateway is enabled (distinct from is_deleted)

is_sample
boolean

Whether this is a sample gateway

created_at
string<date-time>

Creation timestamp

updated_at
string<date-time>

Last update timestamp

created_by
string<uuid> | null

User ID who created this gateway

updated_by
string<uuid> | null

User ID who last updated this gateway