SOLVED

How do I find a List ID for use with the REST API?

Go to solution
Anonymous
Not applicable

How do I find a List ID for use with the REST API?

I am using the REST API to submit forms from my site to marketo. Each form has a corresponding list that the form user gets added to upon submission. I can easily create the Lists in marketo, but after the List is created its very painful to get the ID so I can add users to it. There appears to be no way in the marketo interface to find the List ID and the only way I can find is to use the REST API to get all our Lists (http://developers.marketo.com/documentation/rest/get-multiple-lists/) then find the new list in the huge JSON response to get the ID.

Please tell me there is an easier way to get it, ideally in the marketo interface when creating the lists.
Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

Re: How do I find a List ID for use with the REST API?

Hi Robert,

In the User interface the list ID is in the URL.

If I open a srtatic list in Marketo for example the url might be :

https://app-xyz.marketo.com/#ST7808A1

#ST7808A1
ST stands for static list
7802 is the list ID
A1 is the tab in the UI

So in your case for this example  you would be using just 7802.

Hope that does the trick.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Re: How do I find a List ID for use with the REST API?

Hi Robert,

In the User interface the list ID is in the URL.

If I open a srtatic list in Marketo for example the url might be :

https://app-xyz.marketo.com/#ST7808A1

#ST7808A1
ST stands for static list
7802 is the list ID
A1 is the tab in the UI

So in your case for this example  you would be using just 7802.

Hope that does the trick.
Anonymous
Not applicable

Re: How do I find a List ID for use with the REST API?

Perfect, thanks! I guess I should have looked closer, the letters threw me off, so I never looked closer at the numbers in between.

Thanks!