Where can I find my API key?
Your full API key is only visible once when you create it and for security reasons you can't view it again later. The Developer Console shows some key details like name and expiration date, but not the complete API key. If you didn't save your full key, you'll need to generate a new one.
Viewing your API keys
You can access your API keys in the Developer Console under API Keys. Here you'll see details including:
- Key name
- First few characters of the key
- Expiration date
- Creation date
You can also edit expiration dates or revoke and delete keys from this page. However, the full API key won't be visible since it's only shown once at creation for security.
Storing your API keys
The best practice is to store your API keys in environment variables or a secure credential manager. This keeps your keys separate from your codebase, which is important if you're sharing code or using version control.
If you stored your key this way when you created it, you can retrieve it from there rather than generating a new one.
What if I've lost my full API key?
If you didn't save your key and don't have it stored anywhere, you'll need to create a new API key. Once you have a new key, copy it immediately and store it securely in your environment variables or credential manager. You can then delete or revoke the old key to keep your account organized.