Get a Lead by Id

Returns the details of a single lead (First name, Last name, Email Address, Location, etc.) based on the “LeadId” you pass in the API URL.
If the “LeadId” doesn’t exist, the response will be empty (square brackets []).

Related APIs

  • To retrieve a lead’s details using their email Id, use the Get Lead by Email API.
  • To retrieve a lead’s details using their phone number, use the Get Lead by Phone API.

API URL

GET
https://{host}/v2/LeadManagement.svc/Leads.GetById?accessKey=AccessKey&secretKey=SecretKey&id=id
Copy URL

URL Parameters

Parameter Description
id Unique identified of the lead.

Response

200 OK

Content-Type: application/json

[
    {
        "OptedOutDate": null,
        "ProspectActivityName_Min": "Sales Activity",
        "ProspectID": "4c70ce73-0732-4977-85a2-fb49a978b85c",
        "ProspectAutoId": "352",
        "FirstName": "vishwa",
        "LastName": "kumar",
        "EmailAddress": null,
        "Company": null,
        "Origin": "Quick Add Form",
        "Phone": null,
        "Mobile": null,
        "Website": null,
        "TimeZone": null,
        "JobTitle": null,
        "Source": "Inbound Email",
        "SourceMedium": null,
        "Notes": null,
        "SourceCampaign": null,
        "SourceContent": null,
        "DoNotEmail": "0",
        "DoNotCall": "0",
        "ProspectStage": "Customer",
        "Score": "40",
        "Revenue": "0",
        "EngagementScore": "0",
        "TotalVisits": null,
        "PageViewsPerVisit": null,
        "AvgTimePerVisit": null,
        "RelatedProspectId": null,
        "ProspectActivityId_Min": "82f309b6-6a95-11e6-8f87-22000aa8e760",
        "ProspectActivityDate_Min": "2016-08-25 07:28:12.000",
        "Web_Referrer": null,
        "Web_RefKeyword": null,
        "ProspectActivityId_Max": "ed18a92e-bec7-49a3-b1f6-cb1d8b655f78",
        "ProspectActivityName_Max": "GotoWebinar session attended",
        "ProspectActivityDate_Max": "2016-08-25 13:02:00.000",
        "RelatedLandingPageId": null,
        "FirstLandingPageSubmissionId": null,
        "FirstLandingPageSubmissionDate": null,
        "OwnerId": "7cf19f34-21d6-11e6-8091-02b01d637af7",
        "CreatedBy": "7cf19f34-21d6-11e6-8091-02b01d637af7",
        "CreatedOn": "2016-07-18 09:21:19.000",
        "ModifiedBy": "7cf19f34-21d6-11e6-8091-02b01d637af7",
        "ModifiedOn": "2016-08-25 08:29:36.000",
        "LeadConversionDate": null,
        "StatusCode": "0",
        "StatusReason": "0",
        "IsLead": "1",
        "mx_Street1": null,
        "mx_City": null,
        "mx_Country": null,
        "LastModifiedOn": "8/25/2016 1:02:49 PM",
        "mx_Institution_Name": null,
        "mx_Work_Place": null,
        "mx_HugeDropDown": null,
        "mx_WebinarID": null,
        "mx_bool": null,
        "mx_DOB": null,
        "mx_lockaftercreate": "value3",
        "NotableEvent": "GotoWebinar session attended",
        "NotableEventdate": "2016-08-25 13:02:00.000",
        "SourceReferrer": "",
        "LastVisitDate": "2016-08-25 13:02:00.000",
        "MailingPreferences": null,
        "QualityScore01": "0",
        "TwitterId": null,
        "FacebookId": null,
        "LinkedInId": null,
        "SkypeId": null,
        "GTalkId": null,
        "GooglePlusId": null,
        "PhotoUrl": null,
        "StageRottingFlagStatus": null,
        "StageRottingFlagMessage": "Lead moved to new stage, Customer",
        "StageRottingFlagModifiedOn": "2016-08-25 07:56:41.000",
        "StageRottingFlagAdditionalInfo": "{"FlagDisplayColor":"#D65532"}",
        "StageRottingFlagLevel": null,
        "OwnerIdName": "swesh kumar",
        "Groups": null,
        "CreatedByName": "swesh kumar",
        "ModifiedByName": "swesh kumar",
        "MailingPreferences1": null,
        "FlagLevel": null,
        "FlagAdditionalInfo": "{"FlagDisplayColor":"#D65532"}",
        "FlagStatus": null,
        "FlagMessage": "Lead moved to new stage, Customer",
        "FlaggingModifiedOn": "8/25/2016 7:56:41 AM",
        "IsStarredLead": "false",
        "CanUpdate": "true"
    }
]

HTTP Response Code

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.