Overview
The Solarecliente API uses API keys for authentication. You can generate and manage your API keys from the dashboard.Authentication Methods
API Key Authentication
Include your API key in the request header:Example Request
API Key Types
Test Keys
Used for development and testing. Prefix:
sk_test_Live Keys
Used for production. Prefix:
sk_live_Generating API Keys
- Log in to your Solarecliente dashboard
- Navigate to Settings > API Keys
- Click Generate New Key
- Select the key type (Test or Live)
- Assign appropriate permissions
- Copy and securely store your key
API keys are only displayed once upon creation. Make sure to save them securely.
API Key Permissions
You can configure granular permissions for each API key:Security Best Practices
Rotate Keys Regularly
Update your API keys periodically for enhanced security
Use Environment Variables
Store keys in environment variables, never in code
Restrict Permissions
Grant only the minimum required permissions
Monitor Usage
Review API key usage logs regularly
Error Responses
Missing Authentication
Invalid API Key
Insufficient Permissions
Revoking API Keys
To revoke an API key:- Go to Settings > API Keys
- Find the key you want to revoke
- Click Revoke
- Confirm the action