Request research and inspect the result
For REST access, use an eligible Business account with verified email and keep your API key on the server. Read the live manifest before integrating: source-specific inputs and credit policies can change independently of an agent library.
For a small Maps request, POST /api/v1/leads/generate with source google_maps, category dentist, country GB, city London and maxResults 5. These are illustrative inputs, not an executed search. Send Authorization: Bearer YOUR_SERVER_SIDE_KEY and a unique Idempotency-Key for the intended job. State is a region or location name, not the country code.
Illustrative request body: {"source": "google_maps", "category": "dentist", "country": "GB", "city": "London", "maxResults": 5}. An illustrative pending response contains {"jobId": "JOB_ID", "pollUrl": "/api/v1/leads/jobs/JOB_ID"}. These placeholders demonstrate the flow, not a complete response schema or an executed request.
A completed request can return synchronously; HTTP 202 means research is still pending. Follow the returned pollUrl on the canonical Margo host with the same account credentials. Poll the same job with bounded waits; do not buy another search just to check progress. Reconcile identical inputs with their original idempotency key after a timeout.
Read terminal.status and deliveredCount before using records. COMPLETE means the job completed, PARTIAL means incomplete delivery, EMPTY means no delivered records, and FAILED or CANCELLED is not a successful result. QUEUED and RUNNING are pending. Empty delivery does not prove that no suitable businesses exist.
Email, phone, website and social fields can be null. Discovery is separate from explicitly approved email verification on eligible delivered leads. A verification result does not prove identity, buying intent or permission to contact someone.
Test the data before wiring the API
Start with the free tier to test lead quality in one niche and city. API access is available on the Business plan when you are ready to connect Margo to an agent, workflow, or backend service.
Connect supported MCP clients through the remote Margo server with OAuth account linking. Developers can also inspect /api/v1/skill and use the REST API with a securely stored API key.
Why Margo works for agents
Claude Code, ChatGPT and Codex
Use Margo MCP to check source capabilities and credits, start research, poll results, and cancel a running job. Custom-connection availability depends on the client and workspace.
Standard REST API
POST /api/v1/leads/generate with source, category, country, city or state, and maxResults. Use Bearer authentication and a stable Idempotency-Key; longer searches return a job to poll.
Skill manifest
GET /api/v1/skill returns a machine-readable manifest for tool discovery and registration.
Workflow automation
Use the REST API in n8n HTTP Request nodes or your own HTTP tools for repeatable searches and downstream routing.
Structured prospect evidence
Review business details, websites, contacts, social links and review fields where available. Read limitations and constraint coverage; a requested field is not guaranteed.
A useful selling decision
Let your agent compare observable fit, explain missing evidence and suggest what to verify next. Research alone does not establish buying intent, budget, authority or timing.
Frequently asked questions
Can an AI agent call Margo directly?
Yes. Connect an MCP client to Margo with OAuth, or call the REST API with an API key. REST requires Business access and a verified Margo email. The live manifest lists Professional and Business MCP eligibility; check your client and account requirements.
Which agents can I connect?
The setup guide covers Claude Code, Codex and ChatGPT custom MCP connections. Client features and workspace permissions determine which connections are available to you.
What data does the API return?
Structured business data including name, email, phone, website, address, social links, review score, and verification status where available.