How to set up Phantombuster
Authentication
Phantombuster uses API key authentication:- Sign up at phantombuster.com
- Open your Workspace settings
- Copy your API key
- Paste the API key in Cargo when connecting
Code slugs — integration slug:
phantombuster. Action: launchAgent. Call it as integrations.phantombuster.launchAgent(...).Phantombuster actions
Launch Agent
Launch a Phantombuster agent, wait for the run to finish, and return its result items. Required fields:- Agent: Select the agent to launch
- Argument: JSON argument to pass to the agent
Data models
Phantombuster also provides a Fetch Agent Results extractor, so you can sync agent output into Cargo as records without launching the agent yourself:- Pick the agent to fetch results from
- Cargo fetches the result object of each finished agent run and turns items into records (columns are inferred from the items, deduplicated by a content hash)
- Syncs are incremental — only runs that ended after the last sync are fetched, at most every 30 minutes
Best practices
- Validate the Argument field is valid JSON — the action fails otherwise
- Use the extractor (rather than the action) when the agent runs on its own schedule in Phantombuster
- Agent runs that error, crash, or time out fail the action with the agent’s exit message

