Skip to main content
GET
/
mcp-gateway
/
list-gateways
List MCP Gateways
curl --request GET \
  --url https://api.enkryptai.com/mcp-gateway/list-gateways \
  --header 'apikey: <api-key>'
import requests

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

headers = {"apikey": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {apikey: '<api-key>'}};

fetch('https://api.enkryptai.com/mcp-gateway/list-gateways', 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/list-gateways",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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/list-gateways"

req, _ := http.NewRequest("GET", url, nil)

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/list-gateways")
.header("apikey", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.enkryptai.com/mcp-gateway/list-gateways")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["apikey"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "gateways": [
    {
      "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"
    }
  ],
  "pagination": {
    "page": 123,
    "per_page": 123,
    "total_count": 123,
    "total_pages": 123,
    "has_next": true,
    "has_previous": true
  }
}
{
"error": "<string>"
}
{
"error": "<string>"
}
{
"error": "<string>"
}

Authorizations

apikey
string
header
required

Query Parameters

page
integer
default:1

Page number (1-indexed)

Required range: x >= 1
Example:

1

per_page
integer
default:10

Number of items per page (max 100)

Required range: 1 <= x <= 100
Example:

10

is_active
boolean

Optional filter on the is_active column. Omit to return all rows (default behaviour). Set to true for active-only or false for inactive-only.

Response

List of gateways

gateways
object[]
pagination
object