Skip to docs navigation

LeadSquared integration guide

Verified

How to connect LeadSquared to WEXTL and use its 3 triggers and 136 actions in your workflows. About LeadSquared: Sales CRM and marketing automation for lead-driven teams.

  • 3 triggers
  • 63 searches
  • 73 actions
  • Polling
  • Auth: API key

AI-assisted documentation35 min read

This documentation is compiled from our integration source code, internal specs for LeadSquared, its official API documentation and anonymized requests logs we collect from our support team[2].

Open LeadSquared on WEXTL →
  • LeadSquared
  • RegionselectRequired

    The region your account was created in. In LeadSquared, open My Account, then Settings, then API and Webhooks, to see your API host.[1]

  • Access KeytextRequired

    In LeadSquared, open My Account, then Settings, then API and Webhooks. Use the keys of an admin user so no role limits apply.[1]

  • Secret KeypasswordRequired

    The secret key shown next to the access key.[1]

  1. Log in to your WEXTL account, add the LeadSquared node module to your workflow, and click Create new credential.
  2. Optional: In the Credential name field, enter a name for the credential.
  3. Enter the authentication credentials you copied from your LeadSquared account, or follow the on-screen instructions to create the credential.
  4. If prompted, authenticate your account and confirm access.
  5. If you want to make changes to your credential in the future, follow the steps in Manage credentials →

Watch New Leads

TriggerScheduled trigger for fresh leads.
Input fields[3]
FieldType
LimitRequired
number
Columnstext
Output fields[3]
FieldType
Prospect IDtext
First Nametext
Last Nametext
Email Addresstext
Lead Typetext
Prospect Auto IDtext
Owner IDtext
Created Ontext

Watch Updated Activities

TriggerFires when LeadSquared logs or edits an activity.
Input fields[3]
FieldType
LimitRequired
number
Output fields[3]
FieldType
IDtext
Event Codenumber
Event Nametext
Activity Scorenumber
Created Ontext
Activity Typenumber
Is Email Typeboolean
Typetext
Session IDtext

7other output fields

Watch Updated Leads

TriggerStarts runs for leads that are new or modified.
Input fields[3]
FieldType
LimitRequired
number
Columnstext
Output fields[3]
FieldType
Prospect IDtext
First Nametext
Last Nametext
Email Addresstext
Lead Typetext
Prospect Auto IDtext
Owner IDtext
Created Ontext
Is Starred Leadtext

3other output fields

Activate a User

ActionRe-enables a switched-off user account.
Input fields[3]
FieldType
User IDRequired
choice
Output fields[3]
FieldType
Statustext

Check If the Opportunity Feature Is Enabled

SearchFeature test for Opportunities on one account.
Input fields[3]
FieldType
Organization IDRequired
text
Output fields[3]
FieldType
Opportunity Managementtext

Check List Membership

SearchYes or no answer for a lead and a list.
Input fields[3]
FieldType
List IDRequired
choice
Lead IDRequired
text
Output fields[3]
FieldType
Is Memberboolean

Deactivate a User

ActionDisables sign-in for one user account.
Input fields[3]
FieldType
User IDRequired
choice
Output fields[3]
FieldType
Statustext

Get a Lead by Email

SearchLead search on an email value.
Input fields[3]
FieldType
Email AddressRequired
text
Output fields[3]
FieldType
Lead Typetext
First Landing Page Submission Datetext
Web Ref Keywordtext
Web Referrertext
Prospect Activity Date Mintext
Prospect Activity Date Maxtext
Prospect Activity Name Maxtext
Lead Last Modified Ontext
First Landing Page Submission IDtext

31other output fields

Get a Lead by ID

SearchComplete lead record by identifier.
Input fields[3]
FieldType
Lead IDRequired
text
Output fields[3]
FieldType
Lead Typetext
First Landing Page Submission Datetext
Web Ref Keywordtext
Web Referrertext
Prospect Activity Date Mintext
Prospect Activity Date Maxtext
Prospect Activity Name Maxtext
Lead Last Modified Ontext
First Landing Page Submission IDtext

31other output fields

Get a Lead by Phone Number

SearchTelephone based lead lookup.
Input fields[3]
FieldType
PhoneRequired
text
Output fields[3]
FieldType
Lead Typetext
First Landing Page Submission Datetext
Web Ref Keywordtext
Web Referrertext
Prospect Activity Date Mintext
Prospect Activity Date Maxtext
Prospect Activity Name Maxtext
Lead Last Modified Ontext
First Landing Page Submission IDtext

31other output fields

Get a Sales Activity by ID

SearchDetail of one recorded sale.
Input fields[3]
FieldType
Activity IDRequired
text
Output fields[3]
FieldType
IDtext
Nametext
Display Nametext
Default Currency Symboltext
Default Currency Abbreviationtext
Default Currency Nametext
Customer Stage Nametext
Convert To Customerboolean
Fieldsarray

6other output fields

Get a Task by ID

SearchDetail view of a task.
Input fields[3]
FieldType
Task IDRequired
text
Output fields[3]
FieldType
User Task IDtext
Nametext
Descriptiontext
Related Entitynumber
Related Entity IDtext
Due Datetext
Remindernumber
Notify Bytext
Status Codenumber

11other output fields

Get a User by Email Address

SearchUser profile from an email value.
Input fields[3]
FieldType
Email AddressRequired
text
Output fields[3]
FieldType
User IDtext
First Nametext
Last Nametext
Email Addresstext
Associated Phone Numberstext
Date Formattext
Time Zonetext
Roletext
Is Phone Call Agentboolean

18other output fields

Get a User by ID

