> ## Documentation Index
> Fetch the complete documentation index at: https://docs.linkedcamp.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Webhook events

> Every automation trigger that can call your URL, and the payload each one sends.

Event delivery to your own systems is set up with automations. An automation pairs a **trigger** with a **Webhook** step that holds your URL. When the trigger fires, Linkedcamp sends a `POST` to that URL with the payload for that event.

## Setting one up

Create the automation with `automation_upsert`, or in the web app under **Automations**. Read an existing automation with `automation_get` first: the graph you send must use the same node and edge shape.

* The trigger node's `data.type` is the event name from the tables below, for example `ACCEPTS_REQUEST`.
* The Webhook node's `data.type` is `WEBHOOK`, and its `data.url` is where the payload goes.
* `TAG_ADDED` needs `data.tagIds` on the trigger node. It fires only when one of those tags is added.
* A trigger node can take an optional `data.campaignId`. With it set, the automation fires for that campaign only. `TAG_ADDED` when the tag is added by hand or through the API, and `OPENED`, `CLICKED` and `UNSUBSCRIBED` in some cases, ignore it, so check `campaign.id` in the payload if you need to be sure.
* Nothing is sent until the automation has `isActive: true`.
* A lead event is sent only for a lead that has both a first and a last name. Most lead events also need the campaign to be active and to have a LinkedIn account. `APPOINTMENT_BOOKED` is sent even when the campaign is no longer active.

## Delivery

* **Method:** `POST` with `Content-Type: application/json`. The body is `{ "success": true, "statusCode": 200, "data": { … } }`, and the event's fields are inside `data`.
* **Make, Zapier and Integrately URLs** (`make.com`, `integromat`, `zapier`, `integrately`) get the same fields as `multipart/form-data` instead of JSON:
  * Nested keys are flattened to camelCase: `campaign.title` becomes `campaignTitle`, and `campaign.user.email` becomes `campaignUserEmail`.
  * Lists are flattened with their position: `tags` becomes `tags0`, `tags1`, and `conversations[0].type` becomes `conversations0Type`.
  * Empty fields are left out. So are `false`, `0` and empty text: `true` is sent as `Yes`, but a `false` field is missing rather than `No`. Fields that are already the text `Yes` or `No`, such as `connected`, are sent as they are.
  * A lead phone number with no country code (`phone`, `contactPhone`) gets `+1` in front.
* **Answer with JSON:** reply with a JSON body, for example `{"ok": true}`. If a lead event gets a response that isn't JSON, such as an empty `200` or the text `OK`, the automation can be switched off (`isActive: false`) and nothing more is sent until you turn it back on. Make, Zapier and Integrately URLs are exempt.
* **No retries:** a delivery that fails isn't sent again, so your endpoint should accept the request quickly and do the slow work afterwards. On rare occasions the same event can arrive twice, so make your handler safe to run twice.
* **No signature:** requests aren't signed. Keep the URL secret, and use a long random path if you need one.
* **Dates:** most dates are text in the form `Tuesday, November 24, 2026 3:15 PM`. Appointment times are ISO 8601.
* **Missing values:** fields with no value are `null`, or the text `N/A` where shown below.

## Events

### Lead events

