AnsweredAssumed Answered

Get subdomain using Marketo API

Question asked by f06a1e9169c81c54a6bdcb621ef8ab99fd032520 on Jul 21, 2016
Latest reply on Jul 21, 2016 by Sanford Whiteman

Hi,

I'm building an integration using the V1 rest API which allows user to login and sync lead data to Marketo. However, I'm having trouble to get the user's marketo subdomain url.

Is there anyway to get that using the current api? I found a get landing pages api rest/asset/v1/landingPages.json which contains the url that I need in the computedUrl field. but I keep getting an access denied error.

 

Here is the end goal that I try to achieve:

whenever my app creates a new lead in marketo through the api, I'll get a lead id from the response, and I'd like to render an link to that lead in my app so users can click on it and redirect them to the marketo side to view the newly created lead.

 

https://{USER_MARKETO_SUBDOMAIN}.marketo.com/leadDatabase/loadLeadDetail?leadId={RECEIVED_FROM_API_CALL}

 

Outcomes