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

# Authentication

> Get your API key and authenticate requests

The Field Sight API uses API keys to authenticate requests. Include your key in the `x-api-key` header of every request.

## Get your API key

**1. Open the dashboard**

[Dashboard](https://dashboard.novumlogictechnologies.com)

**2. Create a key**

Go to **API KEYS** and click **Create key**.

**3. Copy and store it**

Copy the key right away and save it somewhere safe.

## Send your key

Pass your api key:

```bash curl
curl --location --request POST https://api.novumlogictechnologies.com/detect?check_blur=false \
  --header 'x-api-key: YOUR_API_KEY' \
  --form 'file=@"/path/to/image.jpg"'
```

```javascript JavaScript (Node.js 18+)
import fs from "node:fs";

const form = new FormData();
form.append(
  "file",
  new Blob([fs.readFileSync("/path/to/image.jpg")]),
  "image.jpg",
);

const res = await fetch("https://api.novumlogictechnologies.com/detect?check_blur=false", {
  method: "POST",
  headers: { "x-api-key": "YOUR_API_KEY" },
  body: form,
});

const data = await res.json();
console.log(data);
```

```python Python
import requests

with open("/path/to/image.jpg", "rb") as f:
    res = requests.post(
        "https://api.novumlogictechnologies.com/detect?check_blur=false",
        params={"check_blur": "false"},
        headers={"x-api-key": "YOUR_API_KEY"},
        files={"file": f},
    )

print(res.json())
```

## Keep your key secure

> [!WARNING]
>
> Your API key grants access to your account. Never share it, commit it to Git,
> or use it in frontend code such as browser JavaScript or mobile apps.

* Store keys in environment variables or a secrets manager.
* Use a separate key for each app or environment.
* Rotate a key right away if you think it was exposed.

## Authentication errors

| Status | Meaning | Fix |
| - | - | - |
| `401` | Key is missing, invalid, or revoked | Check the `x-api-key` header and your key |
| `403` | Key is valid but lacks access | Check the key's permissions or your plan |

See [Errors](/api/errors.md) for the full list.

## Revoke or rotate a key

Go to **API KEYS**, select the key, and click **Revoke**. Create a new key first and update your apps, so nothing breaks.
