This is a snippet from some Python code I use to do exactly that (normally with a broader field list):
extractFields=[
"id",
"firstName",
"lastName",
"email"
]
extractFilter={'smartListName': 'Lead Extract Filter'}
new_export_job_details = mc.execute(method='create_leads_export_job', filters=extractFilter, fields=extractFields)
It is using the Python Marketo library. Looking under the hood of the library code, it is just setting 'filter': filters
What are you using for testing purposes?
It might not be everything you need, but hopefully it gets you on the correct path.
Cheers
Jo
Thanks @Jo_Pitts1. Turns out, the smartListId filter was not enabled for my instance, so a quick support ticket fixed that and the code worked. I figured since it's been a few years since that was added, it was enabled for all accounts, but I guess that wasn't the case. Appreciate the assist!