Laravel Starter Kit
Toggle sidebar
Log in
API documentation

Use the EZ Forex JSON API to authenticate, list currencies, convert amounts with the latest exchange-rate snapshot, and inspect your API usage.

Base URL
All endpoints are prefixed with /api. Authenticated requests require a Sanctum Bearer token.
Endpoints
Method Path Auth Description
POST /api/login No Issue a Bearer token
GET /api/currencies Yes List supported currencies
GET /api/convert/{from}/{amount}/{to} Yes Convert an amount
GET /api/usage Yes Inspect API usage
Quick start
  1. Log in with your account email and password to receive a Bearer token.
  2. Send the token in the Authorization header on subsequent requests.
  3. Call /api/currencies, then /api/convert/{from}/{amount}/{to} as needed.
  4. Call /api/usage to review quotas and recent activity (limited to 4 times per day).
  5. Respect daily rate limits; see the Rate limits page for quotas and 429 responses.