Create a key
1
Open API keys
In the console, open API keys and click Create API key.
2
Name it and pick an environment
Give the key a name you’ll recognize, like the server or app that uses it. Pick Production or Development. The environment can’t be changed later.
3
Copy the key
Copy the key and store it somewhere safe, like your secret manager. The console shows it only once.
Keep keys secret
- Read the key from an environment variable like
NOTRA_LABS_API_KEY. Never commit it or put it in client-side code. - Use a separate key per app or environment, so you can revoke one without touching the others.
Manage keys
The API keys page lists each key with its environment, the first characters of the key, who created it and when it was last used. Open a key to see its spend, its recent requests and how close it is to its rate limits.- Rename a key from its menu. The key itself doesn’t change.
- Revoke a key from its menu. Requests with it fail right away with 401
invalid_api_key, and this can’t be undone. Its past requests stay in Logs and Usage.