# Webhooks

Source: https://heyeveryone.ai/docs/webhooks

> Get a signed call when content, reviews, schedules, results or channels change, instead of polling.

## Add an endpoint

A workspace owner adds an https endpoint in Settings > Webhooks and picks its events. The signing secret is shown once. Agents can read endpoints and their deliveries, but only a person can add one, because it receives the workspace's events.

## Verify every call

Each call is signed with Standard Webhooks v1: check the `webhook-signature` header against the raw body with your `whsec_` secret, and refuse a timestamp more than five minutes old.

## Expect retries, not duplicates

A call that times out or gets a 429 or 5xx is retried with backoff for a few hours. The `webhook-id` header and the payload’s `id` stay the same on every retry, so drop an id you have already handled.

## Read the text with a token

Payloads carry ids, states, results and links, never post text, comment text, tokens or secrets. When you need the text, read it with `get_content` using an agent token.

## Events

| Event | When | `data` carries |
|---|---|---|
| `content.created` | Someone (a person or an agent) created a content item on the board. | `piece` (id, title, status, campaignLabels, archived, url) and `actor`. |
| `content.updated` | A content item's details, status, original draft or a channel version changed (a channel version added counts). Quick successive edits arrive as one event. | `piece`, `change` (details, status, original_draft, channel_version_added or channel_version), `fields` the latest edit changed, `status` ({ from, to }) for a status change, `post` (id, state, version, channel, platform, url) for a channel version, and `actor`. |
| `comment.created` | A teammate, reviewer or agent commented on a content item or a channel version. | `comment` (id, target, postId, parentCommentId, isReply, url), `piece` and `author` (its kind; never the comment text). |
| `proposal.created` | Someone suggested an edit, a new channel version or a new content item; a person accepts or rejects it. | `proposal` (id, target, postId, channelAccountId, origin), `piece` (null for a suggested new item until it is accepted), `url` and `actor`; never the suggested text. |
| `review.verdict` | A reviewer approved content or asked for changes. | `decision` (approved or changes_requested), `piece`, `postId` and `reviewer` (its kind). |
| `post.awaiting_confirmation` | Someone (usually an agent) asked to schedule a post; a person must confirm it. | `post`, `piece`, `transition` ({ from, to }), `actor` and `confirmUrl`, where a person confirms it. |
| `post.scheduled` | A channel version is on the schedule: confirmed by a person, scheduled by someone allowed to, or moved to a new time. | `post` (with `scheduledAt`), `piece`, `scheduledAt` and `actor`. |
| `post.published` | A channel version is live (published by heyeveryone or marked posted by hand). | `post` (with `permalink`, the live link, and `publishedAt`), `piece`, `transition` and `actor`. |
| `post.failed` | Publishing gave up on a channel version. Nothing more is tried on its own. | `post` (with `error`: code and message), `piece`, `transition` and `actor`. |
| `post.needs_attention` | A channel version stopped before or while publishing and needs a person (for example a reconnect). | `post` (with `error`), `piece`, `transition` and `actor`. |
| `post.removed` | A live post was deleted from its platform after a person confirmed it: heyeveryone deleted it, or the person deleted it in the app and said so. Its comments go with it. | `post` (state removed), `piece`, `removal` (id, method: api or manual, outcome: deleted or already_gone) and `actor`. |
| `post.removal_failed` | heyeveryone couldn't delete a live post a person confirmed deleting. The post is still live; the person who confirmed is notified and can try again, or delete it in the app when the platform's API can't. | `post`, `piece`, `removal` (id, `manual`: true when it has to be deleted in the platform's app, `error`: code and message) and `actor`. |
| `results.updated` | New results for a live post were read from its platform (about 1 hour, 24 hours and 7 days after it went live). | `post`, `piece` and `results` (snapshotId, publicationId, fetchedAt, `metrics`: impressions, views, likes, comments, shares, saves, clicks, as the platform reports them). |
| `comments.updated` | heyeveryone read a live post's comments from its platform (with the results checks, and when a person presses Refresh; on X only then). These are people's comments on the platform, not teammates' comments in heyeveryone (comment.created). | `post`, `piece` and `comments` (publicationId, `count` kept, `newCount` not there at the last read, truncated, fetchedAt, `reason`: scheduled or on_demand); never the comment text or authors. Read them with list_live_post_comments. |
| `channel.connected` | A social account was connected to the workspace, or reconnected. | `channel` (id, platform, name, status, url) and `actor`. |
| `channel.disconnected` | A person disconnected a social account, or it needs reconnecting (the platform revoked or expired its access). Posts for it wait until it is connected again. | `channel`, `reason` (disconnected or reconnect_required), `message` (why, for a reconnect) and `actor`. |
| `webhook.test` | Sent by **Send test** in Settings > Webhooks, whatever events the endpoint chose. | `endpointId` and a message. |

## A delivery

Every call is a `POST` with this JSON body, and the `webhook-id`, `webhook-timestamp` and `webhook-signature` headers (Standard Webhooks v1: `v1,` and the base64 HMAC-SHA256 of `id.timestamp.body` with your `whsec_` secret).

```json
{
  "id": "evt_6f1c0e3a9d2b4c5e8f7a1b2c3d4e5f60",
  "type": "content.updated",
  "timestamp": "2026-11-14T15:04:05.000Z",
  "workspaceId": "1ca102b7-e2f3-4e8a-9ea7-dbf5bdeb25aa",
  "data": {
    "piece": {
      "id": "6877fb77-c02e-4f05-b6e0-da5946736f33",
      "title": "Launch week",
      "status": "drafting",
      "campaignLabels": ["launch"],
      "archived": false,
      "url": "https://heyeveryone.ai/app/1ca102b7-e2f3-4e8a-9ea7-dbf5bdeb25aa/pieces/6877fb77-c02e-4f05-b6e0-da5946736f33"
    },
    "change": "channel_version",
    "fields": ["segments"],
    "post": {
      "id": "c0a8012e-7d4b-4b8e-9a51-2f7e3c9d1b44",
      "state": "draft",
      "version": 4,
      "channelAccountId": "5f2d9c1a-3b7e-4c8d-a6f0-1e2b3c4d5e6f",
      "platform": "linkedin",
      "channel": "LinkedIn (@acme)",
      "url": "https://heyeveryone.ai/app/1ca102b7-e2f3-4e8a-9ea7-dbf5bdeb25aa/pieces/6877fb77-c02e-4f05-b6e0-da5946736f33?post=c0a8012e-7d4b-4b8e-9a51-2f7e3c9d1b44"
    },
    "actor": { "kind": "agent", "agentClientId": "da67bcbb-e283-4f2e-8e56-76bad2dc686c" }
  }
}
```

A payload describes the object as it is when the event is sent, a few seconds after it happened. `actor.kind` is `member`, `agent` (with its `agentClientId`), `guest` (a reviewer through a review link) or `system`.

## Retries and endpoint health

Answer with a 2xx within 15 seconds. Timeouts, connection errors, 429 and 5xx are retried with backoff for about 2 to 4 hours; other 4xx responses fail at once, and 410 turns the endpoint off. An endpoint that fails for a day is turned off and the workspace's owners get an Update. Endpoint URLs must be public `https` on port 443 or 8443; redirects aren't followed.

In n8n, the heyeveryone Trigger node checks the signature for you and starts a workflow for the events you pick.
