Javascript Web API

The ReferralHero JavaScript Web API is a powerful JavaScript library that allows you to integrate referral campaigns directly into your application with a high level of customization. While embeddable widgets can also be customized to fit your brand, they come with certain limitations in terms of design and functionality, as they are pre-built components that you can easily add from your ReferralHero account. With the JavaScript Web API, you have the flexibility to customize the code, giving you complete control over the design and functionality of your referral program.

The JavaScript Web API enables you to:

  • Add New Subscribers: Seamlessly integrate subscriber registration into your application.

  • Trigger Referrals: Automate the referral process based on specific user actions.

  • Access Participant Data: Retrieve limited participant data to enhance user experiences.

  • Generate Embeddable Widgets: Create and customize widgets dynamically using JavaScript.

  • Customize User Interfaces: Tailor the design and functionality of signup forms, dashboards, and other components to match your brand’s specific needs and aesthetic.

By leveraging the JavaScript Web API, you can create a highly customized referral program that integrates seamlessly with your application, providing a unique and optimized experience for your users.

Ready to get started? Follow this step-by-step guide to implement the JavaScript Web API and begin integrating your personalized referral campaign today.

Last updated