To deliver leads into your Leadnodes system, you can use our POST form import in addition to the standard API. The POST form import is the easiest way to send leads from a website to a Leadnodes system without any server or back-end code. This solution is perfect for static / JAMstack websites.
Below, we use an example to show you how to use our POST form import for a static form.
1. Create a form
Create a form on your website with our form endpoint in the action attribute. Below you'll find a simple example of what it should look like:
2. Create a form key
To deliver leads via the POST form import, you need a form key. To do this, log in to your Leadnodes system as an admin and navigate to user management.
Select a user through which you want to deliver the form's leads into your system. Navigate to the "API Tokens" user setting. In the "Form-Key Box" you can now create a key for your form. To do so, simply enter a name for your form in the "Description" field. Then click on Create Form-Key. Your new form key now appears in the table below.
Now, in your form code, replace the value "user_form_key" with the form key you created on the input element named "form_key".
3. Custom adjustments
So that the form fields can be correctly mapped to the matching lead fields, the following naming convention applies for how you should name your form fields:
ParameterAlternative labelgenderanrede, salutationfirst_namevorname, firstname, namelast_namenachname, lastnamestreet_nostraße_nr, straße, streetzip_codeplz, postleitzahl, postcode, post_codecityort, stadtbirth_dategeburtsdatum, geb, birthdatephonetelefon, telefonnummer, telemailemailadresse, mailcustom_field_namecustom_field_name
Lead categories
Every lead you import into your Leadnodes system must be assigned to a lead category. You define the lead category via the "lead_type_id" input field. You can find the lead type ID under the "Leads >> Lead Categories" menu item in your system.
Redirect
With the "redirect" parameter, you have the option to specify a target page to which the user is sent after successfully submitting the form. The value here must be a full URL beginning with https://.
Conclusion
In just three small steps, leads can be sent from a static website to a Leadnodes system without any server or back-end code.
If you have any further questions about our POST form import, we're happy to help. Just use our contact form.