Skip to main content
Level 2
May 22, 2025 5:38 AM UTC
Solved

Bulk Export leads

Hello Community,

 

I'm looking to export leads from the Marketo database. According to the documentation, there's an API that allows exporting leads created within a specific month. However, I'm wondering if there's an alternative way to retrieve all leads. My objective is to generate a file that includes the following fields: FirstName, LastName, MarketoId, and Email Address.

POST /bulk/v1/leads/export/create.json

 

Thank you.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
OmkarKa4Accepted solution
Level 2
May 22, 2025 9:15 AM UTC

Hello @sanfordwhiteman ,

 

Thank you for the response!

 

Can you give a example for the same.

 

I am currently using this Request Body:

{ "fields": [ "firstName", "lastName", "id", "email" ], "format": "CSV", "columnHeaderNames": { "firstName": "First Name", "lastName": "Last Name", "id": "Marketo Id", "email": "Email Address" }, "filter": { "createdAt": { "startAt": "2024-06-01T00:00:00Z", "endAt": "2024-06-30T00:00:00Z" } } }

 

3 replies

SanfordWhiteman
User Group Leader
User Group Leader
May 22, 2025 7:30 AM UTC

You can use the smartListId filter and create a Smart List that qualifies all leads.

Translate
OmkarKa4AuthorAccepted solution
Level 2
May 22, 2025 9:15 AM UTC

Hello @sanfordwhiteman ,

 

Thank you for the response!

 

Can you give a example for the same.

 

I am currently using this Request Body:

{ "fields": [ "firstName", "lastName", "id", "email" ], "format": "CSV", "columnHeaderNames": { "firstName": "First Name", "lastName": "Last Name", "id": "Marketo Id", "email": "Email Address" }, "filter": { "createdAt": { "startAt": "2024-06-01T00:00:00Z", "endAt": "2024-06-30T00:00:00Z" } } }

 

Translate
SanfordWhiteman
User Group Leader
User Group Leader
May 22, 2025 4:11 PM UTC
{ "fields": [ "firstName", "lastName", "id", "email" ], "format": "CSV" "filter": { "smartListId" : 467451 } }
Translate