API Setup
Follow these steps to set up your WestFax API integration.
Getting Your API Credentials
- Log in to your WestFax dashboard
- Navigate to API Settings
- Generate new API credentials
- Save your API key and secret securely
Environment Setup
Available Environments
| Environment | Base URL | Purpose |
|---|---|---|
| Sandbox | api.sandbox.westfax.com | Testing and development |
| Production | api.westfax.com | Live environment |
Authentication
// Example API authentication
$headers = [
'Authorization' => 'Bearer ' . $api_key,
'X-API-Secret' => $api_secret,
'Content-Type' => 'application/json'
];
Never commit API credentials to version control or share them publicly.