Skip to main content

API Overview

The MAES Platform REST API allows you to programmatically manage fuel cards.

Base URL​

https://api.maes-platform.nuvoni.eu/v1

We recommend using the official Node.js SDK:

npm install @nuvoni/maes-sdk
import { MaesClient } from '@nuvoni/maes-sdk';

const client = new MaesClient({
apiKey: 'sk_live_xxxxx',
projectId: 'your-project-id',
});

// List cards
const { docs, total } = await client.cards.list();

// Enable a card
await client.cards.enable('card-id');

Authentication​

All API requests require authentication via API key:

Authorization: Bearer YOUR_API_KEY

See Authentication for details.

Request Format​

  • Use Content-Type: application/json for request bodies
  • All timestamps are in ISO 8601 format
  • UUIDs are used for resource identifiers

Response Format​

Success Response​

{
"id": "09c9861c-4c4b-411f-be85-c16ed7e26da4",
"cardNumber": "782521009000153700",
"status": "active"
}

List Response​

{
"docs": [{ "id": "...", "cardNumber": "..." }],
"total": 150
}

Error Response​

{
"code": "error.error_type",
"message": "Human-readable error message"
}

Pagination​

List endpoints support pagination:

ParameterTypeDefaultDescription
pagenumber1Page number
limitnumber50Items per page (max 100)

Rate Limiting​

EnvironmentLimit
Sandbox100 requests/minute
ProductionBased on plan

Rate limit headers:

X-RateLimit-Limit: 100
X-RateLimit-Remaining: 95
X-RateLimit-Reset: 1703693400

API Endpoints​

Cards​

MethodEndpointDescription
GET/projects/{id}/cardsList all cards
GET/projects/{id}/cards/{cardId}Get card details
POST/projects/{id}/cards/{cardId}/activateActivate a new card
POST/projects/{id}/cards/{cardId}/enableEnable fuel authorizations
POST/projects/{id}/cards/{cardId}/disableDisable fuel authorizations

Webhooks​

MethodEndpointDescription
GET/projects/{id}/webhookGet webhook
POST/projects/{id}/webhookCreate webhook
PATCH/projects/{id}/webhookUpdate webhook
DELETE/projects/{id}/webhookDelete webhook
POST/projects/{id}/webhook/testSend test event
POST/projects/{id}/webhook/rotate-secretRotate secret
GET/projects/{id}/webhook/deliveriesList deliveries
POST/projects/{id}/webhook/deliveries/{id}/retryRetry delivery