SearchAccount details of a user from an ID.
Input fields[3]
FieldType
User IDRequired
choice
Output fields[3]
FieldType
User IDtext
First Nametext
Last Nametext
Email Addresstext
Associated Phone Numberstext
Date Formattext
Time Zonetext
Roletext
Is Phone Call Agentboolean

31other output fields

Get Account Activities by Account ID

SearchTimeline of a company account.
Input fields[3]
FieldType
LimitRequired
number
Account IDRequired
text
From Datedate
To Datedate
Output fields[3]
FieldType
Company Activity IDtext
Related Company IDtext
Activity Eventnumber
Activity Notetext
Activity Date Timetext
Activity Typenumber
Created By Nametext
Activity Display Nametext
Created Ontext

5other output fields

Get Activities by Activity Event

SearchDate-bounded activity export for one type.
Input fields[3]
FieldType
LimitRequired
number
From DateRequired
date
To DateRequired
date
Activity EventRequired
choice
Remove Empty Valuechoice
Sort Bytext
Sort Directionchoice
Output fields[3]
FieldType
Prospect Activity IDtext
Related Prospect IDtext
Activity Typetext
Activity Eventtext
Statustext
Mx Custom 3text
Created Ontext
Created Bytext
Created By Email Addresstext

5other output fields

Get Activities by Date Range

SearchRecently modified activities of every type.
Input fields[3]
FieldType
LimitRequired
number
From DateRequired
date
To DateRequired
date
Include Custom Fieldschoice
Sort Bytext
Sort Directionchoice
Output fields[3]
FieldType
IDtext
Event Codenumber
Event Nametext
Activity Scorenumber
Created Ontext
Activity Typenumber
Is Email Typeboolean
Typetext
Session IDtext

7other output fields

Get Activities of a Lead

SearchFull timeline for one lead.
Input fields[3]
FieldType
LimitRequired
number
Lead IDRequired
text
Activity Eventchoice
Output fields[3]
FieldType
IDtext
Event Codenumber
Event Nametext
Activity Scorenumber
Created Ontext
Activity Typenumber
Is Email Typeboolean
Typetext
Session IDtext

7other output fields

Get Activities of an Opportunity

SearchLogged activity timeline for a deal.
Input fields[3]
FieldType
LimitRequired
number
Opportunity IDRequired
text
Activity Event Codechoice
Sort Bytext
Sort Directionchoice
Columnstext
Output fields[3]
FieldType
Prospect IDtext
First Nametext
Last Nametext
Email Addresstext
Phonetext
Do Not Calltext
Do Not Emailtext
Lead Nametext
Lead Ownertext

18other output fields

Get All Lists

SearchInventory of all lead lists.
Input fields[3]
FieldType
LimitRequired
number
Output fields[3]
FieldType
List IDtext
List Nametext
List Descriptiontext
List Typetext
Member Countnumber

Get an Account

SearchFiltered search over company accounts.
Input fields[3]
FieldType
LimitRequired
number
Company TypeRequired
text
Search Texttext
Date Fieldtext
From Datedate
To Datedate
Filter Fieldtext
Filter Valuetext
Filter Operatortext

3other input fields

Output fields[3]
FieldType
Company Property Listarray

Get an Account Activity by Activity ID

SearchDetail view of an account activity.
Input fields[3]
FieldType
Activity IDRequired
text
Output fields[3]
FieldType
Company Activity IDtext
Related Company IDtext
Activity Eventnumber
Activity Notetext
Activity Date Timetext
Activity Typenumber
Created By Nametext
Activity Display Nametext
Created Ontext

5other output fields

Get an Email Template

SearchSaved template body and subject.
Input fields[3]
FieldType
Template IDRequired
text
Output fields[3]
FieldType
Content Template IDtext
Content Template Auto IDnumber
Nametext
Descriptiontext
Typenumber
Subjecttext
Content HTMLtext
Content Texttext
Layouttext

19other output fields

Get an Opportunity by ID

SearchComplete record of a deal with its fields.
Input fields[3]
FieldType
Opportunity IDRequired
text
Get File URLschoice
Output fields[3]
FieldType
IDtext
Nametext
Display Nametext
Fieldsarray

Get Appointments by User ID

SearchCalendar view for chosen users.
Input fields[3]
FieldType
LimitRequired
number
From DateRequired
date
To DateRequired
date
UsersRequired
array
Output fields[3]
FieldType
User Task IDtext
Nametext
Descriptiontext
Related Entitynumber
Due Datetext
Remindernumber
Reminder Before Daysnumber
Notify Bytext
Status Codenumber

18other output fields

Get Attachments of an Activity

SearchFile references stored on an activity.
Input fields[3]
FieldType
Activity IDRequired
text
Output fields[3]
FieldType
Attachment IDtext
Attachment Auto IDnumber
Related Object Typenumber
Related Object IDtext
Nametext
Descriptiontext
Attachment Filetext
Attachment Labeltext
Created Bytext

5other output fields

Get Available Slots of Users by ID

SearchFree calendar time for scheduling.
Input fields[3]
FieldType
LimitRequired
number
From DateRequired
date
To DateRequired
date
UsersRequired
array
Include Allowed Conflict Slotschoice
Output fields[3]
FieldType
Datetext
User Slotsarray

Get Campaign Statistics

SearchDelivery and engagement figures for campaigns.
Input fields[3]
FieldType
LimitRequired
number
From DateRequired
date
To DateRequired
date
Sort Bytext
Sort Directionchoice
Output fields[3]
FieldType
IDtext
Campaign Nametext
Subjecttext
Total Recipientsnumber
Scheduled Ontext
No Actionnumber
Deliverednumber
Opennumber
Clicknumber

7other output fields

Get Leads by Date Range

