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

# Access and API keys

> How to get an API key and send it with every request.

## Get a key

tabSutra is available as a hosted API. To get an API key, write to us at [contact@tabsutra.com](mailto:contact@tabsutra.com). Tell us a little about your use case and the size of your data, so that we can set up the right limits for your account.

## Send the key

Send the key in the `Authorization` header of every request, after the word `Bearer`.

```bash curl theme={null}
curl https://api.tabsutra.com/v1/capabilities \
  -H "Authorization: Bearer $TABSUTRA_API_KEY"
```

```python Python theme={null}
import os
import requests

API = "https://api.tabsutra.com"
HEADERS = {"Authorization": f"Bearer {os.environ['TABSUTRA_API_KEY']}"}

print(requests.get(f"{API}/v1/capabilities", headers=HEADERS).json())
```

A request without a valid key gets the status 401.

## Keep the key safe

Treat the key like a password. Keep it in an environment variable or a secrets store, not in code or notebooks that others can read. If a key may have leaked, write to us and we will replace it.

## Your data

Your rows are used only to answer the request you send. They are not used to train the model. A context or a database that you send stays in memory for a limited time, so that you can make several predictions without sending it again. You can delete it at any time with the matching `DELETE` call.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.