> ## 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 Projects

> Retrieve all projects associated with your API key in your SlowNet account.

## Endpoint

```
GET https://theslow.net/api/slowstats/get-projects
```

## Overview

This endpoint retrieves a list of all projects tied to your API key.\
Use it to list projects for dashboards, dropdowns, or initial app state.

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

## Query Parameters

None. This endpoint fetches all projects tied to your API key.

## Responses

### ✅ 200 OK

Returns a JSON array of projects:

```json theme={null}
{
  "projects": [
    {
      "id": "string",
      "name": "string",
      "created_at": "2025-07-16T00:00:00Z"
    }
  ]
}
```

### 🔒 401 Unauthorized

If authentication fails (invalid or missing API key):

```json theme={null}
{
  "error": "Unauthorized: You must provide a valid API Key."
}
```

### 💥 500 Internal Server Error

For unexpected server errors:

```json theme={null}
{
  "error": "An internal server error occurred."
}
```

## Examples

### CURL

```bash theme={null}
curl -X GET "https://theslow.net/api/slowstats/get-projects"      -H "X-API-KEY: YOUR_API_KEY_HERE"
```

### Python (requests)

```python theme={null}
import requests

headers = {"X-API-KEY": "YOUR_API_KEY_HERE"}
response = requests.get("https://theslow.net/api/slowstats/get-projects", headers=headers)
print(response.json())
```

### JavaScript (fetch)

```javascript theme={null}
fetch("https://theslow.net/api/slowstats/get-projects", {
  headers: { "X-API-KEY": "YOUR_API_KEY_HERE" }
})
  .then(res => res.json())
  .then(data => console.log(data.projects));
```

## Notes

* This endpoint enforces **ownership checks**, meaning it only returns projects tied to your API key.

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