Quick Reference
Most integrations need both key types: an Advanced key for catalog sync, campaigns, and reporting, and a Marketplace key for auctions and events.
Which Key Do I Need?
Common Errors
401 Unauthorized
- API key not included in
Authorizationheader - Key is malformed or expired
- Using Advanced key on Marketplace-only endpoint
Authorization: Bearer YOUR_API_KEY
403 Forbidden
- Using an Advanced key on an endpoint that requires a Marketplace key
- Using a Marketplace key on an endpoint that requires an Advanced key
How to Get Your Keys
Marketplace API Key
1
Access Topsort Admin
Log in to your Topsort Admin dashboard
2
Navigate to API Settings
Go to Settings → API Integration
3
Create API Key
Click “Generate API key” and select “Marketplace API key”
4
Copy and Store
Copy the key immediately and store it securely (it’s only shown once)
Advanced API Key
1
Access Topsort Admin
Log in to your Topsort Admin dashboard
2
Navigate to API Settings
Go to Settings → API Access
3
Generate Key
Click “Generate Key” to create your Advanced API key
4
Copy and Store
Copy the key and store it securely in your environment variables
Security Best Practices
- Never commit keys to version control
- Store keys in environment variables
- Rotate keys regularly
- Use different keys for different environments (dev, staging, production)
- Restrict key access to only necessary team members