Skip to content
Peal
Esc
↑↓navigate↵open⌘Jpreview
On this page

Events

Every event Peal sends, with an example payload.

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

Each event type is sent when this happens:

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

One event 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: 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

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
{
  "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

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.

{
  "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"
  }
}

Was this page helpful?