API keys
Generate personal API keys to interact with mixus programmatically. Perfect for automation, integrations, and eval tasks.Overview
mixus API keys allow you to:- ✅ Create and manage evaluation tasks
- 📊 Track agent execution status
- 🤖 Automate workflows
- 🔗 Integrate with external systems
- 📈 Monitor performance metrics
Generating your first API key
Step 1: navigate to API keys
- Sign in to app.mixus.ai
- Go to Integrations → mixus API Keys
- Click “Manage API Keys”
Step 2: create key
- Click “Generate API Key”
- Fill in the details:
- Name: Descriptive name (e.g., “Production Eval Key”)
- Description: What you’ll use this key for
- Permissions: Select the scopes you need
- Expiration: Choose when the key expires
- Click “Generate API Key”
Step 3: save your key
⚠️ Important: The key is shown only once! Copy it immediately and store it securely. Your key will look like:Permissions and scopes
Control what your API keys can access:Available scopes
Scope | What it allows |
---|---|
eval:create | Create and run evaluation agents programmatically |
eval:read | View execution status, checkpoints, and performance metrics |
eval:manage | Full access - create, read, update, and delete evals |
Using your API key
Basic usage
Include your API key in theAuthorization
header:
Example: create eval task
Example: check status
Best practices
Security
✅ Do:- Store keys in environment variables
- Use different keys for dev/production
- Rotate keys regularly (30-90 days)
- Use minimal required permissions
- Revoke compromised keys immediately
- Commit keys to version control
- Share keys between team members
- Store keys in client-side code
- Use production keys in development
Example: Secure Storage
Managing your keys
View active keys
Visit app.mixus.ai/integrations/api-keys to see:- All your active keys
- Usage statistics
- Last used date
- Expiration status
Revoke a key
- Go to API keys page
- Find the key you want to revoke
- Click the trash icon
- Confirm revocation
Limitations
- Maximum keys: 10 active keys per user
- Rate limit: 100 requests per minute per key
- Concurrent executions: 10 simultaneous eval tasks
- Key length: 41 characters (format:
mxs_eval_[32 chars]
)
Troubleshooting
”Unauthorized” error
Problem: API returns 401 Unauthorized Solutions:- Check your API key is correct
- Verify key hasn’t expired
- Ensure key hasn’t been revoked
- Confirm you have the required scope
”Access denied” error
Problem: API returns 403 Access Denied Solution: Your API key doesn’t have the required permission. Generate a new key with the correct scope.Key not working
Problem: Newly generated key doesn’t work Solutions:- Wait 5-10 seconds (propagation delay)
- Check you copied the entire key
- Verify no extra spaces in the key
- Ensure you’re using the Bearer format
Related documentation
- Evaluation API - Complete API reference and examples
- Agent examples - Ready-to-use agent templates
- Integrations - Connect external services
Support
Need help with API keys?- 📧 Email: support@mixus.ai
- 📖 Documentation: Evaluation API guide
- 💡 Examples: Check the evaluation API documentation for working code samples