---
title: PhantomBuster API Integration on Truto
slug: phantombuster
category: Sales Intelligence
canonical: "https://truto.one/integrations/detail/phantombuster/"
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://truto.one/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

# PhantomBuster API Integration on Truto



**Category:** Sales Intelligence  
**Status:** Beta

## Ways to use PhantomBuster with Truto

- **Proxy API** (every plan, including Free): call the PhantomBuster API 1-to-1 through Truto. Truto handles sign-in, token refresh and pagination.
- **MCP server** (every plan, including Free): 71 PhantomBuster tools for AI agents in Claude, ChatGPT, Cursor, Windsurf, VS Code, Cline, Zed or any MCP client, and custom agents. One customer account per server, with tool limits and expiry you set. For an agent you build, `GET https://api.truto.one/integrated-account/<id>/tools` returns every tool for the account with its description and JSON schema, for any LLM framework; LangChain.js has a ready toolset (`truto-langchainjs-toolset`, https://github.com/trutohq/truto-langchainjs-toolset). Tool descriptions and schemas are editable in your Truto account and update at once. Docs: https://truto.one/docs/guides/tools/overview/
- **Unified API** (add-on, $499 per category a month, 30-day trial on Free): a unified API gives every app in a category the same call and the same data shape. PhantomBuster is not mapped to one yet. There are two paths:
  - **Map it yourself (self-serve):** use the mapping editor, with version history. A mapping goes live for every connected account with no deploy. Your own unified models are in the Pro add-on, $499 a month. Start free at https://app.truto.one/signup
  - **Ask Truto:** tell Truto the PhantomBuster data you need, and Truto adds the mapping. https://truto.one/book-a-demo/
  - **Today, without a mapping:** the Proxy API already works for PhantomBuster on every plan, including Free.
- **Sync and webhooks**: sync PhantomBuster records to your webhook or data store on a schedule. Billing counts the record events delivered to you, not the calls a sync job makes.
- **Custom actions**: add any PhantomBuster endpoint or method with the Truto CLI, live for every connected account with no deploy.

## MCP-ready AI tools

Truto exposes 71 tools for PhantomBuster that AI agents can call directly.

- **list_all_phantom_buster_agent_groups** — List the agent groups of the current user's organization, in their configured order. Returns each group's id, name, and agents (the ids of the agents it contains).
- **phantom_buster_agent_groups_save** — Update the agent groups and their order for the current user's organization in Phantombuster. Returns the saved agentGroups array with the groups and agents in their new order. Required: agentGroups.
- **list_all_phantom_buster_agents** — List all Phantombuster agents in the current user's organization. Returns: id, name, createdAt, scriptOrgName, scriptId, script, branch, environment, argument, lastEndType, lastEndedAt, lastExitCode, nbContainersRunning, runningTime, manifest, launchType, lastNonManualLaunchType, repeatedLaunchTimes, s3Folder, slaveSlug, masterAgentId, and 12 more.
- **get_single_phantom_buster_agent_by_id** — Get a Phantombuster agent by id. Returns the agent object including id, name, scriptId, script, argument, lastEndType, and updatedAt. Required: id.
- **create_a_phantom_buster_agent** — Create or update an agent in Phantombuster. When id is provided the existing agent is updated, otherwise a new agent is created. Returns: id, residentialProxy.
- **phantom_buster_agents_launch** — Add an agent to the PhantomBuster launch queue. Returns an empty response on success; a 400 error is returned when a parameter is duplicated or the launch argument is too big. Required: id.
- **phantom_buster_agents_launch_soon** — Schedule a PhantomBuster agent to launch after a given delay. Returns an empty response body on success; the agent will not launch automatically if it is launched manually before the scheduled time. Required: id, minutes.
- **phantom_buster_agents_launch_sync** — Launch a Phantombuster agent and stream its execution status in real time as NDJSON. Returns streamed messages with type and data — start (containerId, agentId), heartbeat, logs, summary (executionTime, exitCode), or error. Required: id.
- **phantom_buster_agents_stop** — Stop a running PhantomBuster agent by id. Optionally soft-aborts the agent, cascades the stop to slave agents, disables the next scheduled launch, or switches the agent to manual launch. Returns an empty response on success. Required: id.
- **phantom_buster_agents_unschedule_all** — Unschedule all PhantomBuster agents at once, disabling the automatic launch for every agent in the current organization. Takes no body or query parameters; returns a success confirmation (200) when agents are unscheduled.
- **phantom_buster_agents_remove** — Delete a Phantombuster agent by id. Returns an empty response on success. Required: id.
- **phantom_buster_agents_fetch_output** — Fetch the output of the most recent container of a PhantomBuster agent. Returns: containerId, status, output, outputPos, mostRecentEndedAt, progress, progressLabel, isAgentRunning, canSoftAbort, runtimeEvents. Required: agent_id.
- **phantom_buster_ai_completions** — Get an AI completion from Phantombuster. Returns: choices, creditsCost. Required: messages.
- **phantom_buster_ai_advice** — Get an AI-generated recommendation from Phantombuster by sending chat messages for completion generation. Returns: choices, creditsCost. Required: messages.
- **list_all_phantom_buster_branches** — List the branches associated with the current organization in Phantombuster. Returns: id, name, created_at.
- **create_a_phantom_buster_branch** — Create a new branch in Phantombuster. Returns the created branch with its id and name. Required: name.
- **phantom_buster_branches_remove** — Delete a PhantomBuster branch by id. Returns an empty 200 response on success. Required: id.
- **phantom_buster_branches_release** — Release a script branch in Phantombuster by name. Returns an empty response on success. Required: name, scriptIds.
- **phantom_buster_branches_diff** — List the length differences between the staging and release branches of all Phantombuster scripts. Returns: id, name, diffLength, stagingVisibility, releaseVisibility, stagingAccessList, releaseAccessList. Required: name.
- **phantom_buster_brightdata_serp** — Perform a Bright Data SERP search through Phantombuster. Returns the raw search-results payload from the search backend; the upstream API documentation does not enumerate its fields.
- **list_all_phantom_buster_buyers_personas** — Fetch all buyer personas for an org. Returns: id, orgId, icpId, leadsListId, sourcingAgentId, monitoringAgentId, jd.
- **phantom_buster_captchas_solve_hcaptcha** — Solve an hCaptcha challenge in Phantombuster. Returns: response. Required: url, key.
- **phantom_buster_captchas_solve_recaptcha** — Solve a reCAPTCHA challenge (v2 or v3) in Phantombuster. Returns: response. A 200 status is returned even when solving fails — the error is set in the response body. Required: url, key, type.
- **create_a_phantom_buster_company_object** — Save one company object in PhantomBuster, creating it or updating the existing record. Returns: id, linkedinCompanyId, type, slug, properties, orgId. Required: linkedinCompanyId, type, slug, properties.
- **phantom_buster_company_objects_save_many** — Save many company objects in PhantomBuster, creating or updating them in bulk. Returns per-item results with status, result, slug, and error. Max 20 objects per request.
- **list_all_phantom_buster_company_objects** — Search company objects stored in the organization's storage. Returns each matching company object with its id, linkedinCompanyId, type, slug, and properties (orgId may be null). Paged by offset (paginationOptions in the body). Required: filter.
- **list_all_phantom_buster_containers** — List Phantombuster containers for a specified agent. Returns each container's id, status, createdAt, launchType, endType, and retryNumber. Required: agentId.
- **get_single_phantom_buster_container_by_id** — Fetch a Phantombuster container by id. Returns: id, status, createdAt, launchType, endType, endedAt, launchedAt, exitCode, retryNumber, output, resultObject, runtimeEvents, newerContainerId, olderContainerId, internalMetadata, userCustomMetadata. Required: id.
- **phantom_buster_containers_fetch_output** — Fetch the output of a Phantombuster container by id. Returns: output. Required: container_id.
- **phantom_buster_containers_fetch_result_object** — Fetch the result object associated with a container in Phantombuster. Returns resultObject, the container's result object as a JSON-encoded string (nullable when the container has no result). Required: container_id.
- **phantom_buster_containers_attach** — Attach to a running PhantomBuster container and stream its output in real-time. Returns a live plain-text output stream rather than a structured JSON object; the stream content is whatever the container logs emit. Required: container_id.
- **create_a_phantom_buster_crm_contact** — Save a new contact to the CRM connected to Phantombuster, creating it or updating an existing one. Returns an empty 200 response on success. Required: crmName, contact.
- **list_all_phantom_buster_crm_resources** — Fetch the current organization's CRM resources. Returns resourceType and a data object whose fields vary by type — account info (crmName, id, email, name, isConnected), contact lists (lists with id, label, size), or contact properties (properties with id, label, type). Required: resourceType.
- **list_all_phantom_buster_deleted_agents** — List all deleted agents of the current user's organization in Phantombuster. Returns: id, name, createdAt, deletedAt, deletedBy, scriptOrgName, scriptId, script, branch, environment, argument, lastEndType, lastEndedAt, lastExitCode, nbContainersRunning, runningTime, manifest, launchType, lastNonManualLaunchType, repeatedLaunchTimes, and 15 more.
- **list_all_phantom_buster_icps** — Fetch all ICPs (ideal customer profiles) for the organization in Phantombuster. Returns an array of ICP records including id, orgId, productServiceId, and jd.
- **create_a_phantom_buster_identity** — Save a LinkedIn or Google identity in PhantomBuster, creating a new one or updating an existing one when its id is supplied. Returns an empty 200 response on success. Required: type, profileId.
- **phantom_buster_identities_save_with_token** — Save a PhantomBuster identity (LinkedIn or Google) using an identity token, creating or updating it. Returns a success confirmation; the response body is not documented. Required: orgId, type, profileId, token.
- **phantom_buster_identities_generate_token** — Generate a new identity token in PhantomBuster. Fails when the token limit is exceeded or the user's email is not validated.
- **phantom_buster_identities_lookup** — Search a PhantomBuster identity by matching it against id, sessionCookie, or profileId; type defaults to linkedin when omitted. Provide at least one identifying field in the JSON body. Returns an opaque success confirmation with no documented payload shape.
- **create_a_phantom_buster_identity_event** — Save an identity event in PhantomBuster for a given profile. Returns an empty 200 response on success. Required: identity_type, profile_id, event_type, event_data.
- **create_a_phantom_buster_lead_object** — Save one lead object in Phantombuster, creating a new one or updating an existing one. Returns: id, orgId, type, slug, leadId, properties, leadSlug, leadUrn. Required: type, slug, properties, agentId.
- **phantom_buster_lead_objects_save_many** — Save many lead objects in Phantombuster in a single batch. Returns an array of per-object results with status, slug, and id on success or slug with error on failure. Required: leadsObjects.
- **phantom_buster_lead_objects_remove** — Delete one or more leads objects in Phantombuster. Returns: deletedCount.
- **list_all_phantom_buster_lead_objects** — Search lead objects in the organization's lead storage. Returns matching lead objects with their id, type, slug, properties, and leadUrn, each embedding the full lead record with name, LinkedIn profile fields, emails, phone numbers, company details, and CRM links. Paged by offset (paginationOptions in the body). Required: filter.
- **create_a_phantom_buster_lead** — Save one lead in Phantombuster (Beta). Creates a new lead or updates an existing one and returns the saved lead object including id, linkedinProfileSlug, isCreation, and LinkedIn and company details. Required: linkedinProfileUrl.
- **phantom_buster_leads_save_many** — Save multiple leads in Phantombuster org storage (Beta). Returns one result per lead: linkedinProfileUrl, status, error, isCreation, changedFields. Required: leads.
- **phantom_buster_leads_delete_many** — Delete many leads from Phantombuster's org storage in a single call. Returns: deletedCount. Required: ids.
- **list_all_phantom_buster_list_leads** — List all leads stored in a Phantombuster lead list by id. Returns: id, isCreation, linkedinProfileSlug, linkedinCompanySlug, linkedinPreviousCompanySlug, linkedinSchoolCompanySlug, linkedinPreviousSchoolCompanySlug, firstName, lastName, location, and 7 more. Required: list_id.
- **list_all_phantom_buster_lists** — List all lead lists in Phantombuster (beta endpoint). Returns the stored list records, including each list's id. No parameters are required.
- **get_single_phantom_buster_list_by_id** — Get a PhantomBuster lead list by id from organization storage. Returns the fetched lead list object including its id. Required: id.
- **create_a_phantom_buster_list** — Save a PhantomBuster leads list (beta), creating it or updating it as needed. Returns a success confirmation (no response body) when the list is created or updated. Required: name, filter.
- **phantom_buster_lists_remove** — Delete a Phantombuster list (Beta). Returns: id. Required: id.
- **phantom_buster_location_ip** — Retrieve the country of an IPv4 or IPv6 address in Phantombuster. Returns an object containing only the country name (country) — the upstream response carries no other fields. Required: ip.
- **phantom_buster_orgs_me** — Fetch the current Phantombuster organization. Returns: id, name, dailyExecutionTime, dailyMail, dailyCaptcha, dailyDiscoveredMail, dailyAiCredit, s3Storage, s3Folder, planSlug, planStartedAt, timezone, company, billingAddress, billingMail, billingFirstName, billingLastName, vatId, crmIntegrations, qualificationFlow, plan, owner, topUps, and 9 more.
- **phantom_buster_orgs_update_me** — Update the current PhantomBuster organization's info, such as name, displayName, timezone, billing details, proxy pools, and CRM integration options. Returns: id. Only callable with web or MCP sessions.
- **phantom_buster_orgs_fetch_resources** — Get the current Phantombuster organization's resources and usage. Returns: dailyExecutionTime, dailyMail, dailyCaptcha, dailyDiscoveredMail, dailyAiCredit, dailySerpCredits, monthlyExecutionTime, monthlyAiCredit, s3Storage, agentCount, planName, plan, dailyResourceNextResetAt, monthlyResourceNextResetAt, planShouldCancelAt, topUps, and 4 more.
- **phantom_buster_orgs_fetch_crm_access** — Get the organization's CRM access in Phantombuster used to fetch CRM resources. Returns: crmName, crmAccountId, accessToken, contactUpdateOnly.
- **phantom_buster_orgs_export_agent_usage** — Export agent usage data for the current organization in Phantombuster as a CSV file. Returns the CSV file itself; its columns are content-type-specific and defined by the export. Required: days.
- **phantom_buster_orgs_export_container_usage** — Export container usage data for the current organization as a CSV file. Returns a CSV file whose columns are content-type-specific. Required: days.
- **list_all_phantom_buster_running_containers** — List the current organization's running containers in Phantombuster. Returns each container's id, agentId, agentName, createdAt, retryNumber, launchType, and scriptSlug.
- **list_all_phantom_buster_scoring_models** — List all scoring definitions for an organization. Returns: id, name, leadScorerAgentId, configuration, minScore, maxScore, runCount, scoredAt, isRunning, lastRunStatus, scriptOrgSlug, scriptBranchSlug, scriptEnvironment.
- **get_single_phantom_buster_scoring_model_by_id** — Get a single Phantombuster scoring definition by id. Returns: id, name, leadScorerAgentId, configuration, minScore, maxScore, runCount, scoredAt, isRunning, lastRunStatus, scriptOrgSlug, scriptBranchSlug, scriptEnvironment. Required: id.
- **list_all_phantom_buster_scripts** — List all Phantombuster scripts associated with the current user. Returns: id, name, defaultBranch, created_at, updated_at.
- **get_single_phantom_buster_script_by_id** — Fetch a Phantombuster script by id. Returns the script object including its id, name, description, branch, environment, visibility, and code. Required: id.
- **create_a_phantom_buster_script** — Create or update a script in Phantombuster. If id is provided the matching script is updated, otherwise a new script is created. Accepts name, branch, code, markdown, and manifest. Returns: id, name.
- **phantom_buster_scripts_remove** — Delete a Phantombuster script by id, optionally scoped to a specific branch and environment (staging or release). Returns an empty response on success. Required: id.
- **phantom_buster_scripts_code** — Get the source code of a script in Phantombuster by its file name. Returns: code. Required: script.
- **phantom_buster_scripts_access_list** — Update the access list of a PhantomBuster script, adding or removing an org or user from it. Required: name, branch.
- **phantom_buster_scripts_visibility** — Update the visibility of a PhantomBuster script. Returns an empty 200 response on success. Required: name, branch, visibility.
- **phantom_buster_users_me** — Get the current user's info in Phantombuster. Returns: sessionId, zendeskToken, user. If no session exists, a new session is created and its id returned.
- **phantom_buster_users_update_me** — Update the current PhantomBuster user's info — first name, last name, phone, company, job, newsletter and tracking consent, enabled experiments, developer mode, onboarding details, and the user-level custom AI prompt. All fields are optional; no response body is returned on success.

## How it works

1. **Link your customer's PhantomBuster account.** Use Truto's frontend SDK; we handle every OAuth and API key flow so you don't need to create the OAuth app.
2. **Authentication is automatic.** Truto refreshes tokens, stores credentials securely, and injects them into every API request.
3. **Call Truto's API to reach PhantomBuster.** The Proxy API is a 1-to-1 mapping of the PhantomBuster API.
4. **Get a unified response format.** Every response uses a single shape, with cursor-based pagination and data in the `result` field.

## Use cases

- **Embed LinkedIn Automation in Sales Engagement Platforms** — Let your users run LinkedIn connection requests, profile scrapes, and Sales Navigator searches directly from your sequencing UI. Truto handles the PhantomBuster auth and agent orchestration so you can focus on building multi-channel outbound workflows.
- **Add One-Click Candidate Sourcing to ATS Products** — Allow recruiters to paste a LinkedIn URL and instantly import structured candidate data — work history, education, contact details — into your ATS. Launching Phantoms synchronously means the import completes in the same user session.
- **Power Real-Time Lead Enrichment in CRMs** — When a user adds a LinkedIn URL or company to a record, trigger a Phantom to scrape and enrich it on the spot. Stream execution status back to your UI so users see progress without leaving the record view.
- **Offer Headless Scraping for ABM and Intent Platforms** — Provision and launch Phantoms server-side to source buying committees, scrape prospects for target accounts, and push results into your pipeline — without exposing the PhantomBuster dashboard to your users.
- **Build AI-Scored Lead Lists Into Your Product** — Pull PhantomBuster scoring models and ICP-matched leads into your platform so your users only see high-fit prospects. Great for sales intelligence tools that want to layer scoring on top of scraped data.

## What you can build

- **Native PhantomBuster Account Connector** — Let end users connect their PhantomBuster account in your app through Truto, with auth, token storage, and identity management handled for you.
- **Programmatic Phantom Launcher** — Create, configure, and launch agents on behalf of users via create_a_phantom_buster_agent and phantom_buster_agents_launch_soon — no PhantomBuster dashboard required.
- **Real-Time Scrape-to-Record Enrichment** — Use phantom_buster_agents_launch_sync to run Phantoms synchronously and stream results into a CRM, ATS, or sales record as soon as execution completes.
- **Automated Lead Sync Pipeline** — Poll list_all_phantom_buster_running_containers and phantom_buster_containers_fetch_result_object to continuously ingest scraped leads into your platform's native contact objects.
- **LinkedIn Session Cookie Vault** — Securely capture and store user LinkedIn or Google session identities via phantom_buster_identities_save_with_token so authenticated Phantoms can run in the background.
- **ICP-Scored Lead Feed** — Surface AI-scored leads inside your product by pulling from list_all_phantom_buster_scoring_models and list_all_phantom_buster_list_leads for ICP-matched records.
- **Phantom Execution Monitor** — Build a live status panel showing running containers, logs, and output using list_all_phantom_buster_running_containers and get_single_phantom_buster_container_by_id.

## FAQs

### How do end users authenticate their PhantomBuster account?

Users connect their PhantomBuster account through Truto, which handles API key storage and injection. For authenticated Phantoms (e.g., LinkedIn scraping), you can also capture session cookies via phantom_buster_identities_save_with_token so agents run on behalf of the user.

### Can we launch Phantoms synchronously and get results in real time?

Yes. phantom_buster_agents_launch_sync streams execution status (heartbeat, logs, errors) and returns the result, which is ideal for in-session enrichment flows. For longer-running jobs, use phantom_buster_agents_launch and poll containers asynchronously.

### How do we retrieve the scraped data from a Phantom run?

Use phantom_buster_containers_fetch_result_object to get the structured JSON output (leads, profile data, company info) from a completed container. phantom_buster_containers_fetch_output returns raw logs if you need execution-level detail.

### Can we create and configure Phantoms programmatically, or do users need to set them up manually?

You can fully abstract PhantomBuster. create_a_phantom_buster_agent lets you provision agents from your own UI, and phantom_buster_agents_launch / launch_soon trigger them. Your users never need to open the PhantomBuster dashboard.

### Does Truto handle pagination and rate limits for PhantomBuster endpoints?

Yes. Truto normalizes pagination across list endpoints (agents, containers, leads, lists) and manages retries and rate-limit handling so you can call endpoints like list_all_phantom_buster_lead_objects without writing that logic yourself.

### Can we push data back into PhantomBuster, not just pull from it?

Yes. You can create leads, lead objects, lists, company objects, and CRM contacts via tools like create_a_phantom_buster_lead, phantom_buster_leads_save_many, and create_a_phantom_buster_crm_contact — useful for routing external data into PhantomBuster's CRM engine.

### Is this integration available today in Truto?

Truto supports PhantomBuster with the full set of tools listed on this page, covering agents, containers, identities, leads, lists, scoring models, and org/user endpoints. If you need additional endpoints, Truto's team can add them on request.
