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

# Create and use Linkvite API keys

> Create an API key for scripts and servers that act as your own Linkvite account.

An API key lets your own code use the API as you, with your account's full access. Use one for scripts, cron jobs, automations and servers. If you're building an app other people sign in to, use [OAuth](https://docs.linkvite.io/developers/oauth.md) instead.

> [!NOTE]
>
> Creating and using API keys requires [Linkvite Pro](https://docs.linkvite.io/guides/plans.md).

## Create a key

1. In the web app, go to **Settings** → **Developers**.
2. Create a key and give it a name you'll recognize later.
3. Copy it. Keys start with `link_`.

Store keys like passwords: in environment variables or a secrets manager, never in client-side code or a repository.

## Use a key

Send it in the `x-api-key` header:

```bash curl theme={null}
curl https://api.linkvite.io/v1/user \
  -H "x-api-key: $LINKVITE_API_KEY"
```

```javascript JavaScript theme={null}
import {Linkvite} from '@linkvite/js';

const linkvite = new Linkvite(process.env.LINKVITE_API_KEY);
```

```go Go theme={null}
client, err := linkvite.NewClient(os.Getenv("LINKVITE_API_KEY"))
```

A key that doesn't start with `link_` is rejected with `400`; an unknown or deleted key returns `401`.

## Manage keys

**Settings** → **Developers** lists your keys and when each was last used. Rename a key, or delete one you no longer use or that may have leaked; requests with a deleted key fail immediately.


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