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

Media, comment, review and message events

The events of a file in the media library, of the comments under a published post, of a location's reviews, and of a channel's direct messages.

These events cover the files in the media library, the comments under a published post, a location’s reviews and a channel’s direct messages. Each one lists its fields and shows an example payload. Media events aren’t about any channel, so they reach an endpoint whatever channels it lists.

media.ready

Peal read the file after storing it, and the file can now go in posts.

Field Type What it holds
workspaceId string The workspace
mediaId string The media
contentType string The file’s content type, such as image/png
{
  "id": "019a6f40-2f6b-7a1c-9d2e-5b4c3a2f1e0a",
  "type": "media.ready",
  "version": 1,
  "timestamp": "2026-11-09T16:30:55.000Z",
  "workspaceExternalId": null,
  "data": {
    "workspaceId": "7b1f6c1e-2d4a-4f0b-9c3e-5a8d2e6f1b90",
    "mediaId": "019a6f21-0d5c-7a90-8e3b-4f5a6b7c8d9e",
    "contentType": "image/png"
  }
}

media.failed

The file was refused, or Peal couldn’t read it. A file Peal couldn’t read stays in the library, and isn’t ready for posts.

Field Type What it holds
workspaceId string The workspace
mediaId string The media
reason string Why, one of the codes below
reason What happened
sizeMismatch The stored file isn’t the size the upload declared. It was refused.
typeMismatch The stored file isn’t the type the upload declared. It was refused.
unreadable The file is damaged, or not in a format Peal reads.
timedOut Reading the file took longer than Peal allows.
tooLarge The store served more bytes than Peal stores for the file’s kind.
toolFailed The program that reads files couldn’t run, or printed nothing usable.
tooManyPages A PDF document has more than 300 pages, which no platform shows.
unavailable The instance has nothing to read this kind of file with.
{
  "id": "019a6f40-2f6b-7a1c-9d2e-5b4c3a2f1e0b",
  "type": "media.failed",
  "version": 1,
  "timestamp": "2026-11-09T16:31:20.000Z",
  "workspaceExternalId": null,
  "data": {
    "workspaceId": "7b1f6c1e-2d4a-4f0b-9c3e-5a8d2e6f1b90",
    "mediaId": "019a6f21-0d5c-7a90-8e3b-4f5a6b7c8d9e",
    "reason": "typeMismatch"
  }
}

comment.received

Peal read a new comment under a post that went live on a channel (see Inbox). The event carries ids only. To get what the comment says and who wrote it, read it through the API, with engagement:read.

Field Type What it holds
workspaceId string The workspace
postId string The post
channelId string The channel the post went live on
threadId string The thread: the comments under that post
commentId string The comment
receivedAt string When Peal read it, as an instant in UTC
{
  "id": "019a6f52-1c3d-7e4f-8a5b-6c7d8e9f0a1b",
  "type": "comment.received",
  "version": 1,
  "timestamp": "2026-11-10T09:13:02.000Z",
  "workspaceExternalId": null,
  "data": {
    "workspaceId": "7b1f6c1e-2d4a-4f0b-9c3e-5a8d2e6f1b90",
    "postId": "019a6f1c-4b7e-7d3a-9f21-6a5c8e1d2b40",
    "channelId": "019a6e02-9c1d-7b55-8a10-3e4f5a6b7c8d",
    "threadId": "019a6f50-0a1b-7c2d-8e3f-4a5b6c7d8e9f",
    "commentId": "019a6f52-1c3d-7e4f-8a5b-6c7d8e9f0a1a",
    "receivedAt": "2026-11-10T09:13:02.000Z"
  }
}

comment.replied

A reply to a comment went out from Peal, as the channel’s account. A reply that failed, or whose outcome isn’t known, sends nothing, so read it through the API.

Field Type What it holds
workspaceId string The workspace
postId string The post
channelId string The channel
threadId string The thread
commentId string The comment that was answered
replyId string The reply
permalink string or null The reply’s address on the platform, when it gave one
repliedAt string When it went out, as an instant in UTC
{
  "id": "019a6f58-2d4e-7f5a-9b6c-7d8e9f0a1b2c",
  "type": "comment.replied",
  "version": 1,
  "timestamp": "2026-11-10T09:20:41.000Z",
  "workspaceExternalId": null,
  "data": {
    "workspaceId": "7b1f6c1e-2d4a-4f0b-9c3e-5a8d2e6f1b90",
    "postId": "019a6f1c-4b7e-7d3a-9f21-6a5c8e1d2b40",
    "channelId": "019a6e02-9c1d-7b55-8a10-3e4f5a6b7c8d",
    "threadId": "019a6f50-0a1b-7c2d-8e3f-4a5b6c7d8e9f",
    "commentId": "019a6f52-1c3d-7e4f-8a5b-6c7d8e9f0a1a",
    "replyId": "019a6f57-3e5f-7a6b-8c7d-8e9f0a1b2c3d",
    "permalink": "https://mastodon.example/@peal_example/113000000000000002",
    "repliedAt": "2026-11-10T09:20:41.000Z"
  }
}

