Webhooks

POST /api/webhooks/phantombuster/employee-search

Handle PhantomBuster employee search completion webhook

Request

Query parameters

tokenstring required

Security token: hash('sha256', secret + agentId)

Request body

agentIdstring required

PhantomBuster agent ID

agentNamestring

PhantomBuster agent name

containerIdstring required

PhantomBuster container ID

scriptstring

Script filename

scriptOrgstring

Script organization

branchstring

Script branch

launchDurationinteger

Launch duration in milliseconds

runDurationinteger

Run duration in milliseconds

resultObjectobject

Result data from the scraping

exitMessagestring

Exit message

exitCodeinteger required

Exit code (0 = success)

Example request

{
  "agentId": "5027055349780535",
  "agentName": "LinkedIn Employee Search",
  "containerId": "3358014727012763",
  "script": "script.js",
  "scriptOrg": "phantombuster",
  "branch": "main",
  "launchDuration": 121,
  "runDuration": 1850,
  "exitMessage": "finished"
}

Response

Webhook received successfully

messagestring

Example response

{
  "message": "Webhook received"
}

Changes

No recorded changes to this operation across all 2 revisions of this API.