X-API-KEY header.
Obtaining an API Key
- Log in to the Atomscale Dashboard
- Navigate to User > Manage Account > Access
- Click Generate API Key
- Copy and securely store the key
Using Your API Key
Include your API key in theX-API-KEY header of every request:
Code Examples
Environment Variables
For security, store your API key in an environment variable rather than hardcoding it:Key Permissions
API keys can be scoped to specific permissions:| Permission | Description |
|---|---|
read | Read access to data and analysis results |
write | Create and modify data entries, projects, and samples |
delete | Delete data entries and resources |
admin | Full access including team management |
Revoking Keys
If a key is compromised or no longer needed:- Go to Settings > API Keys in the dashboard
- Find the key and click Revoke
- The key is immediately invalidated
Revoking a key cannot be undone. Any applications using that key will stop working immediately.