To export leads in bulk, send an authorized POST request to https://secure.setshape.com/api/leads/bulk/import
This API endpoint accepts arrays of objects, each object is considered a lead. Export leads by including the field names to be created in the request body. To get a list of supported field names, please see the section below titled “How to Get Field Names.”
Parameter — To get a list of supported field names, please see the section below titled “How to Get Field Names.”
Parameter — Lead’s last name.
The authentication token should be passed in the request header for every API request.
Content-Type: application/json
Authorization=xxxxxxxxxxxxxxxxxxxxxxxx
JSON request body formatting example:
{
"ids" : [61498, 61495],
"fields": ["firstname","lastname","email","lastcallattempt"]
}
Upon success, the server returns HTTP codes and messages in the header with some additional elements and properties that are set by the server, such as id.
{
"message": "Data fetched successfully.",
"data": {
"61498": {
"First Name": "Henry1",
"Last Name": "Shape3",
"Email": "henrytest@test.com",
"Last Call Attempt": "0000-00-00 00:00:00",
"Mailing Zip": ""
},
"61495": {
"First Name": "Testy",
"Last Name": "Testy",
"Email": "testy@asd.com",
"Last Call Attempt": "0000-00-00 00:00:00",
"Mailing Zip": ""
}
},
"fields_not_found": []
}
*fields_not_found: This response key is an array indicating items passed through the API endpoint, but does not exists within Shape Software.
Field names can be found within your CRM System’s settings pages under: Settings > Marketing Sources > Edit Any Marketing Source > Campaign Source Post URL Instructions.
After navigating to the marketing sources settings page and opening up a campaign, scroll to the bottom of the page to the “Campaign Source Post URL Instructions” section. Here, you will find a searchable table with a breakdown of all of the field names available for use. These field names can also be exported to a CSV via the “Export” dropdown.
Please wait, Processing request.
Changing templates will take time and may require an implementation fee