---
title: "POST /api/webhooks/phantombuster/employee-search"
method: POST
path: "/api/webhooks/phantombuster/employee-search"
tags: ["Webhooks"]
---

# POST /api/webhooks/phantombuster/employee-search

`POST /api/webhooks/phantombuster/employee-search`

## Request

- Base URL: `https://api.sponsorunited.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sponsorunited.com/api/webhooks/phantombuster/employee-search`
- Auth: none declared
- TypeScript: <https://skmtc.dev/sponsorunited/apis/sponsorunited-api/docs/api/webhooks/phantombuster/employee-search/post.ts> (a function with typed inputs; its response is checked against the schema)

Handle PhantomBuster employee search completion webhook

## Query parameters

- `token` string, required

## Request body

- PhantombusterEmployeeSearchWebhookRequest
  - `agentId` string, required: PhantomBuster agent ID
  - `agentName` string: PhantomBuster agent name
  - `containerId` string, required: PhantomBuster container ID
  - `script` string: Script filename
  - `scriptOrg` string: Script organization
  - `branch` string: Script branch
  - `launchDuration` integer: Launch duration in milliseconds
  - `runDuration` integer: Run duration in milliseconds
  - `resultObject` object: Result data from the scraping
  - `exitMessage` string: Exit message
  - `exitCode` integer, required: Exit code (0 = success)

## Response `200`

Webhook received successfully

- object
  - `message` string

## Other responses

- `403`: Forbidden - Invalid token

---

[API](https://skmtc.dev/sponsorunited/apis/sponsorunited-api.md) - [All operations](https://skmtc.dev/sponsorunited/apis/sponsorunited-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sponsorunited/apis/sponsorunited-api/revisions/cbf1ca5bff8f?raw)
