Use the Marketo Bulk Lead Import API to import a large CSV file of leads with custom field mappings, monitor the job, and retrieve import errors

domain: marketo.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. POST /bulk/v1/leads.json?format=csv with a multipart/form-data body containing the CSV file and a 'lookupField' parameter (e.g. 'email') to initiate the bulk import job; receive a 'batchId' in the response
  2. Poll GET /bulk/v1/leads/batch/{batchId}.json until the 'status' field is 'Complete' or 'Failed', checking 'numOfRowsFailed' and 'numOfRowsWithWarning'
  3. If numOfRowsFailed > 0, GET /bulk/v1/leads/batch/{batchId}/failures.json to download the CSV of failed rows with error descriptions in an appended column
  4. If numOfRowsWithWarning > 0, GET /bulk/v1/leads/batch/{batchId}/warnings.json to review non-fatal issues
  5. Map CSV column headers to Marketo field API names exactly — Marketo does not auto-match by display name; run GET /rest/v1/leads/describe.json first to confirm correct REST API names

Known gotchas

Related routes

Export a filtered set of Marketo leads in bulk using the Bulk Lead Extract REST API
experienceleague.adobe.com · 6 steps · unrated
Use the HubSpot CRM Imports API to bulk-import contacts from a CSV file with custom property mapping
developers.hubspot.com · 6 steps · unrated
Create and monitor a Salesforce Bulk API 2.0 ingest job for a large dataset
salesforce.com · 6 steps · unrated

Give your agent this knowledge — and 15,600+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans