User syncing with API | Community
Skip to main content
March 11, 2015
Question

User syncing with API

  • March 11, 2015
  • 5 replies
  • 1212 views
Hi,
 
We are busy at the moment with using the Marketo API to integrate with our product.
I would like to ask if it is possible to get Marketo user id from web users and then upload the user id's to a list or a segment, without using email, but just by using the user id?
 
I have already read the documentation and the closest thing I could find is this page http://developers.marketo.com/documentation/websites/lead-tracking-munchkin-js/
 
The lead tracking code generates a cookie with an user id, but I could not find a way to be able to use it, apart from executing the associateLead function with an email.
 
Do you know if this is possible and if yes, what would be the way to accomplish this? Please let me know if you need more clarification.
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

5 replies

SanfordWhiteman
Level 10
March 11, 2015
You can't read the Marketo Lead ID from client-side Munchkin directly (as you pointed out, you can update the lead but the only key is the email address).  

You would have to do the API lookup from server-to-server, using the cookie value as the key.
March 12, 2015
Hi Sanford,

Thank you for having a look at this and providing the answer. Do you know which server-to-server API lookup service I can use where I can provide the cookie value as key? Do you know the url to the documentation?
SanfordWhiteman
Level 10
March 12, 2015
To add to the list: http://developers.marketo.com/documentation/rest/add-leads-to-list/ To get a lead ID using email address as key: http://developers.marketo.com/documentation/rest/get-multiple-leads-by-filter-type
March 12, 2015
Hi Sanford,

Thank you. This is exactly what I needed!
March 17, 2015
@Matthijs, just wanted to echo Sanford's comments, and also add that you can query a Marketo lead by their cookie id:
http://developers.marketo.com/blog/get-a-visitors-cookie-id-and-then-query-associated-lead-data/