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

# Get Server Health or Chat UI

GET http://localhost:8000/

Returns a health payload when the chat UI is disabled. Otherwise, serves
the interactive chat interface.


Reference: https://docs.nvidia.com/nemo/guardrails/nemo/guardrails/reference/guardrails-api-server/health/get-root

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: NVIDIA NeMo Guardrails Library API Server
  version: 1.0.0
paths:
  /:
    get:
      operationId: get-root
      summary: Get server health or chat UI
      description: |
        Returns a health payload when the chat UI is disabled. Otherwise, serves
        the interactive chat interface.
      tags:
        - subpackage_health
      responses:
        '200':
          description: Health payload or chat UI HTML.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Health_getRoot_Response_200'
servers:
  - url: http://localhost:8000
    description: Local Guardrails server
components:
  schemas:
    Health_getRoot_Response_200:
      type: object
      properties:
        status:
          type: string
      title: Health_getRoot_Response_200

```

## Examples



**Response**

```json
{
  "status": "ok"
}
```

**SDK Code**

```python Health_getRoot_example
import requests

url = "http://localhost:8000/"

response = requests.get(url)

print(response.json())
```

```javascript Health_getRoot_example
const url = 'http://localhost:8000/';
const options = {method: 'GET'};

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

```go Health_getRoot_example
package main

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

func main() {

	url := "http://localhost:8000/"

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

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

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

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

}
```

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

url = URI("http://localhost:8000/")

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

request = Net::HTTP::Get.new(url)

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

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

HttpResponse<String> response = Unirest.get("http://localhost:8000/")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'http://localhost:8000/');

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

```csharp Health_getRoot_example
using RestSharp;

var client = new RestClient("http://localhost:8000/");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
```

```swift Health_getRoot_example
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "http://localhost:8000/")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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()
```