Leads

Get Lead

Example Request

curl -i https://api.oktopost.com/v2/lead/00D000000000000

Example Result

{  
    "Result":true,
    "Lead":{  
        "Id":"00D000000000000",
        "Created":"2015-10-01 00:00:00",
        "Modified":"2015-11-10 12:59:59",
        "AccountId":"001000000000000",
        "VisitorId":"xxxx",
        "Email":"james@example.com",
        "FirstName":"James",
        "LastName":"Bond",
        "Company":"MI6",
        "Country":"US",
        "State":"",
        "City":"",
        "Zip":"",
        "Phone":"180090909090",
        "Ip":"xxxx",
        "LastActivity":"2014-08-20 18:41:19",
        "LastLinkLogId":"009000000000000",
        "ExternalIdSfdc":"",
        "ExternalIdMarketo":"",
        "GeoCountryCode":"US",
        "GeoCountry":"United States",
        "GeoLongitude":-96.7991,
        "GeoLatitude":32.9889,
        "GeoTimeZone":"America\/Chicago",
        "GeoCity":"Dallas",
        "GeoContinent":"North America",
        "GeoOrganization":"AT&T",
        "GeoUpdate":0,
        "SocialUpdate":0,
        "SocialData":"{...}"
    }
}

List Leads

Example Request

curl -i https://api.oktopost.com/v2/lead

Parameters

The list action allows to filter leads by email and visitorId. Results for this endpoint are always ordered by creation date in a descending order.

Example Result

{  
    "Result":true,
    "Items":[{  
        "Id":"00D000000000000",
        "Created":"2015-10-01 00:00:00",
        "Modified":"2015-11-10 12:59:59",
        "AccountId":"001000000000000",
        "VisitorId":"xxxx",
        "Email":"james@example.com",
        "FirstName":"James",
        "LastName":"Bond",
        "Company":"MI6",
        "Country":"US",
        "State":"",
        "City":"",
        "Zip":"",
        "Phone":"180090909090",
        "Ip":"xxxx",
        "LastActivity":"2014-08-20 18:41:19",
        "LastLinkLogId":"009000000000000",
        "ExternalIdSfdc":"",
        "ExternalIdMarketo":"",
        "GeoCountryCode":"US",
        "GeoCountry":"United States",
        "GeoLongitude":-96.7991,
        "GeoLatitude":32.9889,
        "GeoTimeZone":"America\/Chicago",
        "GeoCity":"Dallas",
        "GeoContinent":"North America",
        "GeoOrganization":"AT&T",
        "GeoUpdate":0,
        "SocialUpdate":0,
        "SocialData":"{...}"
    },
    ...
    ],
    "Total":987
}

Feedback and Knowledge Base