LeadSquared Developer Centre


Create Tasks in Bulk

This API lets you add up to 50 tasks in bulk to your users.


  • The supported DateTime format is UTC (YYYY-MM-DD HH:MM:SS).
  • You can pass both Appointments and To-do task types in the same API.
  • To post the data to a URL of your choice, use the StatusWebhookURL parameter.
  • You can download the report of the tasks created from the Request History page. This report will also be emailed to your registered email Id.
  • The DueDate and EndDate parameters are optional. If you don’t pass them, the due date will be taken as the current day and the appointment will be created with the default duration specified in the task type configuration.


POST https://{host}/v2/Task.svc/Bulk/Create?accessKey=AccessKey&secretKey=SecretKey


Content-Type: application/json
JSON Body/Payload Icon
         "Description":"Meeting with Adam",
         "DueDate":"2021-11-25 13:10:00",
         "EndDate":"2021-11-25 13:15:00",
            "mx_Custom_1":"Meeting in Koramangala"
         "Name":"Document Collection",
         "Description":"Collect KYC documents",
         "DueDate":"2021-11-27 13:10:00",
         "EndDate":"2021-11-27 13:15:00",
            "Name":"Document Collection"

Request Parameters

Parameter Description

Name of the task. You may pass any string value here.


Description of the task.


Pass “1” if you’re passing the LeadId.

Pass “5” if you’re passing the OpportunityId.

Pass “0” if you’re not passing any value.


The LeadId or OpportunityId you want to associate the task with.

To obtain the LeadId, refer to any of the Get Lead APIs.

To obtain the OpportunityId, refer to Get Opportunities by Lead Id.


Due date of task in UTC (YYYY-MM-DD HH:MM:SS).


The end date of the task in UTC (YYYY-MM-DD HH:MM:SS). The task will remain ‘Pending’ until the end date, after which it will become ‘Overdue’.


Let’s you set a reminder in minutes. An email notification will be sent to the task owner before the due time based on this setting.


Set the value as 1100 if you want the task owner to be notified by email.

Set the value as 1000 if you don’t want any notifications.


Email address of the user to whom you’re assigning the task.


The geographic location where the task is due (e.g., Koramangala, etc.). This is a string field.


The custom task type fields that you want to pass (e.g., “mx_Custom_1”).


Pass the webhook URL to which you want to post the data.


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.