Postman OpenAPI

Lead411 API V3

V3 api documentation

Introduction

The Lead411 V3 API provides comprehensive access to B2B contact and company data, including employee information, company details, search capabilities, and suppression list management. This API enables developers to integrate Lead411's extensive business intelligence database into their applications.

Base URL: https://api.lead411.com/v3/

Download Postman Collection

Download OpenAPI 3.1 Spec

Authentication Overview

The API supports three authentication methods. Depending on your integration needs, you may authenticate using Username & Password, OAuth Authorization Code Flow, or an API Key.

Method 1. Username & Password Authentication

This method allows clients to obtain an Access Token and Refresh Token directly using user credentials.

Endpoint: POST {{URL}}/auth/login?email=<user-email>&password=<password>

Response: access_token, refresh_token, token_type, expires_in

Usage: Use the returned access_token in the Authorization header: Authorization: Bearer <access_token>

Method 2. OAuth Authorization Code Flow

This method enables users to authenticate via a redirect-based OAuth process.

Step 1: Get Auth Code → Validate username/password, Return authorization code
Step 2: Get Token → Exchange auth code, Return access token
Use Token in All API Calls → Authorization: Bearer {{token}}

Method 3. API Key Authentication

This method allows direct access to APIs using an API Key without user-specific tokens.

Endpoint: GET {{URL}}/getCustomerDetails

Headers: X-API-KEY: <your-api-key>

No additional token exchange is required. The API key grants direct access to the permitted resources.

Response Format

Success Response:

{
  "status": "success",
  "data": { /* Response data here */ }
}

Error Response:

{
  "status": "error",
  "message": "Error description",
  "error": "error_code"
}

Common HTTP Status Codes

  • 400 Bad Request - Invalid parameters or malformed request
  • 401 Unauthorized - Missing or invalid access token
  • 403 Forbidden - Insufficient permissions
  • 404 Not Found - Resource not found
  • 429 Too Many Requests - Rate limit exceeded
  • 500 Internal Server Error - Server error

Rate Limiting

The API implements rate limiting to ensure fair usage. If you exceed the rate limit, you'll receive a 429 Too Many Requests response. Implement exponential backoff in your retry logic.

MCP Configuration (includes Claude Desktop settings)

Lead411 with Claude Desktop (MCP Access)

Lead411 supports Model Context Protocol (MCP) for approved customers, allowing you to access Lead411 directly inside Claude Desktop using natural language.

Claude.ai (recommended): Use Custom Connector in the Claude.ai web app (OAuth, no config file). Step-by-step instructions are on the MCP Integrations tab. The prerequisites and JSON samples below are for the optional Claude Desktop app with mcp-remote.

Note: MCP access is restricted and must be enabled on your Lead411 account. If MCP access is not enabled, requests will return 401 Unauthorized.

Prerequisites

  • An active Lead411 account
  • MCP access enabled for your account
  • Claude Desktop installed (Download here)
  • Node.js installed (nodejs.org) – required for npx mcp-remote
  • mcp-remote – installed automatically via npx when Claude Desktop connects; no manual install needed if using the config samples below

Installation note: The config uses npx mcp-remote, which downloads and runs mcp-remote on first connect. Ensure Node.js is installed. Alternatively, install mcp-remote globally: npm install -g mcp-remote and use "command": "mcp-remote" in the config args.

Configure Claude Desktop

Step 1: Locate Claude Desktop config file

macOS

~/Library/Application Support/Claude/claude_desktop_config.json

Windows

%APPDATA%\Claude\claude_desktop_config.json

Step 2: Add Lead411 MCP server

Add one of the configurations from the right panel and restart Claude Desktop. Choose the config that matches your chosen authentication method. See MCP Authorizations for details on each method.

Getting Started – Example Prompts

  • Login: Log me into Lead411 using my email and password
  • Get employee by email: Get employee information for example@lead411.io
  • Search employees: Find CEOs at SaaS companies in California who have direct phone numbers
  • Get company info: Get company information for company ID 134001
  • Check quota: Show my available Lead411 unlock quota
  • Unlock record: Unlock the employee record with ID 1234

Authorization Errors

If your account does not have permission to access MCP, the API will return HTTP 401 Unauthorized. Contact Lead411 Support to enable MCP access.

Notes

  • MCP access is permission-based and audited
  • All actions are tied to your Lead411 account
  • Abuse may result in MCP access being revoked

MCP Authorizations

Lead411 MCP supports three authentication methods. Choose the one that best fits your use case.

Option 1: API Key (X-API-KEY header)

