Identify website visitors, search companies and contacts, and manage lists, tags and campaigns through the Leadfeeder (Dealfront) API.
Leadfeeder ships in the w6w first-party pack. It declares 24 actions, 3 health checks, and the host runs its code in a sandbox that never sees the credential.
io.w6w.leadfeederLeadfeeder, now part of Dealfront, identifies the companies visiting your website and pairs that with a global company and contact database. This app connects a workflow to the current Leadfeeder API (/v1) with a personal API key.
A workflow can list accounts and read their credit balance, list the companies that visited the site in a date range or read individual visits, and read custom feeds and campaigns. It can search and match companies, fetch a company or its financial reports, search and read contacts, resolve an IP address to the company behind it, and organise results by creating and deleting lists, adding companies and contacts to lists, creating tags and assigning them to companies.
The documentation at docs.leadfeeder.com/api describes the legacy API, which no longer issues keys; this app targets the current one. Search, match and financials calls consume credits. Health checks track the Leadfeeder API component of the vendor’s status page, API reachability and the key.
Three routes to the same 24 actions. The Workflow tab is generated from Leadfeeder's own manifest and carries its real ids, so it is copy-pasteable; the Code and CLI examples are the same call for any action on any app, so every app-specific value in them is a blank you fill in.
account-list List the Leadfeeder accounts the key can access, or fetch one account with its credit balance when an account id is given.
campaign-list List advertising campaigns, optionally with summary metrics, settings, locations, list and feed inlined.
company-financials Fetch the financial reports for a company. Consumes credits.
company-get Fetch one company by id, optionally with tags, lists, web visits, ICP matches or CRM links inlined.
company-match Match company records you hold (name, URL, VAT id, address…) against the Leadfeeder database. Consumes credits.
company-search Search the global company database by terms, industry, revenue, location or ICP. Consumes credits (see `meta.credits.charged`); cursor-paged.
contact-get Fetch one contact by id, optionally with its company, lists or buyer personas inlined.
contact-search Search the contact database by name/title terms, email, company, department or persona. Consumes credits; cursor-paged.
custom-feed-list List the saved website-visitor feeds (custom feeds) of an account.
list-items Page through the companies or contacts in a list (ids and types only; fetch details with Get Company / Get Contact).
user-get Return the identity of the API key owner (email, name, role). Needs no account id.
visitor-company-list List the companies that visited your website in a date range, optionally through a custom feed.
web-visit-search List individual website visits in a date range, optionally for one company or location.
A workflow step names the app and the action, and the editor fills in the
connection when you pick one. This is the Step shape from the
workflow spec, carrying Leadfeeder's real ids.
{
"manifestVersion": "2",
"name": "leadfeeder-example",
"steps": [
{
"id": "campaign-list",
"uses": {
"app": "io.w6w.leadfeeder",
"action": "campaign-list",
"connection": "conn_YOUR_CONNECTION_ID"
},
"with": {
"accountId": "<accountId>"
}
}
]
}campaign-list account-list company-financials company-get company-list-add +19 more actions available
Every app-specific value here is a blank you have to fill in. An
app action is reached through the connection that authenticates it, so the
address is a connection id, not the app id — and connections belong to your account,
so a public page cannot know yours. Create one for Leadfeeder, then fill in
the three blanks: conn_YOUR_CONNECTION_ID, the action key, and the
parameters that action declares. The call itself is real — the shape is transcribed
from the studio's own snippet builder, which prints the same kind of blanks — but
nothing in it is specific to Leadfeeder. The Workflow tab is where this app's
real ids are.
npm install @w6w/sdkyarn add @w6w/sdkpnpm add @w6w/sdkdeno add npm:@w6w/sdkimport { W6wClient, isActionRun } from "@w6w/sdk";
// Reads W6W_BASE_URL and W6W_TOKEN from the environment when omitted.
const client = new W6wClient();
const envelope = await client.run({
urn: "conn_YOUR_CONNECTION_ID",
action: "campaign-list",
payload: {
accountId: "<value>",
// include: "<value>",
// page: "<value>",
// pageSize: "<value>",
},
});
if (isActionRun(envelope)) console.log(envelope.value); npm install -g @w6w/cli w6w run conn_YOUR_CONNECTION_ID --action campaign-list --payload '{"accountId":"<value>"}' Give an AI agent Leadfeeder — without giving it Leadfeeder's credentials. One MCP endpoint exposes every app, function and workflow the caller is entitled to, as tools it can discover and run. Access is granted per team while we onboard.
One tool call{
"name": "w6w_invoke",
"arguments": {
"ref": "app:io.w6w.leadfeeder#campaign-list",
"input": {
"accountId": "<accountId>"
}
}
}
Every tool names its target with a single ref. The
app: form above doesn't name a connection at all — the
host resolves which of the caller's Leadfeeder connections to sign
with, and refuses rather than guesses when the answer is ambiguous.
The token is attached host-side, at the moment of the call. It is never a tool argument, never in the model's context, and never in a transcript — so a prompt injection has nothing to exfiltrate.
Tools are derived per end user from what that person has actually connected and is entitled to — not one shared bot identity carrying the union of everyone's access.
Multi-step work runs on the workflow engine and returns a run handle the agent can poll — retries, branching and state survive the conversation that started them.
Leadfeeder's declared health checks are on the surface too, so an agent can tell "the vendor is down" from "your credential expired" before it burns a retry on either.
The MCP surface is part of the hosted platform. Leadfeeder itself is MIT, and the runtime that executes it is source-available (FSL).
Leadfeeder declares its own checks, so its health is a property of the app rather than something the host guesses at.
The `Leadfeeder API` component of status.leadfeeder.com.
Unauthenticated GET /v1/users/me. Leadfeeder's JSON `errors` envelope (missing_token) passes: it proves the application is answering.