Get API Key
Generate and manage your MageBank API key
Authentication Essentials: Your API key authenticates all requests to the MageBank platform and is required for all API operations.
Getting Your API Key
Visit MageBank Dashboard
Navigate to the MageBank Dashboard
Sign up or sign in
Create a new account or sign in to your existing account.
When you first sign up, an API key will be automatically generated for your account.
Navigate to Integrate Agent section
Once logged in, go to the Integrate Agent section from the sidebar menu.
Access your API key
Click on the “API Key” button to open the key display modal.
Copy your key
Copy your API key for use in your applications.
Keep your API key secure. Anyone with your key can perform actions on behalf of your account.
Using Your API Key
All API requests must include your API key in the x-api-key
header as described in the Authentication page.
Security Best Practices
Key Protection: Your API key grants full access to your MageBank account. Treat it with the same care as a password.
- Server-side only: Never expose your API key in client-side code
- Secure storage: Use environment variables or a secrets manager
- Repository safety: Don’t commit API keys to code repositories
- Dedicated keys: Use separate keys for development and production when possible