The simplest option. Pass your API key via the X-API-KEY header. Use configuration sample 1 in the MCP Configuration section. Set LEAD411_API_KEY in the env block to your API key. No login prompts required.

Option 2: Email & Password Login

Authenticate using your Lead411 credentials through Claude prompts.

Example Prompt:

Log me into Lead411 using my email and password

Use configuration sample 2 in the MCP Configuration section.

Option 3: OAuth Authorization Code Flow

Recommended for enterprise or SSO-based access. Claude will guide you through the authorization process.

Step 1 – Start OAuth flow:

Start the OAuth login process for Lead411

Claude will return an authorization URL. Open the link in your browser and complete authentication.

Step 2 – Exchange code:

Exchange this authorization code for an access token: <PASTE_CODE_HERE>

Once completed, Claude will store the access token and all subsequent MCP requests will be authenticated automatically.

Use configuration sample 2 in the MCP Configuration section.

Downloads

OpenAPI 3.1: openapi.yaml · openapi.json

Postman: Lead411 V3.postman_collection.json

Lead411 MCP

Access Lead411's comprehensive B2B contact and company data through the Model Context Protocol (MCP)—a standardized interface for AI assistants and applications.

Overview

The Lead411 MCP Server is a Model Context Protocol server that enables AI assistants and applications to access Lead411's B2B contact and company database. By integrating this server with your AI tools, you can provide them with accurate contact information, company details, search capabilities, and enrichment workflows directly in chat interfaces.

The server exposes tools for lead search, company intelligence, employee lookup, quota management, and suppression list handling. Authentication is stateless via headers (X-API-KEY or Authorization: Bearer).

Features

Lead Search

Search for contacts and companies with filters (title, industry, location, technology stack). Find decision makers at target accounts. Supports pagination and multiple search modes.

Company Intelligence

Access detailed company information including firmographics, technology usage, news, and job postings. List employees at any company.

Employee Lookup

Get contact information by employee ID, email, or name. Unlock full details (direct phone, email, LinkedIn). Export to CRM.

Quota Management

Check remaining unlock credits and usage statistics. Manage your Lead411 account programmatically.

AI Integration

Works with Claude Desktop, Cursor, n8n, ChatGPT, and other MCP-compatible AI assistants. Natural language interface.

Real-time Data Access

Connect to Lead411's live API. No caching delays. Fresh contact and company data on every request.

Architecture

