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

# API keys

> Create an API key and send it in the Authorization header of every request.

## Create a key

Sign up with an email address, then create a key on the **API keys** page of the dashboard. The key is shown once; store it in your secret manager and in `STYNE_API_KEY`.

The 7-day trial starts once per account; see [Plans and billing](https://docs.styne.ai/billing.md).

## Use a key

```bash theme={"theme":"css-variables"}
curl -sS https://api.styne.ai/sandboxes \
  -H "Authorization: Bearer $STYNE_API_KEY"
```

The key can also be sent as `X-API-Key: <key>`, which is what the E2B SDKs do. A missing or wrong key answers `401 unauthenticated`; see [errors](https://docs.styne.ai/errors.md).

The E2B and Daytona SDKs take the same key in their own variable (`E2B_API_KEY`, `DAYTONA_API_KEY`); see [Switch from E2B](https://docs.styne.ai/e2b-drop-in.md) and [Switch from Daytona](https://docs.styne.ai/migrate-daytona.md).

## Keep a key safe

* Send the key only over HTTPS and only to `api.styne.ai` or the sandbox hosts under `styne.ai`.
* Never put a key in a page, a log or a screenshot.
* Every response carries `x-request-id`; quote it to support.


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