---
title: "Webhook"
method: POST
path: "/api/sales/linkedin/webhook"
tags: ["sales"]
---

# Webhook

`POST /api/sales/linkedin/webhook`

## Request

- Base URL: `https://api.pigeonly.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pigeonly.com/api/sales/linkedin/webhook`
- Auth: none declared

Unipile's message and relation events.

New message (developer.unipile.com/docs/new-messages-webhook):
  {"event": "message_received", "account_id": ..., "account_type":
   "LINKEDIN", "message_id": ..., "message": ..., "timestamp": ...,
   "sender": {"attendee_provider_id": ..., "attendee_profile_url": ...,
   "attendee_name": ...}}

New relation / invitation accepted
(developer.unipile.com/docs/detecting-accepted-invitations, the
`"new_relation"` webhook event -- NOT real-time, LinkedIn does not
support that; Unipile polls at random intervals, up to 8h delay):
  {"event": "new_relation", "account_type": "LINKEDIN",
   "user_full_name": ..., "user_provider_id": ...,
   "user_public_identifier": ...}

## Response `200`

Successful Response

- object

---

[API](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os.md) - [All operations](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/llms.txt) - [OpenAPI document](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/revisions/14571c4b7007?raw)