SearchTime-windowed lead export.
Input fields[3]
FieldType
LimitRequired
number
From DateRequired
date
To DateRequired
date
Sort Bytext
Sort Directionchoice
Columnstext
Output fields[3]
FieldType
Prospect IDtext
First Nametext
Last Nametext
Email Addresstext
Lead Typetext
Prospect Auto IDtext
Owner IDtext
Created Ontext
Is Starred Leadtext

3other output fields

Get Leads in Bulk by IDs

SearchSeveral leads fetched by identifier.
Input fields[3]
FieldType
LimitRequired
number
Lead IDsRequired
array
ColumnsRequired
text
Output fields[3]
FieldType
Created Ontext
Modified Ontext
Email Addresstext
Owner ID Email Addresstext
First Nametext
Last Nametext
Prospect Stagetext
Lead Typetext

Get Opportunities by Lead ID

SearchDeals tied to a lead.
Input fields[3]
FieldType
LimitRequired
number
Lead IDRequired
text
Opportunity Typechoice
Sort Bytext
Sort Directionchoice
Columnstext
Output fields[3]
FieldType
Prospect IDtext
First Nametext
Last Nametext
Email Addresstext
Phonetext
Do Not Calltext
Do Not Emailtext
Lead Nametext
Lead Ownertext

18other output fields

Get Opportunities by Unique Lead Field

SearchOpportunity lookup through a unique lead value.
Input fields[3]
FieldType
LimitRequired
number
Lookup FieldRequired
text
Lookup ValueRequired
text
Sort Bytext
Sort Directionchoice
Columnstext
Output fields[3]
FieldType
Prospect IDtext
First Nametext
Related Prospect IDtext
Opportunity Eventtext
Opportunity Event Typetext
Tracking Normalizedtext
Prospect Activity Auto IDtext
Opportunity Notetext
Scoretext

31other output fields

Get Opportunities in Bulk by IDs

SearchOpportunity batch fetch by event code.
Input fields[3]
FieldType
Search ParametersRequired
array
Search Parameterobject
Output fields[3]
FieldType
Event Codetext
Record Countnumber
Opportunitiesarray

Get Opportunity Types

SearchOpportunity categories with their event codes.
Input fields[3]
FieldType
LimitRequired
number
Output fields[3]
FieldType
Allow Attachmentsboolean
Can Deleteboolean
Descriptiontext
Display Nametext
Event Codenumber
Fieldstext
Form Layouttext
IDtext
Is Audit Enableboolean

7other output fields

Get Products

SearchCatalog search by product text.
Input fields[3]
FieldType
LimitRequired
number
Search Texttext
Sort Bytext
Sort Directionchoice
Output fields[3]
FieldType
Product IDtext
Product SKUtext
Nametext
Descriptiontext
Created Bytext
Created By Nametext
Created Ontext
Modified Bytext
Modified By Nametext

1other output field

Get Sales Activities by Lead ID

SearchDeal history of one lead.
Input fields[3]
FieldType
Lead IDRequired
text
Include Optionchoice
Output fields[3]
FieldType
IDtext
Nametext
Display Nametext
Fieldsarray

Get Sales Groups

SearchSales groups, all or per user.
Input fields[3]
FieldType
LimitRequired
number
User IDchoice
Output fields[3]
FieldType
Group IDtext
Nametext
Descriptiontext
Created Ontext
User Counttext

Get Sent Emails

SearchEmail send log for a period.
Input fields[3]
FieldType
LimitRequired
number
From DateRequired
date
To DateRequired
date
Email Eventtext
Output fields[3]
FieldType
Email IDtext
Related Prospect IDtext
From Emailtext
Recipient Email Fieldstext
Recipient Email IDstext
Subjecttext
Content HTMLtext
Content Texttext
Sent Ontext

Get Tasks

SearchTask search with filters.
Input fields[3]
FieldType
LimitRequired
number
Owner Fieldchoice
Owner Valuetext
From Datedate
To Datedate
Status Codechoice
Task Typechoice
Exclude Columnstext
Sort Bytext

1other input field

Output fields[3]
FieldType
User Task IDtext
Nametext
Categorynumber
Descriptiontext
Related Entitynumber
Due Datetext
Remindernumber
Reminder Before Daysnumber
Reminder Timetext

19other output fields

Get Tasks by Lead ID

SearchOpen and closed work on a lead.
Input fields[3]
FieldType
LimitRequired
number
Lead IDRequired
text
Output fields[3]
FieldType
Task IDtext
Nametext
Descriptiontext
Due Datetext
Created Ontext
Owner IDtext
Owner Nametext
Created Bytext
Created By Nametext

2other output fields

Get Tasks by Opportunity ID

SearchWork items on an opportunity.
Input fields[3]
FieldType
LimitRequired
number
Opportunity IDRequired
text
Output fields[3]
FieldType
Task IDtext
Nametext
Descriptiontext
Due Datetext
Created Ontext
Owner IDtext
Owner Nametext
Created Bytext
Created By Nametext

2other output fields

Get Teams

SearchTeams with parent links.
Input fields[3]
FieldType
LimitRequired
number
Get Hierarchicalchoice
Output fields[3]
FieldType
Team IDtext
Codenumber
Nametext
Descriptiontext
Sequencenumber
Parent IDtext
Parent Codenumber
Parent Nametext
Modified Bytext

19other output fields

Get the Check-In Status of a User

SearchAttendance state of a user.
Input fields[3]
FieldType
User IDchoice
Output fields[3]
FieldType
Is Checked Inboolean
Last Checked Ontext

Get the Count of Leads in a List

SearchMember total of one list.
Input fields[3]
FieldType
List IDRequired
choice
Output fields[3]
FieldType
Countnumber

Get the Details of a Lead Owner

