> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.fabricgateway.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.fabricgateway.ai/_mcp/server.

# Get Route by Name

GET https://control-plane.example.com/api/v1/{tenant}/routes/{routeName}

Reference: https://docs.fabricgateway.ai/reference/admin-api/routes/get-route-by-name

## Authentication

- `fg-tenant-api-key` header (required) — API Key authentication via header

## Request

### Path parameters

- `tenant` (string, required)
- `routeName` (string, required)

## Response

### 200

200- route exists

- `Name` (string, optional)
- `Hosts` (list of string, optional, nullable)
- `Paths` (list of string, optional)
- `Methods` (list of string, optional, nullable)
- `Protocol` (string, optional)
- `services` (list of string, optional)
- `Priority` (integer, optional)
- `HeaderMatchers` (list of ApiV1TenantRoutesRouteNameGetResponsesContentApplicationJsonSchemaHeaderMatchersItems, optional, nullable)
- `access_mode` (string, optional)

## Errors

### 404 Not Found Error

404- route not found

- `error` (string, optional)

### 500 Internal Server Error

Server Error

## Types

### ApiV1TenantRoutesRouteNameGetResponsesContentApplicationJsonSchemaHeaderMatchersItems

## Examples

**Response**

```json
{
  "Name": "bedrock-codex-converse-20260619135803",
  "Hosts": null,
  "Paths": [
    "/converse/*"
  ],
  "Methods": [
    "POST"
  ],
  "Protocol": "llm",
  "services": [
    "bedrock-codex-direct-20260619135803"
  ],
  "Priority": 100,
  "HeaderMatchers": null,
  "access_mode": "open"
}
```

**SDK Code**

```python Routes_getRouteByName_example
import requests

url = "https://control-plane.example.com/api/v1/acme/routes/example-route"

headers = {"fg-tenant-api-key": "<apiKey>"}

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

print(response.json())
```

```javascript Routes_getRouteByName_example
const url = 'https://control-plane.example.com/api/v1/acme/routes/example-route';
const options = {method: 'GET', headers: {'fg-tenant-api-key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Routes_getRouteByName_example
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://control-plane.example.com/api/v1/acme/routes/example-route"

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

	req.Header.Add("fg-tenant-api-key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Routes_getRouteByName_example
require 'uri'
require 'net/http'

url = URI("https://control-plane.example.com/api/v1/acme/routes/example-route")

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

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

response = http.request(request)
puts response.read_body
```

```java Routes_getRouteByName_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://control-plane.example.com/api/v1/acme/routes/example-route")
  .header("fg-tenant-api-key", "<apiKey>")
  .asString();
```

```php Routes_getRouteByName_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://control-plane.example.com/api/v1/acme/routes/example-route', [
  'headers' => [
    'fg-tenant-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Routes_getRouteByName_example
using RestSharp;

var client = new RestClient("https://control-plane.example.com/api/v1/acme/routes/example-route");
var request = new RestRequest(Method.GET);
request.AddHeader("fg-tenant-api-key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Routes_getRouteByName_example
import Foundation

let headers = ["fg-tenant-api-key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://control-plane.example.com/api/v1/acme/routes/example-route")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```