# Get an API key

> Create a free key in seconds. It is shown once, so copy it before you leave this page.

Source: https://docs.invariant-ai.com/get-api-key

To create a key, call POST /v1/keys (shown below) or use the form at https://docs.invariant-ai.com/get-api-key.

## How it works

1. Enter your email and, if you like, a name for the key.
2. We create the key and show it once. We keep only its SHA-256 hash.
3. Send it on every request in the `X-API-Key` header.

## Limits

- Up to **5 active keys** per email.
- Up to **5 new keys per hour** from one network.
- Lost a key? Create a new one. To revoke a key, call [`DELETE /v1/keys/me`](https://docs.invariant-ai.com/api/key-revoke) with it.

## From the command line

```bash
curl -s -X POST https://api.invariant-ai.com/v1/keys \
  -H "Content-Type: application/json" \
  -d '{"email": "you@company.com", "name": "laptop"}'
```