SearchOwner profile retrieved from a lead field value.
Input fields[3]
FieldType
Lead IdentifierRequired
text
ValueRequired
text
Output fields[3]
FieldType
User IDtext
First Nametext
Last Nametext
Email Addresstext
Associated Phone Numberstext
Associated Whats App Numberstext
Date Formattext
Created Bytext
Created Ontext

16other output fields

Get the Details of an Activity Owner

SearchSales owner profile looked up from an activity.
Input fields[3]
FieldType
Activity IDRequired
text
Output fields[3]
FieldType
User IDtext
First Nametext
Last Nametext
Email Addresstext
Associated Phone Numberstext
Date Formattext
Time Zonetext
Is Billing Userboolean
Roletext

5other output fields

Get the Details of the Lead Owner Associated with an Activity

SearchLead owner reached through an activity.
Input fields[3]
FieldType
Activity IDRequired
text
Output fields[3]
FieldType
User IDtext
First Nametext
Last Nametext
Email Addresstext
Associated Phone Numberstext
Date Formattext
Created Bytext
Created Ontext
Modified Bytext

10other output fields

Get the Lead IDs in a List

SearchMembership roll of one list.
Input fields[3]
FieldType
List IDRequired
choice
Output fields[3]
FieldType
Prospect IDarray

Get the List of Activity Types

SearchActivity type definitions and codes.
Input fields[3]
FieldType
LimitRequired
number
Output fields[3]
FieldType
IDtext
Activity Event Nametext
Display Nametext
Activity Eventnumber
Scorenumber
Event Typenumber
Tagstext
Descriptiontext
Event Directionnumber

8other output fields

Get the List of Task Type Names

SearchNames only, without any column setup.
Input fields[3]
FieldType
LimitRequired
number
Output fields[3]
FieldType
Nametext

Get the List of Task Types

SearchTask type setup details.
Input fields[3]
FieldType
LimitRequired
number
Output fields[3]
FieldType
Categorynumber
Colortext
Column Configurationarray
Created Bytext
Created Ontext
Form Layouttext
IDtext
Is Defaultboolean
Is Deleteableboolean

14other output fields

Get the Lists of a Lead

SearchList membership overview for one person.
Input fields[3]
FieldType
Lead IDRequired
text
Output fields[3]
FieldType
IDtext
Nametext

Get the Metadata of an Opportunity Type

SearchSchema description of an opportunity type.
Input fields[3]
FieldType
Opportunity TypeRequired
choice
Output fields[3]
FieldType
Allow Attachmentsboolean
Can Deleteboolean
Descriptiontext
Display Nametext
Event Codenumber
Fieldsarray

Get the Notes of a Lead

SearchComments recorded on a lead.
Input fields[3]
FieldType
LimitRequired
number
Lead IDRequired
text
Note IDtext
Sort Bytext
Sort Directionchoice
Output fields[3]
FieldType
Prospect Note IDtext
Related Prospect IDtext
Notetext
Attachment Nametext
Attachment URLtext
Created Bytext
Created By Nametext
Created Ontext
Modified Bytext

2other output fields

Get the Sales Activity Settings

SearchSales module configuration values.
Output fields[3]
FieldType
IDtext
Nametext
Display Nametext
Default Currency Symboltext
Default Currency Abbreviationtext
Default Currency Nametext
Customer Stage Nametext
Convert To Customerboolean
Fieldsarray

Get the Status of a Share or Revoke Request

SearchResult lookup for a sharing request.
Input fields[3]
FieldType
Request IDRequired
text
Output fields[3]
FieldType
Statustext
Messageobject
Response Texttext
Share Statusnumber
Error Messagetext

Get the Users of a Sales Group

SearchMember roster of a group.
Input fields[3]
FieldType
LimitRequired
number
Group IDRequired
choice
Output fields[3]
FieldType
Group IDtext
Group Nametext
User IDtext
User Nametext
View All Leads Of Groupboolean
Modify All Leads Of Groupboolean
Add Users To Groupboolean
Create Group Automationboolean

Get To-Dos by User ID

SearchTo-do list for chosen users.
Input fields[3]
FieldType
LimitRequired
number
From DateRequired
date
To DateRequired
date
UsersRequired
array
Output fields[3]
FieldType
User Task IDtext
Nametext
Categorynumber
Descriptiontext
Related Entitynumber
Due Datetext
Remindernumber
Reminder Before Daysnumber
Notify Bytext

19other output fields

Get Users

SearchDirectory of account users.
Input fields[3]
FieldType
LimitRequired
number
Output fields[3]
FieldType
IDtext
First Nametext
Last Nametext
Email Addresstext
Roletext
Status Codenumber
Member Of Groupsarray
Tagtext
Is Phone Call Agentboolean

Mark a Task Complete

ActionFinishing step for an open task.
Input fields[3]
FieldType
Task IDRequired
text
Output fields[3]
FieldType
Statustext
Messageobject
Affected Rowsnumber

Mark a User Obsolete

ActionObsolete flag for a single user in the organization.
Input fields[3]
FieldType
User IDRequired
choice
Output fields[3]
FieldType
Statustext

Quick Search Leads

SearchOne-box lead lookup.
Input fields[3]
FieldType
Search TextRequired
text
Output fields[3]
FieldType
Lead Typetext
First Landing Page Submission Datetext
Web Ref Keywordtext
Web Referrertext
Prospect Activity Date Mintext
Prospect Activity Date Maxtext
Prospect Activity Name Maxtext
Lead Last Modified Ontext
First Landing Page Submission IDtext

31other output fields

Search Activities

