Pulling Previous Data Value Using an API | Community
Skip to main content
Level 2
March 12, 2025
Solved

Pulling Previous Data Value Using an API

  • March 12, 2025
  • 2 replies
  • 1673 views

Hello! I have some leads that were updated accidentally and I would like to revert those values to a previous one. I know that it's not something you can do since there isn't an undo function in Marketo but I know that it's possible to pull that information using an API. Does anyone have any resources on how to do it? I am new to using APIs and any help will be useful. A majority of the leads were fixed but there are still some that needs to be updated again. 

 

Is this something that I should do, definitely don't want to break anything, just want to pull information. I have some coding experience but nothing too crazy

Best answer by SanfordWhiteman

Not sure what page you mean, but you can’t run any code “in Marketo” — you call the REST API from outside Marketo, in the language/platform of your choice.

2 replies

SanfordWhiteman
Level 10
March 12, 2025

You want the Get Lead Changes endpoint: https://developer.adobe.com/marketo-apis/api/mapi/#operation/getLeadChangesUsingGET

First, get a paging token (https://developer.adobe.com/marketo-apis/api/mapi/#operation/getActivitiesPagingTokenUsingGET) for the time you know the mistakes started and move forward from there.

SanfordWhiteman
Level 10
March 12, 2025

@john1-2 please return to your thread and check responses.

John1-2Author
Level 2
March 14, 2025

Thank you! I found this page and was wondering how do I go about running this line of code in Marketo? Do you have another guide that I can refer to?

SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
March 14, 2025

Not sure what page you mean, but you can’t run any code “in Marketo” — you call the REST API from outside Marketo, in the language/platform of your choice.