How to Generate API Keys
Create and manage API keys for connecting your Magento store to cobby.
Prerequisites
- Workspace owner or admin access
- Active cobby subscription
- Magento store credentials
Create Magento User for API Access
Before generating cobby API keys, you need to create a dedicated Magento user:
In Magento 1
-
Log in to your Magento 1 backend.
-
Go to System → Web Services → SOAP/XML-RPC - Users.
-
Click Add New User.
-
Enter the user details:
- User Name: Choose a descriptive name (e.g., "cobby_api")
- API Key: Create a secure API key
- API Key Confirmation: Re-enter the API key
-
Go to the User Role tab.
-
Assign the cobby role to this user.
-
Click Save User.
Result: Your API credentials are ready for cobby portal configuration.
In Magento 2
-
Log in to your Magento 2 backend.
-
Go to System → Integrations.
-
Click Add New Integration.
-
Configure the integration:
- Name: "cobby Integration"
- API: Select all cobby-required endpoints
-
Click Save.
-
Click Activate and copy the access tokens.
Result: Integration tokens are generated for cobby.
Connect API to cobby Portal
-
Log in to the cobby portal at app.cobby.io.
-
Go to Settings → Shop Connection.
-
Enter your connection details:
- Shop URL: Your Magento store URL
- User Name: The API user name you created
- API Key: The API key you generated
-
Click Save to establish the connection.
-
Wait for the synchronization to complete.
Result: Your Magento store is connected to cobby.
Manage API Keys
View Current Keys
-
Log in to the cobby portal.
-
Go to Settings → Workspace.
-
Your workspace license key is displayed here.
Regenerate Keys
If your API keys are compromised:
-
In Magento, delete the old API user.
-
Create a new API user with new credentials.
-
Update the credentials in the cobby portal.
-
Test the connection.
Common Issues
Connection failed error?
- Verify the shop URL is correct and accessible
- Check that the API user has proper permissions
- Ensure the API key matches exactly (no extra spaces)
API user not working?
- Verify the user role includes cobby permissions
- Check that the API is enabled in Magento settings
- Review Magento logs for authentication errors
Need to revoke access?
- Delete the API user in Magento
- Update credentials in cobby portal
- Create new API user if you need to reconnect later
Security Best Practices
- Use strong, unique API keys
- Never share API credentials
- Create dedicated API users for cobby (don't reuse admin accounts)
- Regularly audit API access
- Revoke unused API keys immediately
Related Tasks
- How to Connect a New Shop (coming soon)
- How to Manage Multiple Workspaces
More Information
For developers building custom integrations:
- API Endpoints and Events - Complete API reference for custom integrations
- Troubleshoot with Postman - Test and debug API requests