API Keys
API keys are the primary authentication method for the Wazera API.
Generating Keys
- Log in to your Wazera dashboard
- Go to API Keys
- Click Generate New Key
- Set a name and optional scopes
- Copy the key — it won't be shown again
Key Format
API keys follow this format:
wz_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxx (production)
wz_test_xxxxxxxxxxxxxxxxxxxxxxxxxxxx (sandbox)
Security Best Practices
- Never commit API keys to version control
- Store keys in environment variables
- Use the minimum required scopes
- Rotate keys regularly
- Revoke compromised keys immediately
Key Management
Revoking a Key
# From the dashboard, or via API:
DELETE /api/v1/api-keys/{key_id}
Listing Active Keys
GET /api/v1/api-keys
Environment Setup
Laravel (.env)
WAZERA_API_KEY=wz_live_your_key_here
WAZERA_BASE_URL=https://app.wazera.com/api/v1
Node.js
const WAZERA_API_KEY = process.env.WAZERA_API_KEY;
Key Properties
| Field | Description |
|---|---|
id |
Unique identifier |
name |
Human-readable name |
prefix |
First 8 characters (for identification) |
scopes |
Granted permissions |
last_used_at |
Last activity timestamp |
created_at |
Creation timestamp |
expires_at |
Expiration date (optional) |