API reference and execution
Use the live OpenAPI contract, execute operations and recover interrupted requests.
The HTTP API and MCP enforce the same workspace access, idempotency and credit billing rules. Public MCP exposes five direct-endpoint tools (tools_directory, tools_search, tools_describe, tools_run, billing_get) plus leadbase://guide for AI clients. The HTTP API exposes both direct catalog operations and batch/sheet research endpoints for applications.
Discover the contract
HTTP operation IDs use dots, such as tools.run and enrichment.start. Public MCP tools use underscores (tools_directory, tools_search, tools_describe, tools_run, billing_get). MCP discovery (tools/list) is authoritative: converting an HTTP ID to underscores does not make an unlisted tool callable. Discover exact IDs and parameters rather than guessing from titles. Send uncompressed application/json; the request body limit is 1 MiB.
For a complete first request, see typed enrichment. Use API authentication and bulk retrieval next.
Research through HTTP
Use sheets.research for a new saved list, sheets.enrich for an existing sheet column, and enrichment.start for 1–100 independent items without a sheet. The unified enrichment endpoint supports many email and phone requests in the same batch. See the bulk contact example. For AI clients using direct endpoints over MCP, see MCP setup.
Run a catalog tool through HTTP or MCP
In MCP, discover endpoints with tools_search and tools_describe, then run them with tools_run. In HTTP, first post to /api/v1/operations/tools.list with {"query":"search"}. Select an available tool from the response and inspect its inputSchema. Then post to /api/v1/operations/tools.run:
Replace the placeholder and populate parameters with the fields required by that tool; the empty object is only a structural example. The response contains the full provider result, attempts and actual provider cost. Individual endpoints execute directly; groups run their configured waterfall. Neither path adds a research-model round. Repeating the same request with the same idempotency key returns the retained response without another provider charge.
Handle errors deliberately
A transport success is not proof of a found result. Inspect domain status, error codes, values and billing state. Preserve the response's identifiers. For an ambiguous submission, reuse the same idempotency key and identical payload; changing the key can create new paid work. See troubleshooting.