API Reference
The LeadSleuth public API gives read-only access to your leads, dossiers and ICPs. All endpoints return JSON over HTTPS. Base URL: https://leads.zalize.com/api/v1
Authentication
Pass your API key as a Bearer token. Create keys in Settings → API — each key is read-only, scoped to your own data, and its plaintext is shown exactly once at creation.
curl https://leads.zalize.com/api/v1/leads \
-H "Authorization: Bearer lsk_your_api_key"
Rate limits
Each key may make up to 60 requests per minute. Exceeding the limit returns HTTP 429 with a Retry-After header.
GET /api/v1/leads
List your leads, newest first. Optional query parameters:
status — new, contacted, replied or not_fit
min_intent — integer 0–100
page and per_page — pagination (per_page max 100, default 50)
curl "https://leads.zalize.com/api/v1/leads?status=new&min_intent=70" \
-H "Authorization: Bearer lsk_your_api_key"
{
"data": [
{
"id": "…", "person_name": "…", "handle": "…",
"platform": "reddit", "signal_url": "…", "signal_quote": "…",
"signal_type": "ask_reco", "intent_score": 82, "fit_score": 74,
"status": "new", "created_at": "2026-08-01T10:00:00Z"
}
],
"pagination": { "page": 1, "per_page": 50, "total": 1, "total_pages": 1 }
}
GET /api/v1/leads/:id
Fetch a single lead, including its latest dossier (identity, career, ICP match, contact paths) when one exists.
curl https://leads.zalize.com/api/v1/leads/LEAD_ID \
-H "Authorization: Bearer lsk_your_api_key"
GET /api/v1/icps
List your ICP profiles with parsed criteria, keywords and competitors.
curl https://leads.zalize.com/api/v1/icps \
-H "Authorization: Bearer lsk_your_api_key"
Errors
All errors share one JSON shape with a machine-readable code and a human-readable message:
{ "error": { "code": "rate_limited", "message": "Rate limit of 60 requests/minute exceeded." } }
401 unauthorized — missing, invalid or revoked key
400 invalid_status / invalid_min_intent — bad query parameter
404 not_found — unknown resource or endpoint
429 rate_limited — rate limit exceeded
Managing keys
Create, name and revoke keys — and see when each was last used — in Settings → API. Revoked keys stop working immediately.
MCP server
LeadSleuth exposes its signal layer to AI agents via the Model Context Protocol (Streamable HTTP transport). Authentication uses the same read-only Bearer API keys, and the endpoint shares the 60 req/min per-key rate limit with the REST API.
Endpoint: https://leads.zalize.com/api/mcp
Available tools (all read-only, scoped to your own data):
list_leads — list leads with optional status, min_intent, page, per_page filters
get_lead — a single lead by id, including its latest dossier
list_icps — your ICP profiles with parsed criteria
search_signals — keyword search over signal quotes, names and handles
Claude Desktop / Claude Code — add to claude_desktop_config.json (via mcp-remote for clients without native remote support):
{
"mcpServers": {
"leadsleuth": {
"command": "npx",
"args": ["mcp-remote", "https://leads.zalize.com/api/mcp",
"--header", "Authorization: Bearer lsk_your_api_key"]
}
}
}
Cursor and other clients with native Streamable HTTP support — add to .cursor/mcp.json:
{
"mcpServers": {
"leadsleuth": {
"url": "https://leads.zalize.com/api/mcp",
"headers": { "Authorization": "Bearer lsk_your_api_key" }
}
}
}
API 参考
LeadSleuth 公开 API 提供对你的线索、尽调档案和 ICP 的只读访问。所有端点通过 HTTPS 返回 JSON。基础 URL:https://leads.zalize.com/api/v1
认证
将 API 密钥作为 Bearer token 传入。在设置 → API 中创建密钥——每个密钥均为只读、仅限访问你自己的数据,明文仅在创建时显示一次。
curl https://leads.zalize.com/api/v1/leads \
-H "Authorization: Bearer lsk_your_api_key"
速率限制
每个密钥每分钟最多 60 次请求。超出限制返回 HTTP 429 及 Retry-After 头。
GET /api/v1/leads
列出你的线索(最新在前)。可选查询参数:
status — new、contacted、replied 或 not_fit
min_intent — 0–100 的整数
page 与 per_page — 分页(per_page 最大 100,默认 50)
curl "https://leads.zalize.com/api/v1/leads?status=new&min_intent=70" \
-H "Authorization: Bearer lsk_your_api_key"
{
"data": [
{
"id": "…", "person_name": "…", "handle": "…",
"platform": "reddit", "signal_url": "…", "signal_quote": "…",
"signal_type": "ask_reco", "intent_score": 82, "fit_score": 74,
"status": "new", "created_at": "2026-08-01T10:00:00Z"
}
],
"pagination": { "page": 1, "per_page": 50, "total": 1, "total_pages": 1 }
}
GET /api/v1/leads/:id
获取单条线索,包含其最新尽调档案(身份、履历、ICP 匹配、触达路径,如存在)。
curl https://leads.zalize.com/api/v1/leads/LEAD_ID \
-H "Authorization: Bearer lsk_your_api_key"
GET /api/v1/icps
列出你的 ICP 画像,含解析后的条件、关键词与竞品。
curl https://leads.zalize.com/api/v1/icps \
-H "Authorization: Bearer lsk_your_api_key"
错误
所有错误共用一种 JSON 结构:机器可读的 code 与人类可读的 message:
{ "error": { "code": "rate_limited", "message": "Rate limit of 60 requests/minute exceeded." } }
401 unauthorized — 密钥缺失、无效或已撤销
400 invalid_status / invalid_min_intent — 查询参数不合法
404 not_found — 资源或端点不存在
429 rate_limited — 超出速率限制
密钥管理
创建、命名和撤销密钥,并查看每个密钥的最近使用时间,请前往设置 → API。撤销后立即失效。
MCP 服务器
LeadSleuth 通过 Model Context Protocol(Streamable HTTP 传输)把信号层开放给 AI 代理。认证复用相同的只读 Bearer API 密钥,且与 REST API 共享每密钥每分钟 60 次请求的限额。
端点:https://leads.zalize.com/api/mcp
可用工具(全部只读,仅限你自己的数据):
list_leads — 列出线索,可选 status、min_intent、page、per_page 筛选
get_lead — 按 id 获取单条线索,含最新尽调档案
list_icps — 你的 ICP 画像(含解析后的条件)
search_signals — 按关键词搜索信号引文、姓名与账号
Claude Desktop / Claude Code — 添加到 claude_desktop_config.json(无原生远程支持的客户端可借助 mcp-remote):
{
"mcpServers": {
"leadsleuth": {
"command": "npx",
"args": ["mcp-remote", "https://leads.zalize.com/api/mcp",
"--header", "Authorization: Bearer lsk_your_api_key"]
}
}
}
Cursor 等原生支持 Streamable HTTP 的客户端 — 添加到 .cursor/mcp.json:
{
"mcpServers": {
"leadsleuth": {
"url": "https://leads.zalize.com/api/mcp",
"headers": { "Authorization": "Bearer lsk_your_api_key" }
}
}
}