Export a filtered set of Marketo leads in bulk using the Bulk Lead Extract REST API

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

Steps

  1. Obtain an OAuth 2.0 access token via the Marketo identity endpoint and pass it as an Authorization: Bearer header on all subsequent requests — do not use the access_token query parameter, which is scheduled for removal.
  2. Create the export job by sending POST /bulk/v1/leads/export/create.json with a JSON body specifying the fields array, the format (CSV, TSV, or SSV), optional columnHeaderNames, and exactly one filter — e.g., {"createdAt": {"startAt": "...", "endAt": "..."}} — covering a range of 31 days or fewer.
  3. Enqueue the job by sending POST /bulk/v1/leads/export/{exportId}/enqueue.json using the exportId returned in the create response; the job status will move to Queued and then Processing.
  4. Poll job status with GET /bulk/v1/leads/export/{exportId}/status.json no more than once per minute until status returns Completed; the job queue holds a maximum of 10 jobs and runs at most 2 concurrently.
  5. Download the file with GET /bulk/v1/leads/export/{exportId}/file.json; use an HTTP Range header to support resumable partial downloads if the file is large.
  6. If the job is no longer needed, cancel it with POST /bulk/v1/leads/export/{exportId}/cancel.json to free the queue slot.

Known gotchas

Related routes

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
marketo.com · 5 steps · unrated
Run a Salesforce Bulk API 2.0 query job to extract all records from a large object with relationship fields, then download the results CSV in parts
salesforce.com · 5 steps · unrated
Run a Shopify GraphQL Admin API bulk operation to export all products for large catalog processing
shopify.com · 6 steps · unrated

Give your agent this knowledge — and 15,500+ 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