For collecting contact information from frontend forms
npm install @seamailer/seamailer-js
import Seamailer from "seamailer-js"
const seamailer = new Seamailer("public api key")
seamailer.contacts.createContact({
email: "[email protected]",
firstName: "John",
lastName: "Doe",
company: "Acme Inc.",
tags: "tag1, tag2",
customFields: {
field1: "value1",
field2: "value2",
},
}).then();