API Setup

Follow these steps to set up your WestFax API integration.

Getting Your API Credentials

  1. Log in to your WestFax dashboard
  2. Navigate to API Settings
  3. Generate new API credentials
  4. 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.