LeadSquared Developer Centre

ON THIS PAGE

Retrieve Widget Snippet

This downloads our complete API collection, including all endpoints—not just this specific endpoint.
Run in Postman

Retrieves the JavaScript snippet for LeadSquared Widgets that can be pasted into your website.

Sample Response

"<div id=\"lsq-portal-widget-f0600e64-56bd-11ee-9135-02512c\" class=\"lsq-portal-widget lsq-form-widget\"><script src=\"https://portal-widgets.lsqportal.com/assets/bootstrap-widget.js\" data-widget-id=\"f0600ee-9135-0a5db97dc116\" data-version-id=\"1514656096-5702512c\" data-formjs=\"https://forms.lsqportal.com/r21/js/lsq.form.js\" data-URL=\"https://portal-widgets.lsqportal.com\" onload=\"window['___lsq-portal-widget-helpers___'].bootstrapLSQWidget(event)\" charset=\"utf-8\"></script></div>"

For more information regarding LeadSquared Widgets, refer to this article: Capture Leads from Any Website with LeadSquared Form Widgets.

Note: You must use the correct API host to make successful calls.

API URL

URL
Icon
GET https://{host}/api/Widget/RetrieveSnippet?accessKey=AccessKey&secretKey=SecretKey&widgetId=WidgetId

URL Parameters

Parameter Description
WidgetId Unique identifier of the Widget. The ID will be available in the URL when you open a Widget on the Manage Widgets page on the LeadSquared Dashboard.

On this page

© 2024 by MarketXpander Services Pvt Ltd. All Rights Reserved.