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

# List Services

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

Reference: https://docs.fabricgateway.ai/reference/admin-api/services/list-services

## Authentication

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

## Request

### Path parameters

- `tenant` (string, required)

## Response

### 200

200- list of services

- `list of ApiV1TenantServicesGetResponsesContentApplicationJsonSchemaItems`

## Errors

### 401 Unauthorized Error

401- missing access token

- `error` (ApiV1TenantServicesGetResponsesContentApplicationJsonSchemaError, optional)

### 500 Internal Server Error

Server Error

## Types

### ApiV1TenantServicesGetResponsesContentApplicationJsonSchemaItems

- `id` (string, optional)
- `name` (string, optional)
- `description` (string, optional)
- `owned_by` (string, optional)
- `created_at` (datetime, optional)
- `updated_at` (datetime, optional)
- `config` (ApiV1TenantServicesGetResponsesContentApplicationJsonSchemaItemsConfig, optional)
- `auth` (ApiV1TenantServicesGetResponsesContentApplicationJsonSchemaItemsAuth, optional)

### ApiV1TenantServicesGetResponsesContentApplicationJsonSchemaError

- `code` (string, optional)
- `message` (string, optional)

### ApiV1TenantServicesGetResponsesContentApplicationJsonSchemaItemsConfig

- `protocol` (string, optional)
- `discovery` (string, optional)
- `upstreams` (list of ApiV1TenantServicesGetResponsesContentApplicationJsonSchemaItemsConfigUpstreamsItems, optional)
- `balancer` (string, optional)
- `llm` (ApiV1TenantServicesGetResponsesContentApplicationJsonSchemaItemsConfigLlm, optional)

### ApiV1TenantServicesGetResponsesContentApplicationJsonSchemaItemsAuth

- `auth_scheme` (string, optional)
- `header` (string, optional)

### ApiV1TenantServicesGetResponsesContentApplicationJsonSchemaItemsConfigUpstreamsItems

- `target` (string, optional)
- `weight` (integer, optional)
- `tags` (list of string, optional)
- `name` (string, optional)

### ApiV1TenantServicesGetResponsesContentApplicationJsonSchemaItemsConfigLlm

- `integration_id` (string, optional)

## Examples

**Response**

```json
[
  {
    "id": "3e53b59d-6bc8-11f1-a182-128597d649a1",
    "name": "ai21",
    "description": "AI21 Jamba OpenAI-compatible chat completions endpoint.",
    "owned_by": "Postman",
    "created_at": "2026-06-12T16:42:58.531Z",
    "updated_at": "2026-06-12T16:42:58.531Z",
    "config": {
      "protocol": "llm",
      "discovery": "static",
      "upstreams": [
        {
          "target": "https://api.ai21.com/studio/v1",
          "weight": 100,
          "tags": [
            "AI Platform",
            "llm",
            "ai21"
          ],
          "name": "ai21"
        }
      ],
      "balancer": "round-robin",
      "llm": {
        "integration_id": "6af8cf10-e842-4ab4-ab8e-60424ee6c47b"
      }
    },
    "auth": {
      "auth_scheme": "bearer",
      "header": "Authorization"
    }
  },
  {
    "id": "9e0911f5-ad50-4dc0-b344-45c7bccb7e28",
    "name": "example-service",
    "owned_by": "Postman",
    "created_at": "2026-06-25T08:01:29.072Z",
    "updated_at": "2026-06-29T10:03:12.3Z",
    "config": {
      "protocol": "http",
      "discovery": "static",
      "upstreams": [
        {
          "target": "https://upstream.example.com",
          "weight": 100,
          "tags": [
            "Development"
          ]
        }
      ],
      "balancer": "round-robin",
      "access_mode": "gated"
    }
  }
]
```

**SDK Code**

```python Services_listServices_example
import requests

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

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

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

print(response.json())
```

```javascript Services_listServices_example
const url = 'https://control-plane.example.com/api/v1/acme/services';
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 Services_listServices_example
package main

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

func main() {

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

	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 Services_listServices_example
require 'uri'
require 'net/http'

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

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 Services_listServices_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/services")
  .header("fg-tenant-api-key", "<apiKey>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

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

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

```csharp Services_listServices_example
using RestSharp;

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

```swift Services_listServices_example
import Foundation

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

let request = NSMutableURLRequest(url: NSURL(string: "https://control-plane.example.com/api/v1/acme/services")! 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()
```