---
title: "Authentication"
url: "https://docs.sixfab.com/api/connect/authentication/"
last_updated: "2026-11-26"
---

# Authentication

The API authenticates each request with an API key, sent in the `X-API-Key` header. Your API keys identify you, so keep them private: don’t put a key in client-side code, in a public repository or in a container image you share.

### Get your API key

1. Sign in to [Sixfab Connect](https://connect.sixfab.com/).
2. Open the [Developer page](https://connect.sixfab.com/#/developer) from the control panel.
3. Create a new API key, and copy it.

![Sixfab Connect API Keys page with the New API Key button and an empty API keys list](https://docs.sixfab.com/wp-content/uploads/sixfab-docs/Sixfab_Connect_Sixfab_API_Create_API_key.png)

### HTTP header

Send the key in the `X-API-Key` header of every request, over HTTPS. A request without a key fails with `403` `{"detail":"Not authenticated"}`; a request with an unknown key fails with `401` `{"detail":"Invalid API Key"}`.

**GET /v1/assets · cURL**

```bash
curl 'https://api.sixfab.com/v1/assets' \
  -H 'X-API-Key: [YOUR_API_KEY]'
```

**GET /v1/assets · Python**

```python
import requests

response = requests.get(
    "https://api.sixfab.com/v1/assets",
    headers={"X-API-Key": "[YOUR_API_KEY]"},
)
print(response.json())
```

**GET /v1/assets · Node.js**

```javascript
const response = await fetch("https://api.sixfab.com/v1/assets", {
  headers: {
    "X-API-Key": "[YOUR_API_KEY]",
  },
});
console.log(await response.json());
```
