In this article, you’ll learn how to export user data in Auth0 to a CSV file then import it into Marketo using the Bulk Leads endpoint of the Marketo REST API.Documentation Index
Fetch the complete documentation index at: https://docs-staging.auth0-mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Create a user data file
Start by navigating to the Extensions section of the Dashboard and open the User Import / Export Extension. On the extension page, select Export from the menu. Next, set the Export Format to the required file format. Marketo accepts file imports in CSV format so choose theTab Separated Value file (*.csv) option.
At the top in the Fields section, provide a User Field and Column Name for each user attribute to include in the export. For example:
| User Field | Column Name |
|---|---|
email | Email Address |
created_at | Created At |
given_name | First Name |
family_name | Last Name |
Import a user data file
Before you get started, you can find more information by visiting Marketo Documentation: Bulk Lead Import. To import the user data file to Marketo, perform a POST request to the Bulk Leads endpoint. Set the content-type header of the request tomultipart/form-data and include a file parameter with your exported CSV file as well as format parameter set to csv. For example:
The response should look something like this:
batchId. For example:
And the response: