Getting Started
Welcome to MAES Platform! This guide will help you make your first API call in under 5 minutes.
Prerequisites
- A MAES Platform account
- Your MAES credentials (username & password)
- Node.js >= 18.0.0
Step 1: Create an Account
Visit the dashboard and create your account:
Dashboard: https://maes-platform.nuvoni.eu
Step 2: Create a Project
- Click "New Project" in the dashboard
- Enter your project name (e.g., "My Fleet App")
- Add your MAES credentials (username & password)
- Click "Create Project"
Your project is now ready with both Sandbox and Production environments.
Step 3: Generate an API Key
- Open your project
- Go to Sandbox environment
- Click the "Integrate" tab
- Click "Create API Key"
- Copy your API key immediately — it won't be shown again!
Your key will look like: sk_sandbox_aBcDeFgHiJkLmNoPqRsTuVwXyZ123456
Step 4: Install the SDK
npm install @nuvoni/maes-sdk
# or
yarn add @nuvoni/maes-sdk
# or
pnpm add @nuvoni/maes-sdk
Step 5: Make Your First API Call
import { MaesClient } from '@nuvoni/maes-sdk';
const client = new MaesClient({
apiKey: 'sk_sandbox_xxxxx', // Your API key
projectId: 'your-project-id', // From dashboard URL
});
// List all cards
const { docs, total } = await client.cards.list();
console.log(`Found ${total} cards`);
// Get a specific card
const card = await client.cards.get('card-id');
console.log(`Card ${card.cardNumber}: ${card.status}`);
Step 6: Explore the API
Now that you've made your first call, try these operations:
// Enable fuel authorizations for a card
await client.cards.enable('card-id');
// Disable fuel authorizations
await client.cards.disable('card-id');
// Activate a new card
await client.cards.activate('card-id', {
licensePlate: 'AB-123-CD',
driver: 'John Doe',
});
Sandbox vs Production
| Environment | API Key Prefix | Purpose |
|---|---|---|
| Sandbox | sk_sandbox_* | Testing with mock data |
| Production | sk_live_* | Real MAES operations |
tip
Always develop and test with Sandbox keys first!
Next Steps
- 📖 Read the API Reference
- 🔐 Learn about Authentication
- 🎯 Follow the Quick Start Guide