The Lead411 MCP system consists of four main components:

  • MCP Server: FastMCP-based server that exposes tools and handles MCP protocol.
  • Lead411 API Backend: Laravel REST API at https://api.lead411.com/v3/. All tool calls proxy to this backend.
  • AI Client: Claude Desktop, Cursor, ChatGPT, or any MCP-compatible client. Sends tool calls and receives responses.
  • Transport Layer: End users connect to Lead411’s hosted MCP endpoint (e.g. https://mcp.lead411.com/mcp).
  • Hosted (typical): https://mcp.lead411.com/mcp — use this from Cursor, ChatGPT MCP, or automation tools with API key / Bearer headers.
  • Claude.ai Custom Connector: use the MCP app URL provided for your account (often https://mcp.lead411.com/mcp or as documented for OAuth). See the Integrations tab.
  • Claude Desktop (optional): some setups use mcp-remote pointed at the hosted URL; see optional configuration on the Integrations tab.

Authentication

Lead411 MCP supports three authentication methods:

  • API key authentication: Pass X-API-KEY: <your-api-key> in request headers. Simplest option; no login prompts.
  • OAuth authentication: Use start_oauth_flow to get auth URL, then exchange_oauth_code with the code. Client stores and passes Authorization: Bearer <token>.
  • Session authentication: Use direct_login with email/password to get access and refresh tokens. Pass Authorization: Bearer <access_token>. Use refresh_access_token when tokens expire.

Quick Start

Use Lead411’s hosted MCP endpoint. No server download or local Python setup is required for end users.

  • Production: https://mcp.lead411.com/mcp
  • Claude.ai: add Lead411 as a Custom Connector with Lead411’s MCP app URL (see MCP Integrations — Claude Desktop for step-by-step OAuth instructions).

Connection examples

Claude (recommended): In Claude.ai go to Settings → Connector, choose Add Custom Connector, then connect with OAuth using your Lead411 credentials. Full walkthrough: click here for integration steps.

Optional — Claude Desktop app: Advanced users can use a manual claude_desktop_config.json entry with mcp-remote; see Optional: configuration file on the Integrations tab.

Cursor: Settings → MCP → add server URL https://mcp.lead411.com/mcp with X-API-KEY or Bearer token.

ChatGPT MCP: MCP server URL https://mcp.lead411.com/mcp and header X-API-KEY: YOUR_API_KEY (or Bearer token).

Available Tools

Key tools with input/output schemas:

get_customer_details

Description: Get the authenticated Lead411 user's account details (plan, credits, contact info).

Input schema: None (auth from headers)

Output: Account object with email, plan, quota, etc.

Example: Called automatically when client connects with valid auth.

Search-Employee-or-Company-data

Description: Search for contacts and companies. Auto-detects search type from parameters.

Input schema: company_name, employee_name, title_keyword, country_code, page, per_page, etc.

Output: Paginated list of employees/companies with IDs and basic info.

Example: {"company_name":"Acme","title_keyword":"CEO","country_code":"US"}

get_company_info

Description: Get company details by company_id, website, or LinkedIn URL.

Input schema: company_id (optional), website (optional), linkedin (optional) — at least one required.

Output: Company object with name, industry, employees, etc.

Example: {"company_id":"1743"} or {"website":"https://example.com"}

get_employee_information

Description: Get contact info for a Lead411 person. Provide employee_id, email, or name.

Input schema: employee_id (optional), email (optional), name (optional) — at least one required.

Output: Employee object with contact details (may be partial until unlocked).

Example: {"email":"john@example.com"}

Tool NameCategoryDescription
direct_loginAuthAuthenticate with email and password.
refresh_access_tokenAuthRefresh access token.
api_key_loginAuthValidate API key.
Search-Employee-or-Company-dataSearchSearch contacts and companies.
get_customer_detailsCustomerGet account details.
get_employee_informationEmployeeGet contact info.
get_company_infoCompanyGet company details.
unlock_employee_recordEmployeeUnlock full contact details (1 credit).
...and 27 more tools. See MCP Integrations tab for connection details.

Tool Categories

  • Data Retrieval: get_customer_details, get_company_info, get_employee_information, get_company_employees, get_company_technology_stack, get_company_news, get_company_jobs.
  • Search Tools: Search-Employee-or-Company-data, search_employees_json, search_employees_query, search_title_data, search_technology_data, search_industry_linkedin_keywords, get_search_sortby_options.
  • Account Tools: direct_login, api_key_login, refresh_access_token, start_oauth_flow, exchange_oauth_code, check_session, logout, get_customer_unlock_quota, get_customer_unlock_stats.

Example Usage

Here's how you might interact with the Lead411 MCP Server through an AI assistant:

User: "Find CEOs at SaaS companies in California who have direct phone numbers"

AI: [Uses Lead411 MCP search tool]

I found 12 CEOs matching your criteria:
1. Jane Smith - TechVision Inc.
   * 85 employees, San Francisco
   * Direct phone available
2. John Doe - DataFlow Systems
   * 120 employees, Los Angeles
   * Direct phone available
[...]

User: "Get my remaining unlock quota"

AI: [Calls get_customer_unlock_quota]

Implementation Options

MethodBest ForKey Benefits
Claude.ai Custom ConnectorMost Claude usersOAuth sign-in, no config files, Lead411 hosted MCP
Hosted MCP URLCursor, ChatGPT, API key flowsNo install; headers only
Enterprise / customLarge teamsCustom domain, SSO, audit (contact Lead411)

Platform Integrations

Connect Lead411 MCP with your favorite platforms:

Claude Desktop Cursor IDE ChatGPT n8n Custom MCP clients

See the MCP Integrations tab for setup instructions.

Security Model

Authentication and access control:

  • All requests require either X-API-KEY or Authorization: Bearer (except login/oauth tools).
  • Tokens are validated against the Lead411 API. Invalid or expired tokens return 401.
  • MCP access is account-based; actions are tied to the authenticated user's subscription.
  • Store API keys in environment variables or platform secrets—never in code.

Rate Limits

Lead411 API enforces rate limits based on your subscription plan. Typical limits:

  • Search: Varies by plan (e.g., 100–500 requests/minute).
  • Unlocks: Limited by your unlock quota. Each unlock_employee_record consumes 1 credit.
  • 429 Too Many Requests: Returned when limits are exceeded. Implement exponential backoff.

Error Handling

Common errors and responses:

  • 401 Unauthorized: Missing or invalid auth. Check X-API-KEY or Bearer token.
  • 403 Forbidden: MCP access not enabled for your account. Contact Lead411.
  • 429 Too Many Requests: Rate limit exceeded. Wait and retry with backoff.
  • 400 Bad Request: Invalid parameters. Check tool input schema.
  • Tool responses include success, message, and data fields. Inspect for detailed error info.

Best Practices

  • Use API key auth when possible—simplest and most reliable.
  • Run search first, then get_employee_information or unlock_employee_record with returned IDs.
  • Cache autocomplete results (titles, industries, tech) when building UIs; they change infrequently.
  • Implement retry logic with exponential backoff for 429 and 5xx responses.
  • Prefer get_company_info by company_id when you have it—faster than website/LinkedIn lookup.

Additional Resources

Next Steps

  1. Get your Lead411 API key from your account dashboard.
  2. Choose an integration: Claude Desktop, Cursor, ChatGPT, or Custom MCP Client.
  3. Configure the MCP server with your API key or login credentials.
  4. Start asking your AI assistant to search contacts, get company info, and unlock records.

MCP Integrations

Connect Lead411 MCP with your favorite platforms and tools to access B2B contact and company data wherever you work.

Overview

Lead411 MCP integrations allow you to seamlessly incorporate Lead411 data into your existing workflows. Whether you're building automation pipelines, enhancing AI applications, or connecting to no-code platforms, we provide ready-to-use integrations that get you up and running in minutes.

Claude Desktop Integration

Overview

You can use Lead411 MCP with Claude in two ways: the recommended path is Claude.ai Custom Connector (hosted OAuth—no configuration file, no local server). You sign in with your Lead411 credentials through Lead411’s login page; Claude handles tokens securely. Alternatively, advanced users may use the Claude Desktop app with a manual claude_desktop_config.json and mcp-remote (see below).

Custom connector (Claude.ai) — recommended

Follow these steps to authenticate and connect Lead411 MCP via OAuth in the Claude.ai web app (Settings → Connector).

Add ConnectorConnectClaude loginLead411 loginConnected

Before you start

  • A valid Claude.ai account (free or paid)
  • Your Lead411 login credentials (username and password)
  • Lead411’s MCP connector name and server URL (e.g. https://mcp.lead411.com/mcp — use the exact URL provided for your account)
1
Step 1

Open Claude integrations

Go to Claude.ai → Settings → Connector. Click Add Custom Connector or Browse Connectors to open the connector setup form. (The UI may differ slightly—use the example that matches your screen.)

Add Custom Connectors

Go to Settings → Connector. Click Add Custom Connector to open the connector setup form.

Claude Settings → Connector, Add Custom Connector (example A)

Enter name and URL

Fill in the Name (e.g. “Lead411 MCP”) and paste the full Lead411 MCP app URL. Click Save. (The form layout may differ—use the example that matches your screen.)

Tip: The URL must include the full protocol, e.g. https://mcp.lead411.com/mcp. Check for typos before saving.

Connector form with Name and URL (example A)

Browse Connectors

Go to Settings → Connector. Click Browse Connectors to search the lead411 connector.

Lead411 Connector is not live as of now but once it is available then you can follow these Browse Connector step.

Type in the Name (e.g. “Lead411”) to search Lead411 MCP app . Click + icon to add the Connector.

3
Step 2

Click Connect

After saving, your connector appears in the list. Click Connect next to it to start the OAuth 2.0 flow (you may be redirected to Claude.ai).

Placeholder: Connect button on saved connector
4
Step 3

Sign in to Claude.ai (if prompted)

If you are not already signed in, complete the Claude.ai login. If you are already logged in, this step is skipped.

Placeholder: Claude.ai login screen
5
Step 4

Sign in on Lead411’s OAuth page

Claude redirects you to Lead411’s login page. Enter your Lead411 username and password, then submit. Use the same credentials as for the Lead411 web app.

Security: Credentials are sent directly to Lead411’s servers—not to Claude or Anthropic. The login page is hosted by Lead411.
Placeholder: Lead411 OAuth login
6
Step 5

Token exchange (automatic)

After successful login, Lead411 returns an authorization code. Claude validates it and exchanges it for an access token in the background. No action required—wait briefly.

Placeholder: Processing / token exchange
7
Done

Connection confirmed

When the connector shows Connected (green status), Lead411 MCP tools are available in Claude conversations.

Tip: Disconnect or reconnect anytime from Settings → Connector (wording may vary slightly in the Claude.ai UI).
Placeholder: Connected status badge

Summary of the OAuth 2.0 authorization-code flow for this connector:

#StageWhat happens
1User clicks ConnectClaude starts an OAuth request to Lead411’s MCP authorize endpoint.
2Claude.ai loginIf needed, user signs in to Claude.ai.
3Redirect to Lead411 loginBrowser opens Lead411’s OAuth / login page.
4User authenticatesLead411 verifies username and password.
5Code issuedLead411 returns a short-lived authorization code to Claude’s callback URL.
6Token exchangeClaude sends the code to Lead411’s token endpoint; Lead411 returns an access token (and optionally refresh token).
7ConnectedClaude stores the token and marks the connector active; MCP tools are available.
Redirect loop / login keeps reappearing

The authorization code may have expired. Open Settings → Integrations and click Connect again.

“Invalid redirect URI”

The callback URL must match exactly what Lead411 registered (including trailing slashes). Contact your admin if needed.

Connector stuck on “Connecting”

Token exchange may have timed out. Try disconnecting and connecting again; if it persists, contact Lead411 support with the time of the attempt.

Connected but no tools

Try reconnecting the connector. If tools still do not appear, contact Lead411 support—hosted MCP availability can depend on your account setup.

Access denied on Lead411 login

Verify username and password; complete MFA if enabled.

Network error

Check connectivity; use VPN if required by your organization.

Need more help?

Contact Lead411 support with the step where you stopped and any error message shown.

Example usage (Custom Connector)

After connecting, try: “Find CEOs at technology companies in New York” or “Get company info for lead411.com”.

Optional: Claude Desktop app — configuration file

Some teams use the Claude Desktop application with a local JSON config and npx mcp-remote. This is optional if you already use Custom Connector on Claude.ai.

Configuration JSON

Option 1 — API key:

{
  "mcpServers": {
    "lead411": {
      "command": "npx",
      "args": ["mcp-remote", "https://mcp.lead411.com", "--allow-https", "--header", "X-API-KEY:YOUR_API_KEY"]
    }
  }
}

Option 2 — Without API key (login via prompts after connect):

{
  "mcpServers": {
    "lead411": {
      "command": "npx",
      "args": ["mcp-remote", "https://mcp.lead411.com", "--allow-https"]
    }
  }
}

Steps

  1. Locate config file: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows).
  2. Add the lead411 entry under mcpServers.
  3. Replace YOUR_API_KEY with your Lead411 API key when using Option 1.
  4. Restart Claude Desktop.

Example usage

Same natural-language prompts as with Claude.ai once tools are connected.

Cursor Integration

Overview

Cursor IDE supports MCP servers for AI-powered coding. Add Lead411 to enrich code context with real-time B2B data, company research, and contact lookup.

Configuration

In Cursor: Settings → MCP → Add new server.

Server URL: https://mcp.lead411.com/mcp
Headers: X-API-KEY: YOUR_API_KEY
  (or Authorization: Bearer YOUR_TOKEN)

Steps

  1. Open Cursor Settings (Cmd/Ctrl + ,).
  2. Go to MCP section.
  3. Add server with URL https://mcp.lead411.com/mcp.
  4. Add header X-API-KEY or Authorization: Bearer with your credential.
  5. Save and reconnect.

Example Usage

Ask Cursor: "Search for VPs of Sales at companies using Salesforce in California" or "Get employee details for john@example.com".

ChatGPT Integration

Overview

ChatGPT supports MCP via custom GPTs or the MCP integration panel. Connect Lead411 to enable contact search, company intelligence, and unlock workflows in ChatGPT conversations.

Configuration

In ChatGPT MCP settings (or Custom GPT configuration):

MCP Server URL: https://mcp.lead411.com/mcp
Authentication: Add header
  X-API-KEY: YOUR_API_KEY
  or
  Authorization: Bearer YOUR_ACCESS_TOKEN

Steps

  1. Open ChatGPT and go to MCP / Integrations settings.
  2. Add Lead411 MCP server.
  3. Set URL to https://mcp.lead411.com/mcp.
  4. Configure authentication header (X-API-KEY or Bearer token).

Example Usage

Prompt: "Search for marketing directors at B2B SaaS companies with 50–200 employees".

Custom MCP Client Integration

Overview

Any MCP-compatible client can connect to Lead411.Ideal for custom AI agents, chatbots, or automation pipelines.

Configuration

Connect to:

Production: https://mcp.lead411.com/mcp

Required headers: X-API-KEY: YOUR_API_KEY or Authorization: Bearer YOUR_TOKEN

Steps

  1. Implement MCP client (or use SDK) with streamable HTTP support.
  2. Connect to https://mcp.lead411.com/mcp.
  3. Send Authorization header with API key or Bearer token.
  4. Call tools via MCP protocol (e.g., tools/call).

Example Usage

// Pseudocode: call get_customer_details
mcp_client.call_tool("get_customer_details", {});
// Response: { success: true, data: { email, plan, ... } }