> ## Documentation Index
> Fetch the complete documentation index at: https://docs.theslow.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Site Status

> Check whether your SlowNet site is currently enabled or disabled.

## Endpoint

```
GET https://theslow.net/api/slownetsite/get-site-status
```

## Overview

This endpoint lets you check if your SlowNet site is currently **enabled** (publicly visible) or **disabled**.

## Authentication

This endpoint requires an API key. You can retrieve an API key from your [dashboard](https://theslow.net/dashboard). Include it in the `X-API-KEY` header:

```
X-API-KEY: YOUR_API_KEY_HERE
```

For more details, see the [Authentication Guide](https://docs.theslow.net/authentication).

## Parameters

✅ **None**
This endpoint does not require any path, query, or request body parameters.

## Request Examples

### cURL

```bash theme={null}
curl -X GET   'https://theslow.net/api/slownetsite/get-site-status'   -H 'X-API-KEY: YOUR_API_KEY'   -H 'Content-Type: application/json'
```

### Python

```python theme={null}
import requests

BASE_URL = "https://theslow.net/api"
API_KEY = "YOUR_API_KEY"

headers = {
    "X-API-KEY": API_KEY,
    "Content-Type": "application/json"
}

response = requests.get(
    f"{BASE_URL}/slownetsite/get-site-status",
    headers=headers
)

if response.ok:
    print("✅ Site Status:", response.json())
else:
    print("❌ Error:", response.status_code, response.json())
```

### JavaScript (Fetch)

```js theme={null}
async function getSiteStatus() {
  try {
    const response = await fetch("/api/slownetsite/get-site-status", {
      method: "GET",
      headers: {
        "X-API-KEY": "YOUR_API_KEY",
        "Content-Type": "application/json"
      }
    });

    if (!response.ok) {
      const errorData = await response.json();
      console.error("Failed to fetch:", errorData.error);
      return;
    }

    const data = await response.json();
    console.log("Site Status:", data);
  } catch (err) {
    console.error("Unexpected error:", err);
  }
}

// Example usage:
// getSiteStatus();
```

## Responses

### 200 OK

```json theme={null}
{
  "enabled": true
}
```

or

```json theme={null}
{
  "enabled": false
}
```

### 401 Unauthorized

User is not authenticated.

```json theme={null}
{
  "error": "Unauthorized"
}
```

### 500 Internal Server Error

A server-side error occurred.

```json theme={null}
{
  "error": "Could not fetch site status."
}
```

## Need Further Assistance?

If you have any questions or encounter issues, please don't hesitate to reach out to our [support team](https://theslow.net/dashboard#support).
