Authentication
All API requests to LuxCore must be authenticated using an API key. This page explains how to obtain and use your API keys.Obtaining API Keys
API keys and merchant accounts are created by the LuxCore team during onboarding. Self-registration is not available.
- Contact your LuxCore account manager
- Or email developers@lux-core.io
API Key Types
LuxCore uses API keys to authenticate requests.Key Types
| Key Prefix | Environment | Description |
|---|---|---|
qp_prod_sk_ | Production | Real transactions with actual money movement |
qp_test_sk_ | Test | Simulated transactions, no real money movement |
Making Authenticated Requests
Include your API key in theX-API-Key header with every request:
Test Mode vs Production
Test and production requests use the same API endpoint. The environment is determined by your API key type.
Test Mode Behavior
When using test API keys (qp_test_sk_*):
- Payments are simulated and do not process real funds
- Webhooks are delivered normally for testing integrations
- All API responses mirror production behavior
- Balance operations use test balances isolated from production
- No actual bank transfers or card charges occur
Switching Environments
Simply change your API key to switch between test and production:API Key Scopes
API keys can be configured with specific scopes to limit access:| Scope | Description |
|---|---|
payments.create | Create new payments |
payments.read | View payment details |
payments.cancel | Cancel pending payments |
webhooks.create | Create webhook endpoints |
webhooks.read | View webhook configurations |
webhooks.update | Modify webhook settings |
webhooks.delete | Delete webhooks |
balance.read | View account balances |
Rate Limits
API requests are rate-limited to ensure fair usage:| Endpoint Type | Limit |
|---|---|
| Payment creation | 5000 requests/minute (burst: 500/10sec) |
| Standard endpoints | 100 requests/minute |
| Bulk operations | 10 requests/minute |
Rate limits are applied per API key. If you exceed the limit, you’ll receive a
429 Too Many Requests response.Error Responses
Authentication errors return standard HTTP status codes:| Status Code | Description |
|---|---|
401 Unauthorized | Missing or invalid API key |
403 Forbidden | API key lacks required scope |
429 Too Many Requests | Rate limit exceeded |
Example Error Response
Best Practices
Use Environment Variables
Store API keys in environment variables, never in code
Rotate Keys Regularly
Regenerate API keys periodically for security
Use Minimal Scopes
Request only the scopes your application needs
Monitor Usage
Track API usage in the dashboard for anomalies
