API Key
To use the MagicalAPI services, you'll need an API key. API keys are only available with Pro plans.
Prerequisites
- A MagicalAPI account
- An active Pro or Business plan subscription
Obtaining Your API Key
-
Log in to Your Account
Go to the MagicalAPI Dashboard and sign in to access your account. -
Navigate to API Info
Once logged in, find the API Info tab in the left sidebar or click API Keys in the top navigation. -
Create an API Key
In the API Info section:- Click "Create API Key"
- Enter a title for your key (for tracking purposes)
- Note: You can have up to 5 active API keys
-
Save Your API Key
After creation, your API key will be displayed once. Make sure to:- Copy the key immediately
- Store it securely
- Never share it with others
Managing API Keys
Best Practices
- Use different keys for development and production
- Rotate keys periodically for security
- Delete unused keys promptly
Security Guidelines
-
Store Securely
# Use environment variables
import os
api_key = os.environ.get('MAGICAL_API_KEY') -
Never Expose Keys
- Don't commit keys to version control
- Keep keys out of client-side code
- Don't include keys in logs
-
Monitor Usage
- Track API calls per key
- Set up usage alerts
- Review access patterns
warning
If you suspect a key has been compromised:
- Delete it immediately in the dashboard
- Create a new key
- Update your applications with the new key
Next Steps
Once you have your API key:
- Learn how to authenticate requests
- Read the request guide
- Explore available services