API Key Authentication
All API requests require an API key in the request header. The API key identifies your customer account and authorizes access to your devices and data.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 and must match the API hostname you’re using:- Sandbox Keys (
sk_sandbox_...): Use withhttps://sandbox-api.amps.ai - Live Keys (
sk_live_...): Use withhttps://api.amps.ai
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:sk_sandbox_abc123xyzsk_live_def456uvw
Base URLs
Use the appropriate base URL for your environment:Sandbox
Live
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