SearchAdvanced filtered activity search.
Input fields[3]
FieldType
LimitRequired
number
Activity EventRequired
choice
Advanced SearchRequired
text
Sort Bytext
Sort Directionchoice
Columnstext
Output fields[3]
FieldType
Prospect Activity IDtext
Related Prospect IDtext
Activity Eventtext
Activity Typetext
Created Ontext
Modified Ontext

Search Leads by Criteria

SearchSingle-condition lead query.
Input fields[3]
FieldType
LimitRequired
number
Lookup FieldRequired
text
Lookup ValueRequired
text
OperatorRequired
choice
Sort Bytext
Sort Directionchoice
Columnstext
Output fields[3]
FieldType
Prospect IDtext
First Nametext
Last Nametext
Email Addresstext
Lead Typetext
Prospect Auto IDtext
Owner IDtext
Created Ontext

Search Opportunities

SearchAdvanced opportunity query by type.
Input fields[3]
FieldType
LimitRequired
number
Opportunity Event CodeRequired
choice
Advanced SearchRequired
text
Sort Bytext
Sort Directionchoice
Output fields[3]
FieldType
Opportunity Event Typetext
Opportunity Eventtext
Created Ontext
Modified Ontext
Mx Custom 1text
Statustext
Mx Custom 2text
Mx Custom 6text
Mx Custom 8text

3other output fields

Search Users

SearchCondition-group user query.
Input fields[3]
FieldType
LimitRequired
number
Group ConditionsRequired
text
Group Operatortext
Sortingtext
Columnstext
Output fields[3]
FieldType
User IDtext
First Nametext
Last Nametext
Email Addresstext
Roletext
Status Codetext
Associated Phone Numberstext
Date Formattext
Time Zonetext

31other output fields

Add a Lead to a Static List

ActionSingle-lead addition to a manual list.
Input fields[3]
FieldType
List IDRequired
choice
Lead IDRequired
text
Output fields[3]
FieldType
Statustext
Messageobject
IDtext
Affected Rowsnumber

Add Leads to a Static List

ActionBatch membership for a manual list.
Input fields[3]
FieldType
List IDRequired
choice
Lead IDsRequired
array
Output fields[3]
FieldType
Statustext
Messageobject
Messagetext

Add Opportunities in Bulk

ActionMass opportunity creation across matched leads.
Input fields[3]
FieldType
Search ByRequired
text
ItemsRequired
array
Itemobject
Output fields[3]
FieldType
Prospect Opportunity IDtext
Row Numbernumber
Opportunity Createdboolean

Add Users to a Sales Group

ActionGroup membership with per-user permissions.
Input fields[3]
FieldType
Group IDRequired
choice
Group UsersRequired
array
Group Userobject
Callback URLtext
Output fields[3]
FieldType
Statustext
Responseobject
Request Typetext
Request IDtext

Add Values to a Lead Drop-down Field

ActionExtends the choice list of a lead field.
Input fields[3]
FieldType
Schema NameRequired
text
OptionsRequired
array
Output fields[3]
FieldType
Statustext
Messageobject
Affected Rowsnumber

Attach a File to a Custom or Sales Activity

ActionAdds a downloadable file reference to an activity.
Input fields[3]
FieldType
Activity IDRequired
text
Attachment NameRequired
text
Descriptiontext
Attachment FileRequired
text
Output fields[3]
FieldType
Statustext
Messageobject
IDtext

Bulk Update Appointment Timings

ActionMoves a batch of appointments to new times.
Input fields[3]
FieldType
Task ListRequired
array
Task Listobject
Status Webhook URLtext
Output fields[3]
FieldType
Statustext
Messageobject
IDtext
Is Successfulboolean

Bulk Update Opportunities

ActionMass edits across existing opportunities.
Input fields[3]
FieldType
ItemsRequired
array
Itemobject
Output fields[3]
FieldType
Row Numbernumber
Opportunity Updatedboolean

Cancel a Sales Activity

ActionWithdraws a recorded sale with a comment.
Input fields[3]
FieldType
Activity IDRequired
text
Activity Event Notetext
Output fields[3]
FieldType
Statustext
Messageobject
IDtext

Cancel Appointments in Bulk

ActionMass cancellation of scheduled appointments.
Input fields[3]
FieldType
Task IDsRequired
array
Status Webhook URLtext
Output fields[3]
FieldType
Statustext
Messageobject
IDtext
Is Successfulboolean

Capture a Lead

ActionForm-style lead intake that reuses matching leads.
Input fields[3]
FieldType
First Nametext
Last Nametext
Email Addresstext
Phonetext
Companytext
Sourcetext
Other Fieldsarray
Fieldobject
Output fields[3]
FieldType
Statustext
Messageobject
IDtext
Related IDtext
Is Createdboolean

Capture an Opportunity

ActionForm-style intake for opportunities.
Input fields[3]
FieldType
Lead DetailsRequired
array
Fieldobject
Opportunity Event CodeRequired
choice
Opportunity Notetext
Opportunity Date Timedate
Overwrite Fieldschoice
Update Empty Fieldschoice
Do Not Post Duplicate Activitychoice
Do Not Change Ownerchoice
Opportunity Fieldsarray
Activity Fieldobject
Output fields[3]
FieldType
Additional Detailsarray
Conflicted Opportunity IDtext
Created Opportunity IDtext
Exception Messagetext
Exception Typetext
Is Uniqueboolean
Primary Actionnumber
Related Prospect IDtext
Request IDtext

2other output fields

Create a Custom Lead Field

ActionExtends the lead schema with a new field.
Input fields[3]
FieldType
Display NameRequired
text
Data TypeRequired
text
Is Mandatorychoice
Render Type Text ValueRequired
text
Show In Importchoice
Show In Mail Mergechoice
Lock After Createchoice
Use In Lead Clonechoice
Max Lengthtext

