Flutter SDK
Install and use the MisarReach Flutter SDK — lead finder, SSE job streaming, deals/pipeline CRM, and secure on-device key storage.
Official Flutter client for the MisarReach developer API — lead finder (23 sources), multi-channel outreach, CRM (deals + pipeline), autopilot, and the AI sales agent. For iOS, Android, macOS, and Web. Base URL https://api.misar.io/reach/api, auth Authorization: Bearer mrk_.... Includes secure on-device key storage via flutter_secure_storage.
Install
dependencies:
misar_reach_flutter: ^1.0.0Configure
import 'package:misar_reach_flutter/misar_reach_flutter.dart';
// Direct key
final reach = MisarReachClient(apiKey: 'mrk_...');
// Or load from the secure keystore (preferred on mobile)
await MisarReachClient.saveApiKey('mrk_...');
final reach = await MisarReachClient.withSecureStorage();Lead search + SSE stream
final job = await reach.leads.search({'query': 'Series A SaaS founders'});
// Live progress (Server-Sent Events)
await for (final evt in reach.leads.streamJob(job['jobId'] as String)) {
debugPrint('${evt.event}: ${evt.data}'); // progress … then complete / error
}
await reach.leads.enrich({'email': 'jane@acme.com'});Deals & channels
await reach.deals.create({'leadEmail': 'cto@acme.com', 'value': 12000});
await reach.pipeline.get();
await reach.channels.connectWhatsapp({'token': '...'});
await reach.autopilot.start({'campaignId': 'camp_1'});
reach.close();Resources
leads · deals · pipeline · channels · autopilot · salesAgent · campaigns · contacts · conversations · workspaces · settings · ads.
Automatic retries with backoff on 429/5xx (honours Retry-After).
Errors
MisarReachAuthException (401/403) · MisarReachNotFoundException (404) · MisarReachRateLimitException (429, with retryAfter/balance/freeRemaining) · MisarReachUpgradeRequiredException (429 upgrade) · MisarReachException (base) · MisarReachNetworkException (connectivity).
See the API Reference and SSE stream.