Skip to content
LeadSquared logo

Connectors / Sales · HTTP Connector

Automate LeadSquared with Tray.ai

Create a lead, update an opportunity and update an activity in LeadSquared, and start a workflow when LeadSquared sends “Lead created”.

What can you do with LeadSquared on Tray.ai?

LeadSquared is a sales CRM and marketing automation platform for high-volume sales teams, covering leads, opportunities, activities, tasks and service tickets. Tray.ai connects to LeadSquared through the HTTP Connector, so your workflows can call the LeadSquared API alongside the rest of your stack.

  • When LeadSquared sends “Lead created”, add the lead to your email marketing list.
  • Post an activity in LeadSquared each time a lead attends a webinar in your events tool.
  • Capture an opportunity in LeadSquared when a quote is sent from your billing system.
  • Deactivate a user in LeadSquared when an employee leaves, as recorded in your HR system.
Connects through
HTTP Connector
Authentication
An API key in a request header or an API key in the query string
Base URL
https://api.leadsquared.com/v2

Set it up

Connect LeadSquared to Tray.ai

Each step uses LeadSquared's own API details, from its documentation.

Step 1

Save LeadSquared's API key

Save the key as a Tray.ai authentication. The HTTP Client puts it in the request header, read from $.auth. The key stays out of the workflow and out of the logs.

Step 2

Point the HTTP Client at the API

Add an HTTP Client step and use https://api.leadsquared.com/v2 as the base URL. Or paste a cURL example from LeadSquared's API docs, and Tray.ai fills in the method, URL, and headers.

Step 3

Start with “Get a lead”

It's one of 28 documented actions, under Leads. The response comes back as data the next step can map into your other apps.

Step 4

Start workflows from LeadSquared events

Give LeadSquared the URL of a Tray.ai webhook trigger. “Lead created” can then start a workflow, and so can 2 other events.

Give your AI agents LeadSquared tools

Build an MCP server on LeadSquared in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works

  • Create a lead
  • Capture an opportunity
  • Post an activity
  • Create a task
  • Create a user
  • Create a ticket
  • Get a lead
  • Search leads

What the LeadSquared API covers

6 resources and 28 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Connecting it takes a few clicks: here's how.

Leads

  • Create a lead
  • Get a lead
  • Search leads
  • Update a lead
  • Merge leads
  • Delete a lead

Opportunities

  • Capture an opportunity
  • Get an opportunity
  • Search opportunities
  • Update an opportunity
  • Delete an opportunity

Activities

  • Post an activity
  • Get lead activities
  • Update an activity
  • Delete an activity

Tasks

  • Create a task
  • Get tasks
  • Update a task
  • Mark a task complete
  • Delete a task

Users

  • Create a user
  • Get a user
  • Update a user
  • Deactivate a user

Tickets

  • Create a ticket
  • Update a ticket
  • Search tickets
  • Delete a ticket

Events LeadSquared can send to a Tray.ai webhook trigger

  • Lead created
  • Task updated
  • User created

Checked against LeadSquared's own documentation on 2026-10-22

apidocs.leadsquared.com

Frequently asked questions

What can a Tray.ai workflow do in LeadSquared?

+

The LeadSquared API documents 28 actions across 6 resources (Leads, Opportunities, Activities, Tasks, Users, Tickets). For example: Create a lead; Capture an opportunity; Post an activity. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with LeadSquared?

+

The LeadSquared API uses an API key in a request header and an API key in the query string. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

Which LeadSquared events can start a Tray.ai workflow?

+

LeadSquared sends 3 events to a webhook URL, for example: Lead created; Task updated; User created. A Tray.ai webhook trigger receives them and starts a workflow.

See LeadSquared working against your stack.

We'll walk through a tailored demo with your systems plugged in.

Great — a couple more details

This helps us connect you with the right person. Optional, and you can skip it.