1other input field

Output fields[3]
FieldType
Statustext
Messageobject
IDtext

Create a Lead

ActionInserts a lead with standard and custom fields.
Input fields[3]
FieldType
First Nametext
Last Nametext
Email Addresstext
Phonetext
Companytext
Sourcetext
Other Fieldsarray
Fieldobject
Output fields[3]
FieldType
Statustext
Messageobject
IDtext

Create a Lead and an Activity

ActionLead plus first activity in one call.
Input fields[3]
FieldType
Lead DetailsRequired
array
Fieldobject
Activity EventRequired
choice
Activity Notetext
Activity Date Timedate
Fieldsarray
Activity Fieldobject
Output fields[3]
FieldType
Statustext
Messageobject
IDtext

Create a Note

ActionText note stored against a lead.
Input fields[3]
FieldType
Lead IDRequired
text
NoteRequired
text
Attachment URLtext
Output fields[3]
FieldType
Statustext
Messageobject
IDtext

Create a Product

ActionCatalog entry for a sellable item.
Input fields[3]
FieldType
Product SKURequired
text
NameRequired
text
Descriptiontext
Output fields[3]
FieldType
Statustext
Messageobject
IDtext

Create a Sales Activity

ActionLogs a sale against one lead.
Input fields[3]
FieldType
Lead IDRequired
text
Product SKUtext
StatusRequired
text
Revenuenumber
Sales Owner Emailtext
Sales Datedate
Output fields[3]
FieldType
Statustext
Messageobject
IDtext

Create a Sales Group

ActionEmpty group for sales users.
Input fields[3]
FieldType
NameRequired
text
Descriptiontext
Output fields[3]
FieldType
Statustext
Messageobject
IDtext

Create a Team

ActionNew node in the team hierarchy.
Input fields[3]
FieldType
NameRequired
text
Descriptiontext
Sequencenumber
Parent Codechoice
Workday Template Codenumber
Holiday Calendar Codenumber
Smart View Codenumber
Dashboard Codesarray
Default Dashboard Codenumber
Output fields[3]
FieldType
Statustext
Messageobject
IDtext
Is Successfulboolean
Codenumber

Create a To-Do

ActionDated task item, optionally linked to a record.
Input fields[3]
FieldType
NameRequired
text
Descriptiontext
Related Entitychoice
Related Entity IDtext
Due DateRequired
date
End Datedate
Reminder Before Daysnumber
Reminder Timetext
Notify Bytext

2other input fields

Output fields[3]
FieldType
Statustext
Messageobject
IDtext

Create a User

ActionProvisions a web or mobile user.
Input fields[3]
FieldType
First NameRequired
text
Last Nametext
Email AddressRequired
text
RoleRequired
text
Custom Fieldstext
Associated Phone Numberstext
Is Phone Call Agentchoice
User Typechoice
Manager User IDchoice

5other input fields

Output fields[3]
FieldType
Statustext
Messageobject
IDtext

Create Activities on Leads in Bulk (Using Lead ID)

ActionMass activity logging keyed on lead IDs.
Input fields[3]
FieldType
ItemsRequired
array
Itemobject
Output fields[3]
FieldType
Prospect Activity IDtext
Row Numbernumber
Activity Createdboolean

Create Activities on Leads in Bulk (Using Unique Lead Fields)

ActionMass activity logging keyed on unique lead values.
Input fields[3]
FieldType
Search ByRequired
text
ItemsRequired
array
Itemobject
Output fields[3]
FieldType
Prospect Activity IDtext
Row Numbernumber
Activity Createdboolean

Create an Account

ActionNew company account in LeadSquared.
Input fields[3]
FieldType
Company TypeRequired
text
Company NameRequired
text
Phonetext
Websitetext
Other Propertiesarray
Fieldobject
Output fields[3]
FieldType
Statustext
Messageobject
IDtext

Create an Activity on a Lead

ActionRecords a custom activity for one lead.
Input fields[3]
FieldType
Lead IDtext
Email Addresstext
Phonetext
First Nametext
Last Nametext
Activity EventRequired
choice
Activity Notetext
Activity Date Timedate
Fieldsarray
Activity Fieldobject
Output fields[3]
FieldType
Statustext
Messageobject
IDtext

Create an Activity on an Account

ActionLogs company-level activity for an account.
Input fields[3]
FieldType
Account IDRequired
text
Activity EventRequired
choice
Activity Notetext
Fieldsarray
Activity Fieldobject
Output fields[3]
FieldType
Statustext
Messageobject
IDtext

Create an Email Template

ActionStores an HTML email for later sends.
Input fields[3]
FieldType
NameRequired
text
Descriptiontext
SubjectRequired
text
Content HTMLRequired
text
Output fields[3]
FieldType
Statustext
Messageobject
IDtext

Create an Empty Static List

ActionBlank manual list awaiting members.
Input fields[3]
FieldType
NameRequired
text
Descriptiontext
Output fields[3]
FieldType
Statustext
Messageobject
IDtext

Create Bulk Activities on Opportunities

ActionSeveral activities for one opportunity at once.
Input fields[3]
FieldType
Opportunity IDRequired
text
ItemsRequired
array
Itemobject
Output fields[3]
FieldType
Prospect Activity IDtext
Row Numbernumber
Activity Createdboolean

Create Leads in Bulk

ActionMass lead import from field rows.
Input fields[3]
FieldType
LeadsRequired
array
Recordobject
Output fields[3]
FieldType
Row Numbernumber
Lead IDtext
Lead Createdboolean

Create or Update a Lead

