Skip to content
PhantomBuster logo

Connectors / Sales · HTTP Connector

Automate PhantomBuster with Tray.ai

Start a Tray.ai workflow when PhantomBuster sends “Agent run finished”. Connect PhantomBuster to the rest of your sales stack with Tray.ai.

What can you do with PhantomBuster on Tray.ai?

PhantomBuster runs cloud automations that collect lead and profile data from websites and social networks, then export or push the results to other tools. Tray.ai connects to PhantomBuster through the HTTP Connector, so your workflows can call the PhantomBuster API alongside the rest of your stack.

  • When PhantomBuster sends “Agent run finished”, add the collected leads to your CRM.
  • Launch an agent each Monday to collect fresh prospects for the sales team.
  • Get agent output after each run and post a count of new leads to the sales team chat.
Connects through
HTTP Connector
Authentication
An API key in a request header
Base URL
https://api.phantombuster.com/api/v2

Set it up

Connect PhantomBuster to Tray.ai

Each step uses PhantomBuster's own API details, from its documentation.

Step 1

Save PhantomBuster's API key

Save the key as a Tray.ai authentication. The HTTP Client puts it in the request header, read from $.auth. The key stays out of the workflow and out of the logs.

Step 2

Point the HTTP Client at the API

Add an HTTP Client step and use https://api.phantombuster.com/api/v2 as the base URL. Or paste a cURL example from PhantomBuster's API docs, and Tray.ai fills in the method, URL, and headers.

Step 3

Start with “Get agent output”

It's one of 18 documented actions, under Agents. The response comes back as data the next step can map into your other apps.

Step 4

Start workflows from PhantomBuster events

Give PhantomBuster the URL of a Tray.ai webhook trigger. “Agent run finished” can then start a workflow.

Workflows to build with PhantomBuster

Each one uses actions and events from PhantomBuster's own API documentation.

Send PhantomBuster results to HubSpot after each run

When

Agent run finished

Then

  1. Get agent output in PhantomBuster
  2. Create or update each lead as a contact in HubSpot

With HubSpot

Add PhantomBuster leads to a Salesforce campaign

When

Agent run finished

Then

  1. Get leads by list in PhantomBuster
  2. Add each lead to the campaign in Salesforce

With Salesforce

Launch a PhantomBuster agent for new target accounts

When

An account is marked as a target in Salesforce

Then

  1. Launch an agent in PhantomBuster with the company's LinkedIn page
  2. Get agent output and add the contacts to the account in Salesforce

With Salesforce

Apps you can build on PhantomBuster data

Internal tools your team can build with an AI assistant, each one using PhantomBuster calls from its API documentation.

Lead extraction monitor

Lists automation agents with their latest run output and lets a user launch or stop an agent.

Lead list review tool

Shows leads by list and lets sales ops delete bad leads before they go to the CRM.

Give your AI agents PhantomBuster tools

Build an MCP server on PhantomBuster in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works

  • Launch an agent
  • List containers
  • Save a lead
  • List scripts
  • Stop an agent
  • Get agent output
  • List agents
  • Save an agent

What the PhantomBuster API covers

4 resources and 18 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Connecting it takes a few clicks: here's how.

Agents

  • Launch an agent
  • Stop an agent
  • Get agent output
  • List agents
  • Save an agent
  • Delete an agent

Containers

  • List containers
  • Get a container
  • Get container output
  • Get a result object

Leads

  • Save a lead
  • Save many leads
  • Delete many leads
  • Get leads by list

Scripts

  • List scripts
  • Get a script
  • Save a script
  • Delete a script

Events PhantomBuster can send to a Tray.ai webhook trigger

  • Agent run finished

Checked against PhantomBuster's own documentation on 2026-10-22

hub.phantombuster.com/docs/api

Frequently asked questions

What can a Tray.ai workflow do in PhantomBuster?

+

The PhantomBuster API documents 18 actions across 4 resources (Agents, Containers, Leads, Scripts). For example: Launch an agent; List containers; Save a lead. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with PhantomBuster?

+

The PhantomBuster API uses an API key in a request header. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

Which PhantomBuster events can start a Tray.ai workflow?

+

PhantomBuster sends one event to a webhook URL, for example: Agent run finished. A Tray.ai webhook trigger receives them and starts a workflow.

See PhantomBuster working against your stack.

We'll walk through a tailored demo with your systems plugged in.

Great — a couple more details

This helps us connect you with the right person. Optional, and you can skip it.