On Starter or higher, create a named API key in Settings, select only the abilities your application needs, and make your first request.
curl https://ezforex.your-developer.co.za/api/convert/USD/100/ZAR \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_TOKEN"
composer require ezforex/ezforex-php
$client = new EzForex\Client(
token: getenv('EZFOREX_API_KEY'),
baseUrl: 'https://ezforex.your-developer.co.za',
);
$result = $client->convert('USD', 100, 'ZAR');
npm install @ezforex/sdk
import { EzForexClient } from '@ezforex/sdk';
const client = new EzForexClient({
token: process.env.EZFOREX_API_KEY,
baseUrl: 'https://ezforex.your-developer.co.za',
});
const result = await client.convert('USD', 100, 'ZAR');
Keep API keys server-side, never commit them, and revoke keys immediately when they may have been exposed.