ActionUpsert keyed on the unique lead field.
Input fields[3]
FieldType
First Nametext
Last Nametext
Email Addresstext
Phonetext
Companytext
Sourcetext
Other Fieldsarray
Fieldobject
Output fields[3]
FieldType
Statustext
Messageobject
IDtext
Affected Rowsnumber

Create or Update Accounts in Bulk

ActionMass account upsert on a matching field.
Input fields[3]
FieldType
Company TypeRequired
text
Search ByRequired
text
Collision Resolution Strategytext
CompaniesRequired
array
Recordobject
Output fields[3]
FieldType
Row Numbernumber
Company IDtext
Company Createdboolean
Company Updatedboolean

Create or Update Leads in Bulk

ActionMass lead upsert with per-row outcome.
Input fields[3]
FieldType
LeadsRequired
array
Recordobject
Output fields[3]
FieldType
Row Numbernumber
Lead IDtext
Lead Createdboolean
Lead Updatedboolean
Affected Rowsnumber

Create Tasks in Bulk

ActionMass task creation in one request.
Input fields[3]
FieldType
Task ListRequired
array
Task Listobject
Status Webhook URLtext
Output fields[3]
FieldType
Statustext
Messageobject
IDtext

Delete a Custom Activity

ActionClears one logged lead activity.
Input fields[3]
FieldType
Activity IDRequired
text
Output fields[3]
FieldType
Statustext
Messageobject
Is Successfulboolean

Delete a Lead

ActionLead removal through its identifier.
Input fields[3]
FieldType
Lead IDRequired
text
Output fields[3]
FieldType
Statustext

Delete a Product

ActionCatalog product cleanup by product ID.
Input fields[3]
FieldType
Product IDRequired
text
Output fields[3]
FieldType
Statustext
Messageobject
Affected Rowsnumber

Delete a Sales Group

ActionGroup cleanup by group ID.
Input fields[3]
FieldType
Group IDRequired
choice
Output fields[3]
FieldType
Statustext

Delete a Task

ActionSingle task cleanup by task ID.
Input fields[3]
FieldType
Task IDRequired
text
Output fields[3]
FieldType
Statustext
Messageobject
Affected Rowsnumber

Delete a Team

ActionHierarchy pruning by team code.
Input fields[3]
FieldType
Team CodeRequired
choice
Output fields[3]
FieldType
Statustext
Messageobject
Is Successfulboolean

Delete Activities of a Lead

ActionSelective activity cleanup on one lead.
Input fields[3]
FieldType
Lead IDRequired
text
Activity Event ListRequired
array
From Datedate
To Datedate
Status Webhook URLtext
Output fields[3]
FieldType
Statustext
Messageobject
Messagetext

Delete an Account

ActionAccount removal with an optional lead cleanup.
Input fields[3]
FieldType
Company IDRequired
text
With Lead Deletechoice
Output fields[3]
FieldType
Statustext
Messageobject

Delete an Account Activity

ActionClears one logged account activity.
Input fields[3]
FieldType
Activity IDRequired
text
Output fields[3]
FieldType
Statustext

Delete an Activity Type

ActionCustom type cleanup by activity code.
Input fields[3]
FieldType
Activity TypeRequired
choice
Output fields[3]
FieldType
Statustext
Messageobject
Messagetext

Delete an Opportunity

ActionOpportunity cleanup for accounts using that feature.
Input fields[3]
FieldType
Opportunity IDRequired
text
Output fields[3]
FieldType
Statustext
Messageobject
Is Successfulboolean

Delete Tasks in Bulk

ActionMass task cleanup from a list of IDs.
Input fields[3]
FieldType
Task IDsRequired
array
Status Webhook URLtext
Output fields[3]
FieldType
Statustext
Operationtext
Tasks Countnumber
Deleted Tasks Countnumber
Failure Reasontext

Make an API Call

universalYour own LeadSquared REST API request.
Input fields[3]
FieldType
URLRequired
text
MethodRequired
choice
Headersarray
Headerobject
Query Stringarray
Query Stringobject
Bodytext

Mark a Lead Invalid

ActionEmail address marked as invalid.
Input fields[3]
FieldType
Email AddressRequired
text
Messagetext
Output fields[3]
FieldType
Statustext
Messageobject
Affected Rowsnumber

Mark a Lead Valid

ActionLead email set back to valid.
Input fields[3]
FieldType
Email AddressRequired
text
Messagetext
Output fields[3]
FieldType
Statustext
Messageobject
Affected Rowsnumber

Merge Leads

ActionCombines duplicate leads into one master record.
Input fields[3]
FieldType
Master Lead IDRequired
text
Child Lead IDRequired
text
Output fields[3]
FieldType
Statustext

Remove a Lead from a Static List

ActionManual list membership edit for one lead.
Input fields[3]
FieldType
List IDRequired
choice
Lead IDRequired
text
Output fields[3]
FieldType
Statustext
Messageobject
Messagetext

Remove All Leads from a Static List

ActionFull membership reset of a list.
Input fields[3]
FieldType
List IDRequired
choice
Output fields[3]
FieldType
Statustext
Messageobject
IDtext

Remove Users from a Sales Group

ActionGroup roster trimming for several users.
Input fields[3]
FieldType
Group IDRequired
choice
User IDsRequired
array
Callback URLtext
Output fields[3]
FieldType
Statustext
Responseobject
Request Typetext
Request IDtext

Remove Values from a Lead Drop-down Field

ActionShrinks the choice list of a lead field.
Input fields[3]
FieldType
Schema NameRequired
text
OptionsRequired
array
Output fields[3]
FieldType
Statustext
Messageobject
Affected Rowsnumber

Revoke Access to a Shared Lead

ActionEnds a lead sharing grant.
Input fields[3]
FieldType
ItemsRequired
array
Itemobject
Output fields[3]
FieldType
Statustext
Messageobject
IDtext

