Prerequisites
Before you begin, make sure you have:- A M2M partner account (contact sales@leapfinancial.com)
- Your API key from the Partner Portal
Use your sandbox API key (
m2m_test_*) for this guide. You can switch to production once you’re ready to go live.Create your first magic link
Let’s say you have a US-based user, Michael Johnson, who holds a bank account in Mexico and needs to send money there. To create a magic link you need at minimum: the user’s first name, last name, and a payment method (in this case, their Mexican bank account).Get the response
Response
You now have a magic link! The
url field contains the link you’ll send to your user. Michael’s name and bank account will be pre-populated in the widget.Reduce user friction even further
The example above covers the minimum required fields, but you can pre-fill additional data to skip more steps in the widget:cURL
What happens next
After you create a link:- User opens the link - They see the M2M widget with any pre-populated data
- User completes verification - If needed, they verify their identity (CIP)
- User initiates transfer - They select amount, payment method, and confirm
- You receive webhooks - Get notified about link status and transaction events
Handle webhooks (optional but recommended)
Configure a webhook URL in the Partner Portal to receive real-time notifications:Webhook: link.opened
Webhooks are signed with HMAC-SHA256. See Webhook Security to learn how to verify signatures.
Next steps
Authentication
Learn about API keys and security.
Create Link API
See all available options for creating links.
User Data Guide
Understand the friction vs. integration trade-off.
Webhooks
Set up real-time notifications.