Published 2025-10-03
A Dart package for interacting with the Brevo (formerly Sendinblue) API.

Add the package to your pubspec.yaml:
dependencies:
hh_brevo_api: ^1.0.0
import 'package:hh_brevo_api/hh_brevo_api.dart';
void main() async {
// Create the API client with your API key
final client = BrevoApiClient(apiKey: 'YOUR_API_KEY');
try {
// Create the auth service
final authService = BrevoAuthService(client);
// Validate the API key and get account information
final account = await authService.validateApiKey();
// Use the account information
print('Email: ${account.email}');
print('Name: ${account.firstName} ${account.lastName}');
} catch (e) {
print('Error: $e');
} finally {
// Always close the client when done
client.close();
}
}
To use this package, you'll need a Brevo API key. You can get one by:
LICENSE.