GuidesAPI ReferenceChangelog
Log In


To use the Link modal directly without an SDK, simply include the script below. The Pinwheel Link modal will be appended to the document body through an iframe that is loaded in the DOM.

<!DOCTYPE html>
<html style="height: 100%; width: 100%;">
    <script src=""></script>
      window.onload = function () {{ linkToken: "INSERT LINK TOKEN", onEvent: console.log });

  <body style="height: 100%; width: 100%;" />


This method opens the modal. It takes one parameter object with the parameters found here.

  linkToken: 'Put your generated link token string here',
  onSuccess: (event) => {
    if (event.job === 'direct_deposit_switch') {
      console.log('User has successfully updated their direct deposit.');


This method closes the modal.