Revolutionize the way you communicate with your customer. Start right now!

Help Center

October 01, 2024

How to Create a List via API or HTML Form

Introduction

In this article, we will guide you through the process of creating and managing contact lists using two effective approaches: API integration and embedded HTML forms. The ability to create and populate lists is essential for communication and digital marketing strategies, as it enables efficient structuring and automation of data collection.

How it Works

  1. In your Reportana account, navigate to Marketing and then select Lists: Lists 1

  2. Click the + Create button to start the process of creating a new list. 1

  3. You will have two options to start your list:

    • Source "None": select this option if you want to start with a completely empty list and add contacts later.
    • Source "CSV": if you already have a list of contacts in a CSV file, you can choose to import it directly so your list starts pre-filled. In this example, we will use the None source. 1
  4. Give your list a name (for example, "New List") and click Save. After saving, your list will be created and, initially, empty (unless you have imported a CSV). 1

Filling the List via API

  1. Double-click on the newly created list or select it and look for the "Insert via API" option. In this section, you will find an example of how to perform the insertion via API. It is highly recommended that, if you do not have programming knowledge, you seek the assistance of a developer for this step. 1

  2. The API documentation will provide all the necessary details to perform authentication and, most importantly, how to programmatically insert leads (contacts) into your list. API Documentation 1

Filling via HTML Form

  1. In your list view, click the option "Insert via HTML form." You will see an embed code and a code for the form fields. Copy these codes. 1

  2. Open your page editor or create a page where you want the form to appear. Add an HTML block or edit the existing (or similar) code on your page, depending on your page editor/platform. Paste both codes you just copied into the HTML. 1

  3. You can embed this code into your existing form by using the attributes data-rptn-form and data-rptn-field in the desired form, as shown in the example below. 1

  4. After saving your code, the form will be functional on your page, and every lead submitted will be updated in your list within Reportana. 1

Discover why
Reportana is the right tool
for your business!

Talk to us and clear all your doubts

Contact Us
This site uses cookies

Cookies are important for the functioning of this website, to ensure your security and to improve your experience. By continuing to browse, you agree to the use of these cookies. For more information, access our Privacy Policyand our Cookie Policy