review.received

Peal read a new review on a location a Google Business Profile channel posts as (see Inbox). The event carries ids only. To get the review’s stars, what it says and who wrote it, read it through the API, with engagement:read. The event holds no more because Google lets what its API returns be stored for 30 days at most, and an event is kept with its deliveries.

Field Type What it holds
workspaceId string The workspace
channelId string The channel whose location was reviewed
threadId string The thread: the reviews of that location
reviewId string The review
receivedAt string When Peal read it, as an instant in UTC
{
  "id": "019a8163-4a1b-7c2d-8e3f-4a5b6c7d8e01",
  "type": "review.received",
  "version": 1,
  "timestamp": "2026-11-14T09:27:04.000Z",
  "workspaceExternalId": null,
  "data": {
    "workspaceId": "7b1f6c1e-2d4a-4f0b-9c3e-5a8d2e6f1b90",
    "channelId": "019a6e02-9c1d-7b55-8a10-3e4f5a6b7c8d",
    "threadId": "019a8163-2c40-7e1b-a3d5-6f7a8b9c0d0f",
    "reviewId": "019a8163-2c40-7e1b-a3d5-6f7a8b9c0d10",
    "receivedAt": "2026-11-14T09:27:04.000Z"
  }
}

review.replied

A reply to a review went out from Peal, as the location. A reply that failed, or whose outcome isn’t known yet, sends nothing, so read it through the API.

Field Type What it holds
workspaceId string The workspace
channelId string The channel
threadId string The thread
reviewId string The review that was answered
replyId string The reply
repliedAt string When it went out, as an instant in UTC
{
  "id": "019a8163-5b2c-7d3e-8f4a-5b6c7d8e9f02",
  "type": "review.replied",
  "version": 1,
  "timestamp": "2026-11-14T09:40:12.000Z",
  "workspaceExternalId": null,
  "data": {
    "workspaceId": "7b1f6c1e-2d4a-4f0b-9c3e-5a8d2e6f1b90",
    "channelId": "019a6e02-9c1d-7b55-8a10-3e4f5a6b7c8d",
    "threadId": "019a8163-2c40-7e1b-a3d5-6f7a8b9c0d0f",
    "reviewId": "019a8163-2c40-7e1b-a3d5-6f7a8b9c0d10",
    "replyId": "019a8163-2c40-7e1b-a3d5-6f7a8b9c0d1e",
    "repliedAt": "2026-11-14T09:40:12.000Z"
  }
}

message.received

Peal read a new direct message someone sent to a channel’s account (see Inbox). That happens on a platform whose messages the server reads, for a channel whose messages the workspace turned on. Messages sent before Peal began reading the channel send nothing.

The event carries ids only. To get what the message says and who sent it, read it through the API, with engagement:readMessages. Messages are private correspondence, and an event is kept with its deliveries for longer than a conversation.

Field Type What it holds
workspaceId string The workspace
channelId string The channel the message was sent to
conversationId string The conversation
messageId string The message
receivedAt string When Peal read it, as an instant in UTC
{
  "id": "019a8203-6e70-7c4d-8e5f-6a7b8c9d0e01",
  "type": "message.received",
  "version": 1,
  "timestamp": "2026-11-14T10:02:00.000Z",
  "workspaceExternalId": null,
  "data": {
    "workspaceId": "7b1f6c1e-2d4a-4f0b-9c3e-5a8d2e6f1b90",
    "channelId": "019a6e02-9c1d-7b55-8a10-3e4f5a6b7c8d",
    "conversationId": "019a8203-4d50-7a2b-b3c4-5d6e7f8a9b01",
    "messageId": "019a8203-4d50-7a2b-b3c4-5d6e7f8a9b02",
    "receivedAt": "2026-11-14T10:02:00.000Z"
  }
}

message.sent

A direct message went out from Peal, as the channel’s account. A message that failed, or whose outcome isn’t known yet, sends nothing, so read it through the API.

Field Type What it holds
workspaceId string The workspace
channelId string The channel
conversationId string The conversation it answered
messageId string The message sent from Peal
sentAt string When it went out, as an instant in UTC
{
  "id": "019a8203-7f80-7d5e-8f6a-7b8c9d0e1f02",
  "type": "message.sent",
  "version": 1,
  "timestamp": "2026-11-14T10:05:00.000Z",
  "workspaceExternalId": null,
  "data": {
    "workspaceId": "7b1f6c1e-2d4a-4f0b-9c3e-5a8d2e6f1b90",
    "channelId": "019a6e02-9c1d-7b55-8a10-3e4f5a6b7c8d",
    "conversationId": "019a8203-4d50-7a2b-b3c4-5d6e7f8a9b01",
    "messageId": "019a8203-4d50-7a2b-b3c4-5d6e7f8a9b03",
    "sentAt": "2026-11-14T10:05:00.000Z"
  }
}

Was this page helpful?