API key authentication
Every Amps API request carries an API key in thex-api-key header. The key identifies the customer account and routes the request to the correct environment schema.
Getting your API keys
You will need to request Sandbox access before completing these steps. Get sandbox access to continue.
Log into Dashboard
Access the Amps AI Dashboard with your customer account
Using API keys
Include your API key in thex-api-key header for all requests:
Example request
curl
Environment-specific keys
API keys are environment-specific. The prefix selects the environment; the host is alwayshttps://api.amps.ai:
- Sandbox Keys (
sk_test_...): route to sandbox simulations - Live Keys (
sk_live_...): route to real OEM hardware
Environments Guide
Learn more about Sandbox and Live environments, including URL structure and when to use each
API key format
API keys follow this format:{environment} segment is test for sandbox keys and live for live keys.
Examples:
sk_test_xxxxxxxxxxxxxxxxxxxxxxxxsk_live_xxxxxxxxxxxxxxxxxxxxxxxx
Base URL
Both environments share one base URL:Error responses
Invalid API key
Invalid or missing API key
Expired API key
API key has been revoked or expired
Best practices
Key Rotation
Key Rotation
Regularly rotate your API keys for security. Generate new keys and update your applications before revoking old ones.
Key Naming
Key Naming
Use descriptive names for your API keys (e.g., “Production App”, “Staging Environment”) to track usage.
Environment Separation
Environment Separation
Never use live API keys in development or testing environments. Always use sandbox keys for non-production use.
Key Storage
Key Storage
Store API keys securely:
- Use environment variables
- Never hardcode in source code
- Use secret management services
- Restrict access to keys
Revoking API keys
You can revoke API keys at any time from the dashboard:- Navigate to API Keys section
- Find the key you want to revoke
- Click “Revoke”
- The key will immediately stop working
Rate limits
API keys are subject to rate limits based on your plan:- Sandbox: More lenient limits for testing
- Live: Production limits based on your subscription
Next steps
Environments Guide
Learn about Sandbox and Live environments
Link UI
Learn about device authentication
API Reference
Explore API endpoints