LeadsAgent/ Documentation
Connectors
OverviewQuickstartAuthenticationAPI referenceMCPConnect ChatGPTConnect ClaudeCredits & limitsErrors & retriesConnect OpenCodeConnect Claude CodeConnect CodexConnect CursorConnect VS CodeConnect AntigravityConnect n8nAPI, MCP & plugins

API reference

Search, start tasks, run tools, follow progress and read saved leads.

Set up with your AI assistant

Paste the prompt into Claude Code. It includes setup steps and a read-only connection check.

Interactive referenceOpenAPI JSON

Endpoints

Paths are relative to https://leadsagent.io/api/v1. JSON responses use { request_id, status, data, meta }. Exports return a file. A signed download link needs no API-key header. Anyone holding it can download that list version for one hour; keep the link private.

MethodPathInputOutputScope or access
POST/findcategories, locations, max_research_leads, match?, enrich?, checks?Structured search task (202)leads:write
POST/tasksprompt, max_leads, idempotency_key?, allow_questions?Task (202)leads:write
GET/tasks/{id}—Task: status, steps, reply, question, lead_countleads:read
POST/tasks/{id}/messagesanswers[] or messageTaskleads:write
POST/tasks/{id}/cancel—Taskleads:write
GET/taskslimit, beforeTask summariesleads:read
GET/tasks/{id}/resultsfields, limit, cursor, has_email, has_website, has_phonerows, matching_count, next_cursorleads:read
GET/tasks/{id}/exportformat=csv|jsonEvery lead (file)leads:read
GET/downloads/{token}Signed token, format=csv|jsonOne saved list version (file)Signed link
GET/toolsquery?, limit (1–8)Tool names, inputs and output columnsAuthenticated credential
POST/tasks/{id}/tools/{tool}arguments, wait_seconds?Tool run (202)leads:write; list_tasks uses read
POST/tasks/{id}/share—Public share URLleads:write
GET/account—Credits left, limit, reset, rate limitsleads:read

Endpoint guides

  • POST Start a task
  • GET List tasks
  • GET Get a task
  • POST Reply to a task
  • POST Cancel a task
  • GET Read task results
  • GET Export results
  • GET Download results with a signed link
  • POST Find leads with structured inputs
  • GET Search tools
  • POST Run a tool
  • POST Share results
  • GET Read account limits

Task status

StatusMeaning
queuedAccepted, not started yet.
runningThe agent is working.
needs_inputThe agent asked a question. Answer with answers[].
completedDone. Read results or send a follow-up.
failedStopped with an error. Read error.code and error.message.
cancelledStopped on request.

Results

Default fields: business_name, category, address, phone, email, website, rating, reviews. Ask for more with fields (place_id, city, state, country, latitude, longitude, google_maps_url, verification_status, is_deliverable, linkedin, facebook, instagram, emails). Pages hold up to 1,000 rows; follow next_cursor. The export returns every lead.

Agent documentation indexOpenAPI JSONMarkdown quickstart