You can find our public swagger API
here.
Example of implementation can be found
here.
1. Load Telivy's Library
The easiest way to import Telivy's library to ensure no requests are hitting your server is to load quote-form.min.js and quote-form.min.css.
2. Set up HTML component
Add an empty <form> element with "createQuoteForm" id to the page you will like the embed the Quote button. The Telivy library will automatically inject the necessary elements into the page.
3. Initialize Telivy with config
On page load, initialize the Telivy library by setting the API key, referring the source of leads (optional), and calling the initialize function. Telivy will handle the rest.
4. Style your elements (optional)
By specifying the custom classes in the config, it is easy to style the look of the input and button elements through CSS.
.quote-input {
width: 70%;
color: $primary-color;
}
.quote-button {
width: 30%;
color: $text-color;
background-color: $primary-color;
}