---
title: Events
description: "Every event Peal sends, with an example payload."
sidebar:
  icon: zap
---

An endpoint subscribes to some of the event types below, and only receives those. Each type links to its fields and an example payload. Every event's `data` has `workspaceId`, the workspace the event happened in.

## Events [#events]

Each event type is sent when this happens:

| Event                                                                                       | When                                                                      |
| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
| [`post.scheduled`](/developers/webhooks/events/posts#post-scheduled)                        | A post was scheduled, or moved to another time                            |
| [`post.unscheduled`](/developers/webhooks/events/posts#post-unscheduled)                    | A scheduled post, or one that waited, was taken back to draft             |
| [`post.published`](/developers/webhooks/events/posts#post-published)                        | A post went live on a channel                                             |
| [`post.failed`](/developers/webhooks/events/posts#post-failed)                              | A post didn't go out on a channel                                         |
| [`post.unconfirmed`](/developers/webhooks/events/posts#post-unconfirmed)                    | Peal can't tell whether a post went live on a channel                     |
| [`post.cancelled`](/developers/webhooks/events/posts#post-cancelled)                        | A post was cancelled                                                      |
| [`post.finished`](/developers/webhooks/events/posts#post-finished)                          | Every channel of a post has its result                                    |
| [`post.unpublished`](/developers/webhooks/events/posts#post-unpublished)                    | A post was deleted from a channel's platform                              |
| [`post.unpublish_failed`](/developers/webhooks/events/posts#post-unpublish-failed)          | Peal couldn't delete a post from a channel's platform                     |
| [`post.edited`](/developers/webhooks/events/posts#post-edited)                              | A post's text was edited on a channel's platform                          |
| [`post.edit_failed`](/developers/webhooks/events/posts#post-edit-failed)                    | Peal couldn't edit a post's text on a channel's platform                  |
| [`post.approval_requested`](/developers/webhooks/events/posts#post-approval-requested)      | A post waits for an approval                                              |
| [`post.approved`](/developers/webhooks/events/posts#post-approved)                          | A post that waited was approved                                           |
| [`post.changes_requested`](/developers/webhooks/events/posts#post-changes-requested)        | Changes were asked for on a post that waited                              |
| [`channel.connected`](/developers/webhooks/events/channels#channel-connected)               | An account was connected, or a channel authorized again                   |
| [`channel.disconnected`](/developers/webhooks/events/channels#channel-disconnected)         | A channel was disconnected                                                |
| [`channel.reconnect_needed`](/developers/webhooks/events/channels#channel-reconnect-needed) | A channel's authorization stopped working                                 |
| [`channel.disabled`](/developers/webhooks/events/channels#channel-disabled)                 | A member turned a channel off                                             |
| [`channel.enabled`](/developers/webhooks/events/channels#channel-enabled)                   | A member turned a channel back on                                         |
| [`channel.expiring`](/developers/webhooks/events/channels#channel-expiring)                 | A channel's authorization ends soon, and can't be renewed                 |
| [`media.ready`](/developers/webhooks/events/media-comments#media-ready)                     | A file was read, and can go in posts                                      |
| [`media.failed`](/developers/webhooks/events/media-comments#media-failed)                   | A file was refused, or couldn't be read                                   |
| [`comment.received`](/developers/webhooks/events/media-comments#comment-received)           | Someone commented under a post that went live                             |
| [`comment.replied`](/developers/webhooks/events/media-comments#comment-replied)             | A reply to a comment went out from Peal                                   |
| [`review.received`](/developers/webhooks/events/media-comments#review-received)             | Someone reviewed a location a channel posts as                            |
| [`review.replied`](/developers/webhooks/events/media-comments#review-replied)               | A reply to a review went out from Peal                                    |
| [`message.received`](/developers/webhooks/events/media-comments#message-received)           | Someone sent a direct message to a channel's account                      |
| [`message.sent`](/developers/webhooks/events/media-comments#message-sent)                   | A direct message went out from Peal                                       |
| [`boost.started`](/developers/webhooks/events/boosts#boost-started)                         | A boost was made and turned on                                            |
| [`boost.paused`](/developers/webhooks/events/boosts#boost-paused)                           | A member paused a boost                                                   |
| [`boost.resumed`](/developers/webhooks/events/boosts#boost-resumed)                         | A member ran a paused boost again                                         |
| [`boost.stopped`](/developers/webhooks/events/boosts#boost-stopped)                         | A member stopped a boost for good                                         |
| [`boost.ended`](/developers/webhooks/events/boosts#boost-ended)                             | A boost's end date passed                                                 |
| [`boost.failed`](/developers/webhooks/events/boosts#boost-failed)                           | A boost couldn't be made, and nothing ran                                 |
| [`boost.unconfirmed`](/developers/webhooks/events/boosts#boost-unconfirmed)                 | Peal can't tell whether a boost runs: it may be spending                  |
| [`boost.budget_reached`](/developers/webhooks/events/boosts#boost-budget-reached)           | A boost spent its whole total budget                                      |
| [`article.published`](/developers/webhooks/events/articles#article-published)               | An article went to its website                                            |
| [`article.failed`](/developers/webhooks/events/articles#article-failed)                     | An article didn't go to its website                                       |
| [`webhook.test`](#webhook-test)                                                             | Someone asked for a test event. Sent whatever the endpoint subscribes to. |

### One event per channel [#per-channel]

A post goes out on each of its channels separately, so `post.published`, `post.failed` and `post.unconfirmed` each name one channel. A post on three channels brings three events. These fields say which channel:

| Field       | Type           | What it holds                                                                                                                                                                                                                                                            |
| ----------- | -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `targetId`  | string         | The post on that channel: the target's id, as the API's `targets` list it                                                                                                                                                                                                |
| `channelId` | string         | The channel                                                                                                                                                                                                                                                              |
| `platform`  | string or null | The channel's platform, such as `mastodon`, or null once the channel was disconnected                                                                                                                                                                                    |
| `round`     | integer        | How many times the post was sent there: 1, and one more for each time it was sent again                                                                                                                                                                                  |
| `parts`     | object         | For a post of several parts, a [thread](/guides/posts#threads): `count`, how many parts it has there (1 for a post alone), and `live`, how many of them are live. Parts go out in order, so a post that failed or is unconfirmed stopped at the part after the last live |

### webhook.test [#webhook-test]

Someone asked for a test event on the endpoint. Peal sends it to that endpoint alone, whatever it subscribes to, and no endpoint can subscribe to it.

| Field         | Type   | What it holds |
| ------------- | ------ | ------------- |
| `workspaceId` | string | The workspace |
| `endpointId`  | string | The endpoint  |

```json title="webhook.test"
{
  "id": "019a6f40-2f6b-7a1c-9d2e-5b4c3a2f1e0c",
  "type": "webhook.test",
  "version": 1,
  "timestamp": "2026-11-10T08:12:00.000Z",
  "workspaceExternalId": null,
  "data": {
    "workspaceId": "7b1f6c1e-2d4a-4f0b-9c3e-5a8d2e6f1b90",
    "endpointId": "019a6e00-77aa-7f12-b0c4-1a2b3c4d5e6f"
  }
}
```

### Samples of a type [#samples]

A test can carry a sample of any event type instead. In the web app, select the type next to **Send a test event**. Over the API, add `?eventType=post.published` to the test's address. Peal sends it whatever the endpoint subscribes to or filters.

The sample has the type's real shape, ids that name nothing (`00000000-0000-7000-8000-…`) and the workspace's own id. It also has `"sample": true` next to the payload's other fields. A real event's payload never has `sample`.

> **Sample events look like real ones**
>
> Check `sample` so your server can tell a sample from a real event.

```json title="sample post.published"
{
  "id": "019a6f40-2f6b-7a1c-9d2e-5b4c3a2f1e0d",
  "type": "post.published",
  "version": 1,
  "timestamp": "2026-11-10T08:12:00.000Z",
  "workspaceExternalId": null,
  "sample": true,
  "data": {
    "workspaceId": "7b1f6c1e-2d4a-4f0b-9c3e-5a8d2e6f1b90",
    "postId": "00000000-0000-7000-8000-000000000001",
    "targetId": "00000000-0000-7000-8000-000000000002",
    "channelId": "00000000-0000-7000-8000-000000000003",
    "platform": "mastodon",
    "round": 1,
    "parts": { "count": 1, "live": 1 },
    "permalink": "https://social.example/@peal_example/1",
    "publishedAt": "2026-01-01T09:00:00.000Z"
  }
}
```
