This page describes the MarketingLeadEndpoint
endpoint, which can be used to get data about marketing leads.
GET
Get a marketing lead
Gets a marketing lead from your third-party marketing software solution, such as Marketo or Salesforce Marketing Cloud, based on a filter.
Request URL
/.rest/marketing-automation/v1/leads/
Parameters
Parameter | Description | Parameter type | Data type |
---|---|---|---|
| required The definition name. For example: |
|
|
filterType | required The type of filter applied to the results. For example: |
|
|
filterValues | required The value of the filter. For example: |
|
|
fields | required The fields whose data you want to get. For example: |
|
|
| optional If set to If not used or | query | boolean |
Example
Gets the first and last names for the lead with the email test@best-cms.com
from Marketo.
http://localhost:8080/magnoliaPublic/.rest/marketing-automation/v1/leads?definitionName=marketo&filterType=email&filterValues=test@best-cms.com&fields=FirstName,LastName
Response
{ "id": { "externalId": "13", "definitionName": "marketo" }, "values": { "id": 13, "firstName": "Jane", "lastName": "Doe", "email": "test@best-cms.com" } }