Create an API key
Create keys in the console with optional spending limit and expiration; the full key is shown only once.
You need an API key before calling the API. Keys are created and managed on the "API Keys" page in the console; one account can hold multiple keys for different purposes.
How to create a key
- Sign in and open the console, then choose API Keys in the left navigation.
- Click "Create key" and fill in:
| Field | Required | Description |
|---|---|---|
| Name | Yes | Name it after its purpose so it is easy to tell apart, e.g. production, test. |
| Spending limit (USD) | Optional | Cumulative spending cap for this key. Leave empty for unlimited. |
| Expiration date | Optional | The key stops working automatically after this date. Leave empty for no expiration. |
- Submit to create. The dialog shows the full key exactly once — copy it and store it safely right away.
How keys are displayed
- The full key is shown only once, at creation time. After closing the dialog it cannot be viewed again.
- The key list always shows a masked form (prefix and last 4 characters) to protect against shoulder surfing.
- Lost a key? Delete it and create a new one — the new key works immediately.
Security recommendations
- Never put a key into frontend code, a public repository, or a chat message — anyone holding the key can spend your balance.
- Split keys by environment (one for production, one for testing) and set a spending limit on the production key to keep the blast radius bounded.
- If you suspect a leak, delete the key and create a new one immediately. Deletion takes effect at once — calls with the old key receive 401.
- To grant someone temporary access, create a separate key with a small limit and delete it afterwards, instead of sharing your primary key.

