Who Can Manage Keys
Only Owners can create, view, and delete API keys. Members and Viewers cannot access API key management.Creating an API Key
- Go to Settings > API Keys
- Click Create API Key
- Enter a name (e.g., “Production API”, “Development”)
- Click Create
- Copy the key immediately — it won’t be shown again
Key Properties
| Property | Description |
|---|---|
| Name | Descriptive label for your reference |
| Key | The secret value (shown once) |
| Created | When the key was created |
| Last Used | When the key was last used for an API call |
| Status | Active or revoked |
Using API Keys
Include the key in theX-Api-Key header:
Revoking Keys
To revoke (delete) a key:- Go to Settings > API Keys
- Find the key
- Click Delete
- Confirm deletion
Key Rotation
Best practice: Rotate keys periodically.- Create a new key
- Update your systems to use the new key
- Verify the new key works
- Delete the old key
Multiple Keys
You can have multiple active keys:| Key | Use Case |
|---|---|
| Production API | Live application |
| Development | Testing and development |
| Partner Integration | Third-party access |
- Rotating one without affecting others
- Different access for different systems
- Easier tracking of which system uses which key
Discord Linking
API keys are also used to link Discord accounts:Security Best Practices
Never commit keys to git
Never commit keys to git
Use environment variables or secret managers. Add keys to
.gitignore.Use separate keys per environment
Use separate keys per environment
Different keys for dev, staging, production. Easier to rotate and track.
Monitor Last Used
Monitor Last Used
Check the “Last Used” column. If a key hasn’t been used in months, consider revoking.
Rotate after team changes
Rotate after team changes
When team members with key access leave, rotate keys as a precaution.
Troubleshooting
401 Unauthorized
401 Unauthorized
Lost API key
Lost API key
Keys can’t be recovered. Create a new one and update your systems.
Can't create keys
Can't create keys
Only Owners can manage API keys. Ask an Owner for a key or to upgrade your role.