I want to use pop-up opt-in forms(not created in infusionsoft) and I want to use ref tracking link

I want to use pop-up opt-in forms(not created in infusionsoft) and I want to use ref tracking link" any API call I can set up ??

Go to Marketing->Lead Generation and grab the referral tracking code: