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

# API Keys

> Use beta API keys with the SDK, CLI, and HTTP API.

Nullspace API keys authorize SDK, CLI, and HTTP requests. During private beta,
the Nullspace team issues keys for invited users.

## Configure clients

```bash theme={"theme":{"light":"one-light","dark":"one-dark-pro"}}
export NULLSPACE_API_KEY=ns_live_...
export NULLSPACE_API_URL=https://api.your-nullspace-domain
```

The SDK sends `Authorization: Bearer ${NULLSPACE_API_KEY}` on API requests.
Explicit `api_key=` and `base_url=` arguments override environment variables.

## Check a key

```bash theme={"theme":{"light":"one-light","dark":"one-dark-pro"}}
curl -fsS \
  -H "Authorization: Bearer ${NULLSPACE_API_KEY}" \
  "${NULLSPACE_API_URL}/v1/machines"
```

## Manage keys

During the current private beta, key replacement is operator-assisted. Ask the
Nullspace team for a new key if you need rotation or revocation.

The `/v1/keys` self-management routes remain in the OpenAPI contract for the
future self-serve account surface. They require a verified Supabase session,
not a beta runtime API key, and are disabled for the private-beta e2e path.

Concept: [Create](../concepts/create). API reference:
[createApiKey](../api-reference), [listApiKeys](../api-reference), and
[revokeApiKey](../api-reference).
