LeadSquared Developer Centre


Retrieve a Webhook

Lets you retrieve one or more webhooks based on the following parameters –

  • “WebhookEvent”
  • “StatusCode”
  • “WebhookId”
  • “SearchText”

Note: You can pass any one of these parameters. To minimize errors, we recommend you pass “WebhookEvent”.



POST https://{host}/v2/Webhook.svc/Retrieve? accessKey=AccessKey&secretKey=SecretKey


Content-Type: application/json
JSON Body/Payload Icon

Request Parameters

Parameter Description

Pass –

  • “Webhook” to retrieve regular webhooks
  • “Lapp” to retrieve Lapp webhooks.

You can pass the following webhook events –

  • Lead_Post_Create
  • Lead_Post_Update
  • Landing_Page_submission
  • LeadActivity_Post_Create
  • LeadActivity_Post_Update
  • Lead_Post_Stage_Change
  • Lead_Owner_Change
  • Task_Create
  • Task_Reminder
  • Lead_Score_Change
  • Lead_Field_Change
  • Lead_Delete
  • User_Create
  • User_Update
  • User_Active_Status_Change
  • Lead_Merge
  • Product_Post_Create
  • Product_Post_Update
  • Product_Delete
  • Task_Complete
  • Task_Update
  • Leave_Create
  • Leave_Update
  • Leave_Delete

Lets you retrieve webhooks by status –

  • 0 represents disabled webhooks
  • 1 represents enabled webhooks.

The unique identifier of the webhook.

For example, 7463290b-9dee-11e7-b0ab-02e89b2fb8f4


Retrieves webhooks based on any sting you pass. The string can be the webhook name or description.

For example, “Lead Create” or “Posts data on lead create”.


The column on which results will be sorted. For example, if you want results to be shown based on creation date, pass “CreatedOn”.


Direction “1” means descending order and “0” means ascending order.


The results matching your criteria may be large. You can fetch the result in blocks of “PageSize” and make multiple calls to the API with increasing values of “PageIndex”.  For example, you can specify “PageIndex”: 1, “PageSize”: 100 for the first call and specify “PageIndex”: 2, “PageSize”: 100 for second call.


For example, you can specify “PageIndex”: 1, “PageSize”: 100 for the first call and specify “PageIndex”: 2“PageSize”: 100 for second call.


200 OK
Content-Type: application/json

HTTP Response Codes

Code Description
200 OK

This is the status code for successful API call.

401 Unauthorized

The API call was made with invalid access credentials. Check your AccessKey and SecretKey.

400 Bad Request

The message body on the request is not as per API specification. Make sure that content type is set to “application/json” and the JSON body has correct attribute names and structure.

404 Not Found

The API could not be found. Please check the API signature.

429 Too Many Requests

API calls exceeded the limit of 25 in 5 second(s)

500 Internal Server Error

The API called failed. There could be many reasons for it. Check the exception message to get more details.

On this page

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