These send the [lead payload](#lead-payload). It describes the person, the campaign they're in, their company and the LinkedIn account that is sending to them.

| Event | Fires when |
| - | - |
| `CONNECT_INVITED` | A connection request is sent to the lead. |
| `ACCEPTS_REQUEST` | The lead accepts your connection request. |
| `REPLY_DETECTED` | The lead replies on LinkedIn or by email. |
| `EMAIL_SENT` | A campaign email is sent to the lead. |
| `OPENED` | The lead opens a campaign email. |
| `CLICKED` | The lead clicks a link in a campaign email. |
| `BOUNCED` | A campaign email to the lead bounces. |
| `UNSUBSCRIBED` | The lead unsubscribes from campaign emails. |
| `TAG_ADDED` | One of the trigger's tags is added to the lead, by a sequence step, by reply tagging or by hand. |
| `APPOINTMENT_BOOKED` | The lead books a meeting. The lead payload also carries an [`appointment`](#appointment-booked) block. |

These four aren't in the web app's trigger list, but an automation created with `automation_upsert` can use them. They also send the lead payload:

| Event | Fires when |
| - | - |
| `MESSAGE_SENT` | A LinkedIn message is sent to the lead. |
| `INMAIL_SENT` | An InMail is sent to the lead. |
| `FOLLOWED` | The lead's profile or company is followed. |
| `EVENT_INVITED` | The lead is invited to a LinkedIn event. |

### Campaign events

These send the [campaign payload](#campaign-payload). There's no lead in it.

| Event | Fires when |
| - | - |
| `FILTER_LEADS_COMPLETED` | New leads have been added to a campaign. |
| `LOW_PROSPECTS` | A running campaign is close to running out of leads. See [below](#campaign-payload) for when exactly. |

### Agency events

These are available to agency owners only, and fire for the accounts of your own white-label customers.

| Event | Fires when | Payload |
| - | - | - |
| `AGENCY_NEW_USER` | A new customer signs up on your white-label app. | [User payload](#agency-user-payload) |
| `AGENCY_NEW_USER_SUBSCRIBED` | A customer subscribes to one of your plans. | [User payload](#agency-user-payload) |
| `AGENCY_USER_PAYMENT_FAILED` | A customer's subscription payment is declined. | [Payment failed payload](#agency-payment-failed-payload) |

## Lead payload

```json theme={null}
{
  "success": true,
  "statusCode": 200,
  "data": {
    "leadId": "6740c0ffee1234567890abcd",
    "title": "Jane Doe",
    "fullName": "Jane Doe",
    "firstName": "Jane",
    "lastName": "Doe",
    "headline": "Head of Growth at Acme",
    "designation": "Head of Growth",
    "location": "Austin, Texas, United States",
    "profilePic": "https://media.licdn.com/dms/image/…",
    "profileLink": "https://www.linkedin.com/in/janedoe",
    "salesNavigatorLink": "https://www.linkedin.com/sales/lead/…",
    "profileUrn": "ACoAAB…",
    "connectionLevel": 2,
    "email": "jane@acme.com",
    "contact": { "email": "jane@acme.com", "phone": "+15125550100", "website": "https://acme.com" },
    "tags": ["Interested"],
    "status": "CONNECTED",
    "campaignId": "6740c0ffee1234567890abce",
    "isPremium": "No",
    "customFields": { "industry": "SaaS" },
    "lastReceivedMessage": "Thanks, happy to chat next week.",
    "lastSentMessage": "Hi Jane, thanks for connecting…",
    "connected": "Yes",
    "replied": "Yes",
    "invitedAt": "Monday, November 16, 2026 10:02 AM",
    "connectedAt": "Wednesday, November 18, 2026 4:41 PM",
    "repliedAt": "Tuesday, November 24, 2026 9:15 AM",
    "conversation": "Jane Doe [11/24/2026]: Thanks, happy to chat next week.\n",
    "conversationUrl": "https://www.linkedin.com/messaging/thread/…",
    "conversationId": "6740c0ffee1234567890abcf",
    "conversations": [
      { "type": "LINKEDIN", "conversationId": "6740c0ffee1234567890abcf", "url": "/messaging/thread/…" }
    ],
    "campaign": {
      "id": "6740c0ffee1234567890abce",
      "title": "Founders in Austin",
      "status": "ACTIVE",
      "url": "https://www.linkedin.com/search/results/people/?keywords=…",
      "skipProfiles": "Yes",
      "premiumProfiles": "No",
      "total": 250,
      "isSalesNavigator": false,
      "timezone": "America/Chicago",
      "startedAt": "Monday, November 16, 2026 9:00 AM",
      "lastUpdatedAt": "Tuesday, November 24, 2026 9:15 AM",
      "user": { "firstName": "Sam", "lastName": "Lee", "email": "sam@youragency.com" }
    },
    "company": {
      "title": "Acme",
      "employeesCount": 42,
      "description": "…",
      "website": "https://acme.com",
      "industry": "Software Development",
      "phone": "+15125550199",
      "companySize": "11-50",
      "headquarters": "Austin, Texas",
      "founded": "2019",
      "specialties": "…"
    },
    "linkedAccount": {
      "firstName": "Sam",
      "lastName": "Lee",
      "headline": "Founder at Your Agency",
      "profileLink": "/in/samlee",
      "profilePic": "https://media.licdn.com/dms/image/…",
      "connections": 1800,
      "accountType": null,
      "bio": "…",
      "email": "sam@youragency.com"
    },
    "created": "Monday, November 16, 2026 9:01 AM",
    "updated": "Tuesday, November 24, 2026 9:15 AM"
  }
}
```

| Field | What it holds |
| - | - |
| `leadId` | The lead's id, as used by the lead endpoints. |
| `title`, `fullName`, `firstName`, `lastName` | The lead's name. `title` repeats `fullName`. |
| `headline`, `designation`, `location`, `profilePic` | From the lead's LinkedIn profile. `designation` is `N/A` when unknown. |
| `profileLink`, `salesNavigatorLink` | Full LinkedIn and Sales Navigator profile URLs. |
| `profileUrn` | The lead's LinkedIn member URN. |
| `connectionLevel` | The connection degree: `1`, `2` or `3`. |
| `email` | The lead's email, from the lead, its contact details or a custom field named `email`. `null` when none is known. |
| `contact` | Contact details found for the lead (email, phone, website), when there are any. |
| `tags` | Names of the tags on the lead and on its campaign. |
| `status` | The lead's current status. Call `reference` for the full list. |
| `campaignId` | The campaign the lead is in. |
| `isPremium`, `connected`, `replied` | `Yes` or `No`. |
| `customFields` | The campaign's custom fields, with this lead's values. |
| `lastReceivedMessage`, `lastSentMessage` | The latest message each way, or `N/A`. |
| `invitedAt`, `connectedAt`, `repliedAt` | When the request was sent, accepted and first replied to, or `null`. |
| `conversation` | The LinkedIn conversation as text, one message per line: `Sender [MM/DD/YYYY]: text`. |
| `conversationUrl`, `conversationId` | The main conversation with the lead. `conversationUrl` is `N/A` when there's none. |
| `conversations` | Every conversation with the lead. `type` is `LINKEDIN`, `SALES_NAVIGATOR`, `RECRUITER` or `EMAIL`. |
| `campaign` | The campaign. `user` is the Linkedcamp user who owns it. |
| `company` | The lead's company, when it's known. Fields are `null` when not. |
| `linkedAccount` | The LinkedIn account sending to the lead. |
| `created`, `updated` | When the lead was added and last changed. |

> [!NOTE]
>
> `TAG_ADDED` when the tag is added by hand or through the API, `APPOINTMENT_BOOKED` for Calendly bookings, appointments added in Linkedcamp and some GoHighLevel bookings, and in some cases `OPENED`, `CLICKED` and `UNSUBSCRIBED`, send a slightly different version of this payload:
>
> * The sending account is under `linkedInAccount` instead of `linkedAccount`.
> * `tags` is one comma-separated string, or `N/A`.
> * It adds `recruiterLink`.
> * It has no `title`, `profileUrn`, `campaignId` or `conversations`, and no `campaign.isSalesNavigator`.
> * `firstName` and `lastName` are split from `fullName` instead of read from the profile.
>
> Read both names if you handle these events. To Make, Zapier, Integrately or n8n, this version is sent as form data. The main version treats n8n URLs as ordinary JSON.

## APPOINTMENT\_BOOKED

The lead payload, plus an `appointment` block:

```json theme={null}
{
  "appointment": {
    "_id": "6740c0ffee1234567890abd0",
    "title": "Intro call",
    "description": "Discuss outbound for Q1",
    "startTime": "2026-11-26T16:00:00.000Z",
    "endTime": "2026-11-26T16:30:00.000Z",
    "timezone": "America/Chicago",
    "status": "CONFIRMED",
    "response": null
  },
  "user": { "_id": "6740c0ffee1234567890abd1", "teamId": null, "subTeamId": null }
}
```

* `response` is the raw booking data from the calendar, when there is any.
* The `user` block, with the Linkedcamp user the booking belongs to, is included for Calendly bookings and for appointments added in Linkedcamp.
* Some GoHighLevel bookings send the stored appointment record instead: `appointmentId` sits next to `appointment`, the `appointment` block carries every field from the calendar, and there's no `user` block.
* An appointment fires the trigger once. If the same booking is synced again, nothing is sent.

## Campaign payload

`FILTER_LEADS_COMPLETED` and `LOW_PROSPECTS` send the campaign:

```json theme={null}
{
  "success": true,
  "statusCode": 200,
  "data": {
    "id": "6740c0ffee1234567890abce",
    "title": "Founders in Austin",
    "status": "ACTIVE",
    "url": "https://www.linkedin.com/search/results/people/?keywords=…",
    "skipProfiles": true,
    "premiumProfiles": false,
    "total": 250,
    "type": null,
    "isSalesNavigator": false,
    "timezone": "America/Chicago",
    "customFields": { "industry": "" },
    "startedAt": "Monday, November 16, 2026 9:00 AM",
    "lastUpdatedAt": "Tuesday, November 24, 2026 9:15 AM",
    "user": { "firstName": "Sam", "lastName": "Lee", "email": "sam@youragency.com" },
    "linkedAccount": {
      "firstName": "Sam",
      "lastName": "Lee",
      "headline": "Founder at Your Agency",
      "profileLink": "/in/samlee",
      "profilePic": "https://media.licdn.com/dms/image/…",
      "connections": 1800,
      "accountType": null,
      "bio": "…",
      "email": "sam@youragency.com"
    },
    "created": "Monday, November 16, 2026 9:00 AM",
    "updated": "Tuesday, November 24, 2026 9:15 AM"
  }
}
```

* `skipProfiles` and `premiumProfiles` are `true` or `false` here, unlike the `Yes`/`No` in the lead payload.
* `total` is the number of leads in the campaign.

`LOW_PROSPECTS` is sent once per campaign, when all of these are true:

* The owner has an active subscription and has **low prospects notifications** turned on in their settings.
* The campaign is active and its leads came from a search or a CSV upload.
* The campaign has at least 100 leads in total, and fewer than 100 of them are still waiting to be contacted.

Its payload differs in two ways:

* The sending account is under `linkedInAccount`.
* It adds a nested `campaign` block with how many leads are left:

```json theme={null}
{
  "campaign": {
    "_id": "6740c0ffee1234567890abce",
    "title": "Founders in Austin",
    "total": 250,
    "leadsCount": 12
  }
}
```

## Agency user payload

`AGENCY_NEW_USER` and `AGENCY_NEW_USER_SUBSCRIBED`:

```json theme={null}
{
  "success": true,
  "statusCode": 200,
  "data": {
    "fullName": "Alex Kim",
    "firstName": "Alex",
    "lastName": "Kim",
    "email": "alex@client.com",
    "currentPlan": "Growth",
    "created": "Tuesday, November 24, 2026 3:15 PM",
    "updated": "Tuesday, November 24, 2026 3:15 PM"
  }
}
```

* `currentPlan` is the title of the plan the customer subscribed to. It's `null` on `AGENCY_NEW_USER`, which fires before they pick one.
* `created` and `updated` are the time the event was sent.

## Agency payment failed payload

`AGENCY_USER_PAYMENT_FAILED`:

```json theme={null}
{
  "success": true,
  "message": "User subscription payment is declined!",
  "statusCode": 200,
  "data": {
    "firstName": "Alex",
    "lastName": "Kim",
    "email": "alex@client.com",
    "created": "Tuesday, November 24, 2026 3:15 PM",
    "updated": "Tuesday, November 24, 2026 3:15 PM"
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.