How to get API user email who creates the lead? | Community
Skip to main content
Mykhailo_Starod
Level 2
December 10, 2019
Question

How to get API user email who creates the lead?

  • December 10, 2019
  • 2 replies
  • 4209 views

Hello,

We have a bunch of different third-party systems that create the leads through API calls. Our system needs to handle new leads differently based on the lead source (specific API users) at the lead creation webhook. For that, we need to get an email or username of lead creator API user.

Does Marketo have any solution to this issue? (e.g. create a custom field and fill it at some Marketo interceptor)

Thanks in advance.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Amit_Jain
Community Advisor
Community Advisor
December 10, 2019

To handle this, I have created a custom field in Marketo called "Latest Lead Source" and feed this in Marketo from different systems with their respective source value. This way, even if you are using the same Marketo API user at multiple places, you can still be able to differentiate the leads from different sources.

Hope this will help.

Mykhailo_Starod
Level 2
December 11, 2019

Thanks. 

"Latest Lead Source" field value is defined at the upstream system. Did I understand you correctly?

Amit_Jain
Community Advisor
Community Advisor
December 11, 2019

Yes, that's correct.

SanfordWhiteman
Level 10
December 10, 2019

Our system needs to handle new leads differently based on the lead source (specific API users) at the lead creation webhook.

The REST API endpoints aren't webhooks. That's the reverse direction.

What Amit suggests is the best you can do within your (probable) technical limits. We take it further and have every API connection come in via an API gateway. That gateway always tags the inbound call with the identity of the requester, so they don't have to remember to include it.

Mykhailo_Starod
Level 2
December 11, 2019

Thank you for your answer.

The REST API endpoints aren't webhooks. That's the reverse direction.

I mean our downstream system handles lead creation webhook from Merketo. But the main problem is the identification of API user who creates leads.

We take it further and have every API connection come in via an API gateway. That gateway always tags the inbound call with the identity of the requester, so they don't have to remember to include it.

Did you create a reverse proxy over Marketo?

Does this proxy have its own authentification to identify users?

Is it possible to build this solution under Marketo infrastructure?

SanfordWhiteman
Level 10
December 11, 2019

Did you create a reverse proxy over Marketo?

Yes.

Does this proxy have its own authentification to identify users?

Yes, sure does.

Is it possible to build this solution under Marketo infrastructure?

No, it's not.