Creates a new magic link that can be sent to an end user to initiate a money transfer. Optionally pre-fill user data (name, ID, payment method) and configure the link’s expiration, flow, theme, and language. Returns the full widget URL and authentication token.
Your partner API key. Use m2m_test_* keys for the sandbox environment.
Your unique identifier for the end user in your system. Used to correlate M2M users with your records and to detect returning users.
"user-12345"
Link time-to-live in minutes. The link becomes inaccessible after expiration. Minimum: 5 minutes. Maximum: 10,080 minutes (7 days). Defaults to the partner-level configuration (usually 60 minutes).
5 <= x <= 10080120
Pre-filled user data. Any fields provided here will be pre-populated in the widget, allowing the user to skip those steps.
Arbitrary key-value metadata to attach to the link. Useful for storing internal references, campaign IDs, etc. Returned in link detail and webhook payloads.
{
"orderId": "ORD-2026-001",
"campaign": "february-promo"
}Widget flow type that determines the user experience. Defaults to "m2m-basic" if not specified.
"m2m-basic"
Theme identifier to customize the widget appearance. Overrides the partner-level theme configuration for this link.
"dark"
Language code for the widget UI (ISO 639-1). Overrides browser detection.
en, es "es"
URL to receive callback notifications for this specific link. Overrides the partner-level webhook URL for link-specific events.
"https://api.example.com/callbacks/m2m"