Leads API Reference
You can see the list of API methods for leads.
Web Method: getLeadsConfigData
Purpose
You can use the getConfigData method to get all the configuration data’s like Lead statuses, lead sources, lead ranks and etc.
Request API URL
https://api.apptivo.com/app/dao/v6/leads?a=getConfigData&apiKey=API_KEY&accessKey=ACCESS_KEY
Request Parameters
Parameter | Data Type | Description |
apiKey* | String | Apptivo business account API Key |
accessKey* | String | Apptivo business account Access Key |
* – Mandatory parameter
Output
This will return all the leads configuration data with JSON format.
Notes
- You can get these configuration values and use them while creating leads.
Sample URL
https://api.apptivo.com/app/dao/v6/leads?a=getConfigData&apiKey=oRxYzRZRvOTH-cTPBPVPArJnVNW-6a8d8bf4-1c5f-4930-a5da-49f380afcd33&accessKey=3g806jxv5gq7Q62E
Web Method: createLead
Purpose:
You can use createLead method to create leads in Apptivo with generic fields provided by application.
Request URL:
https://api.apptivo.com/app/dao/v6/leads?a=save&leadData{LEAD_DATA}&apiKey=API_KEY&accesKey=ACCESS_KEY
Request Parameters:
Parameter | Data Type | Description |
leadData* | JSON | Please see the sample request URL |
apiKey* | String | Apptivo API Key |
accessKey* | String | Apptivo Access Key |
* – Mandatory parameter
Output:
This will return the details of the created lead with JSON format.
Sample Request URL:
https://api.apptivo.com/app/dao/v6/leads?a=save&leadData={"lastName":"Testlead","isUnsubscribed":"N","wayToContact":"Email","easyWayToContact":"EMAIL","leadStatus":"1","leadStatusMeaning":"New","leadSource":"1","leadSourceMeaning":"Cold Call","leadTypeId":null,"referredById":44479,"referredByName":"lead test","assigneeObjectRefId":44479,"assigneeObjectRefName":"lead test","assigneeObjectId":8,"description":"","labels":[],"phoneNumbers":[],"emailAddresses":[{"emailAddress":"testcreatelead@berijam.com","emailTypeCode":"BUSINESS","emailType":"Business","id":"cont_email_input"}],"addresses":[{"addressAttributeId":"address_section_attr_id","countryId":2,"addressTypeCode":"1","addressType":"Billing Address","addressLine1":"","addressLine2":"","city":"","state":"","stateCode":"","zipCode":"","county":"","country":"Albania","countryName":"Albania","countryCode":"AL","deliveryInstructions":null,"addressGroupName":""}],"currencyCode":"ALL","potentialAmountCurrencyCode":"ALL","annualRevenueCurrencyCode":"ALL","campaignId":null,"territoryId":null,"marketId":null,"segmentId":null,"segmentName":"","accountId":null,"employeeRangeId":null,"industry":null,"accounts":[],"lastContactedDate":null,"createdBy":null,"lastUpdatedBy":null,"customAttributes":[]}&apiKey=oRxYzRZRvOTH-cTPBPVPArJnVNW-6a8d8bf4-1c5f-4930-a5da-49f380afcd33&accessKey=3g806jxv5gq7Q62E
Web Method: updateLead
Purpose:
This method used to update the lead information.
Request URL:
https://api.apptivo.com/app/dao/v6/leads?a=update&leadData={LEAD_DATA_VALUES}&attributeNames=[LEAD_DATA_NAME]&objectId=4&leadId=LEAD_ID&isEmailAddressUpdate=EMAIL_UPDATE&apiKey=API_KEY&accesKey=ACCESS_KEY
Request Parameters:
Parameter | Data Type | Description |
LEAD_ID | Lead ID | |
LEAD_DATA_VALUES | Updated field value | |
LEAD_DATA_NAME | Updated field name | |
EMAIL_UPDATE | If Email updated, it should be true or false | by default, it is false |
SESSION_KEY | Apptivo session key from username and password |
* – Mandatory parameter
Output:
This will return the details of updated lead data with JSON format.
Sample Request URL:
https://api.apptivo.com/app/dao/v6/leads?a=update&leadData={"id":"301425","objectId":4,"leadId":301425,"lastName":"lastname update","fullName":"Testlead","leadStatus":"1","leadStatusMeaning":"New","leadSource":"1","leadSourceMeaning":"Cold Call","wayToContact":"Email","easyWayToContact":"EMAIL","assigneeObjectRefId":44479,"assigneeObjectRefName":"lead test","assigneeObjectId":8,"referredById":44479,"referredByName":"lead test","description":"","potentialAmount":"0.00","segmentName":"","followUpDate":"N/A","objectStatus":"0","isActive":"Y","actualAmount":0,"currencyCode":"ALL","potentialAmountCurrencyCode":"ALL","annualRevenueCurrencyCode":"ALL","isUnsubscribed":"Y","labels":[],"removeLabels":[],"addresses":[{"addressId":6506316,"addressAttributeId":"address_section_attr_id","addressType":"Billing Address","addressTypeCode":"1","addressLine1":"","addressLine2":"","city":"","county":"","state":"","stateCode":"","countryId":2,"countryName":"Albania","countryCode":"AL","zipCode":"","addressGroupName":"","isAdded":false}],"removeAddresses":[],"phoneNumbers":[],"removePhoneNumbers":[{"id":"lead_phone_input","phoneType":"Business","phoneTypeCode":"PHONE_BUSINESS"}],"emailAddresses":[{"id":"cont_email_input","emailType":"Business","emailTypeCode":"BUSINESS","emailAddress":"testupdate@gmail.com","communicationId":11879597}],"removeEmailAddresses":[],"customAttributes":[{"customAttributeId":"select_1471954940520_71_914251471954940520_907","customAttributeValue":"","customAttributeType":"select","customAttributeTagName":"select_1471954940520_213_1187951471954940520_362","customAttributeName":"select_1471954940520_213_1187951471954940520_362","select_1471954940520_213_1187951471954940520_362":""}],"notes":[],"accounts":[],"firmId":193350,"lastContactedDate":"Not Contacted","createdBy":44753,"lastUpdatedBy":44753,"createdByName":"lead test","creationDate":"Aug 30, 2016 12:29:55 PM","lastUpdateDate":"Aug 30, 2016 12:29:55 PM","lastUpdatedByName":"lead test","version":1,"tags":[],"phoneType":"Business","phoneTypeCode":"PHONE_BUSINESS","emailType":"Business","emailTypeCode":"BUSINESS","isDirtypage":null}&leadId=301425&attributeNames=["lastName","emailAddresses"]&isCustomAttributesUpdate=&isAddTag=&isRemoveTag=&isAddressUpdate=&isPhoneNumberUpdate=&isEmailAddressUpdate=1&isEmailAddressDelete=&isPhoneNumberDelete=&isAddressDelete=&apiKey=oRxYzRZRvOTH-cTPBPVPArJnVNW-6a8d8bf4-1c5f-4930-a5da-49f380afcd33&accessKey=3g806jxv5gq7Q62E
Web Method: Search Leads by Email ID
Purpose:
This method used to get the number of leads in Apptivo based on the email address.
Request URL:
https://api.apptivo.com/app/dao/v6/leads?a=getAllByAdvancedSearch&numRecords=NUM_OF_RECORDS&searchData={SEARCH_DATA}&multiSelectData={}&apiKey=API_KEY&accesKey=ACCESS_KEY
Request Parameters:
Parameter | Data Type | Description |
SEARCH_DATA | search data with Json format | please see the sample request URL |
NUM_OF_RECORDS | number of records to return | |
SESSION_KEY | Apptivo session key from username and password |
* – Mandatory parameter
Output:
This will return the number of leads with JSON format.
Sample Request URL:
https://api.apptivo.com/app/dao/v6/leads?a=getAllByAdvancedSearch&numRecords=50&searchData={ "emailAddresses": [ { "emailAddress": "testlead@berijam.com",
"id": "cont_email_input"
}
]}&multiSelectData={}&apiKey=oRxYzRZRvOTH-cTPBPVPArJnVNW-6a8d8bf4-1c5f-4930-a5da-49f380afcd33&accessKey=3g806jxv5gq7Q62E
Comments
0 comments
Please sign in to leave a comment.