# Margo + Make Integration - Automate Lead Generation | Margo

> Connect Margo to Make to automate local business lead searches and route results to your tools.

Canonical: https://www.margoleads.io/integrations/make

## Margo + Make: Automate local business lead generation end-to-end

Make gives teams a visual way to build multi-step lead workflows. Connect Margo to Make to discover local business records with available contact fields, filter them, enrich them, and push them to your CRM, spreadsheet, outreach tool, or Slack.

### Scenario ideas

#### Weekly lead refresh

Schedule Make to call Margo for each client category and city every Monday.

#### Review score gating

Filter for 4+ star businesses before leads continue to your outreach tool.

#### Multi-client routing

Route batches to the correct client CRM or sheet based on client ID.

#### Duplicate prevention

Check your CRM before adding new leads so existing prospects are skipped.

#### Lead notifications

Post a Slack message when Margo finds leads matching a saved search.

### Setup overview

Generate a new Idempotency-Key for each new logical search and keep it for retries of that same search. Keep automatic POST retries disabled until you have confirmed the governed handler is active: the compatibility handler does not honor idempotency. After an uncertain POST result, inspect the existing job before submitting again. GET polling must not create a new search.

In Make, create a new scenario.

Add an HTTP module with POST https://www.margoleads.io/api/v1/leads/generate.

Store Authorization: Bearer YOUR_API_KEY in a secure connection. API access requires an eligible Business account with verified email and available quota.

Set Content-Type: application/json and use source, category, country, state and maxResults. Start with the ten-record example below.

Include the response status and headers. For HTTP 202 or QUEUED/RUNNING, wait and GET the returned pollUrl with the same Bearer credential. Accept only https://www.margoleads.io/api/v1/leads/jobs/ destinations; disable redirects.

Stop after at most 60 polls. Honor Retry-After when present. Stop for review on 400, 401, 403, 409, 429, server errors, failed/cancelled jobs and unknown responses; never treat an HTTP 200 failed job as success.

Read terminal.status and deliveredCount. Synchronous records are in leads; completed job records are in job.result.leads. PARTIAL and EMPTY are explicit outcomes. Use an Iterator on the delivered array only after checking limitations and constraintCoverage.

Review identity and contact availability before a separate CRM or spreadsheet step. This example does not send outreach.

```
POST https://www.margoleads.io/api/v1/leads/generate
Authorization: Bearer <MARGO_API_KEY>
Content-Type: application/json
Idempotency-Key: make-london-dentists-20261016-run1

{"source":"google_maps","category":"dentist","country":"GB","state":"London","maxResults":10}
```

### Does Margo have a native Make app?

Not yet. The current connection uses Make's HTTP module, which works well with Margo's REST API.

### How many Margo API calls can I make in Make?

Rate limits depend on your Margo plan. The Business plan is designed for higher-volume automation.

### How does Make handle asynchronous results?

Poll a pending job using its returned pollUrl until it reaches a terminal state. An Iterator processes the delivered leads array; it does not perform pagination or wait for a pending job.

[Zapier integration](https://www.margoleads.io/integrations/zapier)

[n8n integration](https://www.margoleads.io/integrations/n8n)

[Agency workflows](https://www.margoleads.io/use-cases/agencies)
