All requests require a Bearer token in the Authorization header.
Authorization: Bearer {your_api_key}
Get an API key
Navigate to API Keys
Go to Settings → API Keys
Create key
Configure permissions and copy your key securely
Store your API key securely. You won’t be able to see it again after creation.
Key types
Personal Keys
Access your individual orders and resources
Organization Keys
Access organization-owned resources
Available services
| Service | Description |
|---|
order | Create, read, update, delete orders |
account | Access account information |
Example requests
curl -X GET "https://dashboard.statproxies.com/api/v2/order/list" \
-H "Authorization: Bearer sk_live_abc123..."
const response = await fetch(
'https://dashboard.statproxies.com/api/v2/order/list',
{
headers: {
'Authorization': 'Bearer sk_live_abc123...',
'Content-Type': 'application/json'
}
}
);
const data = await response.json();
import requests
response = requests.get(
'https://dashboard.statproxies.com/api/v2/order/list',
headers={
'Authorization': 'Bearer sk_live_abc123...',
'Content-Type': 'application/json'
}
)
data = response.json()
Error responses
Invalid or missing API key.{ "error": "invalid_api_key" }
Causes: Missing header, incorrect key, expired key
Insufficient permissions for the requested action.{ "error": "insufficient_permissions" }
Causes: Service not enabled, accessing other user’s resources
Best practices
Keep Secret
Never expose keys in client-side code
Environment Variables
Store keys in env vars, not code
Rotate Regularly
Create new keys and revoke old ones
Least Privilege
Only enable required services
Managing keys
- View: See all active keys, creation date, last used
- Revoke: Immediately disable a key (cannot be undone)
Organization API keys scope all requests to the organization’s context—orders, billing, and resources.