Send an Email Campaign

ActionList-wide email dispatch.
Input fields[3]
FieldType
Email Library NameRequired
text
Sender TypeRequired
text
SenderRequired
text
List IDRequired
choice
Scheduledate
Email Campaign NameRequired
text
Include Email Footerchoice
Email Categorytext
Output fields[3]
FieldType
IDtext
Member Countnumber
Total Recipientnumber

Send an Email to a Lead

ActionIndividual email dispatch to one recipient.
Input fields[3]
FieldType
Sender TypeRequired
text
SenderRequired
text
CC Email Addresstext
Recipient TypeRequired
text
Recipient Email Fieldstext
RecipientRequired
text
Email TypeRequired
text
Email Library Nametext
Content HTMLtext

5other input fields

Output fields[3]
FieldType
IDtext
Member Countnumber
Total Recipientnumber

Share a Lead

ActionTemporary lead access grant.
Input fields[3]
FieldType
ItemsRequired
array
Itemobject
Output fields[3]
FieldType
Statustext
Messageobject
IDtext

Update a Lead

ActionPartial field edit on a lead.
Input fields[3]
FieldType
Lead IDRequired
text
First Nametext
Last Nametext
Email Addresstext
Phonetext
Companytext
Sourcetext
Other Fieldsarray
Fieldobject
Output fields[3]
FieldType
Statustext
Messageobject
Affected Rowsnumber

Update a Note

ActionEdits wording of an existing note.
Input fields[3]
FieldType
Lead IDRequired
text
Note IDRequired
text
NoteRequired
text
Attachment URLtext
Output fields[3]
FieldType
Statustext

Update a Product

ActionProduct record revision for the catalog.
Input fields[3]
FieldType
Product IDRequired
text
Product SKUtext
Nametext
Descriptiontext
Output fields[3]
FieldType
Statustext
Messageobject
Affected Rowsnumber

Update a Sales Activity

ActionCorrects a logged deal.
Input fields[3]
FieldType
Sales Activity IDRequired
text
Lead IDtext
Product SKUtext
Revenuenumber
Sales Owner Emailtext
Sales Datedate
Output fields[3]
FieldType
Statustext
Messageobject
Affected Rowsnumber

Update a Task

ActionReschedules or reassigns an existing task.
Input fields[3]
FieldType
Task IDRequired
text
Nametext
Descriptiontext
Related Entitychoice
Related Entity IDtext
Due Datedate
Remindernumber
Notify Bytext
Owner IDchoice

1other input field

Output fields[3]
FieldType
Statustext
Messageobject
Affected Rowsnumber
Auto IDnumber

Update a Team

ActionHierarchy and naming changes for a team.
Input fields[3]
FieldType
CodeRequired
choice
Nametext
Descriptiontext
Sequencenumber
Parent Codechoice
Workday Template Codenumber
Holiday Calendar Codenumber
Smart View Codenumber
Dashboard Codesarray

1other input field

Output fields[3]
FieldType
Statustext
Messageobject
Affected Rowsnumber
Is Successfulboolean
Codenumber

Update a User

ActionProfile and setting changes for a user.
Input fields[3]
FieldType
User IDRequired
choice
Usertext
User Settingstext
Output fields[3]
FieldType
Statustext
Exception Messagetext

Update Activities in Bulk

ActionMass edits across logged activities.
Input fields[3]
FieldType
ItemsRequired
array
Itemobject
Output fields[3]
FieldType
Row Numbernumber
Activity Updatedboolean

Update an Account

ActionField edits on a company account.
Input fields[3]
FieldType
Account IDRequired
text
Company PropertiesRequired
array
Fieldobject
Output fields[3]
FieldType
Statustext
Messageobject
Affected Rowsnumber

Update an Account Activity

ActionModifies a logged account activity.
Input fields[3]
FieldType
Account Activity IDRequired
text
Activity Notetext
Fieldsarray
Activity Fieldobject
Output fields[3]
FieldType
Statustext
Messageobject
IDtext
Is Successfulboolean

Update an Activity

ActionModifies a logged lead activity.
Input fields[3]
FieldType
Activity IDRequired
text
Activity Eventchoice
Activity Notetext
Process Files Asyncchoice
Fieldsarray
Activity Fieldobject
Output fields[3]
FieldType
Statustext
Messageobject
IDtext

Update an Opportunity

ActionField edits on an opportunity.
Input fields[3]
FieldType
Opportunity IDRequired
text
Opportunity Notetext
Fieldsarray
Activity Fieldobject
Output fields[3]
FieldType
Statustext
Messageobject
IDtext

Update Leads in Bulk

ActionSame values applied to many leads.
Input fields[3]
FieldType
Lead IDsRequired
array
Lead FieldsRequired
array
Fieldobject
Output fields[3]
FieldType
Statustext
Messageobject
Affected Rowsnumber

Update Leads in Bulk v2

ActionPer-lead mass update on a key field.
Input fields[3]
FieldType
Search By KeyRequired
text
Push Non Existent Leads To Unprocessed Listchoice
LeadsRequired
array
Recordobject
Output fields[3]
FieldType
Statusobject
Total Countnumber
Success Countnumber
Failure Countnumber
Messagetext
Detailsobject
Successful Leadsarray

Look for LeadSquared templates in the WEXTL template library.

Browse templates →
  1. WEXTL® LeadSquared Source Code connector implementation.
  2. Our users use cases and automations.
  3. Official API Documentation for LeadSquared.
  4. WEXTL® visual workflow builder data.

Last updated: Nov 29, 2026 17:02

How we write our apps documentation

How we compile these docs: sources, the role of AI, and how we verify.