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

Article events

The events of an article, sent to one of the workspace's websites.

What article events hold

An article goes to one website, through its channel. Its events name the article and the channel, never what the article says. For that, read it through the API, with GET /api/v1/articles/{articleId}.

When a site’s answer is lost and Peal can’t find the article there, the article ends unconfirmed, and no event reports it. If your integration waits for an article to end, read its state from the API.

Field Type What it holds
articleId string The article
channelId string The website’s channel
platform string or null Where the site is: wordpress, wordpressCom, devto or hashnode; null once the channel was disconnected

article.published

The site took the article. platformPostId is the id of its post there, and permalink its address (a preview address for a draft). siteStatus says what the site made of it: publish, draft, or future, scheduled on the site, which publishes it at its time.

{
  "id": "019a6f40-2f6b-7a1c-9d2e-5b4c3a2f1e31",
  "type": "article.published",
  "version": 1,
  "timestamp": "2026-11-17T09:00:03.000Z",
  "workspaceExternalId": null,
  "data": {
    "workspaceId": "7b1f6c1e-2d4a-4f0b-9c3e-5a8d2e6f1b90",
    "articleId": "019a7b20-4e1d-7c30-8a52-1f3e5d7c9b01",
    "channelId": "019a7b10-2c3d-7e40-9b61-3a5c7e9f1d02",
    "platform": "wordpress",
    "platformPostId": "1042",
    "permalink": "https://blog.example.com/2026/11/spring-sowing/",
    "publishedAt": "2026-11-17T09:00:03.000Z",
    "siteStatus": "publish"
  }
}

article.failed

The article didn’t go to its site, and nothing is there. reason says why, with the API’s failure reasons (tokenExpired when the website needs reconnecting), and code is the site’s own code when it gave one.

{
  "id": "019a6f40-2f6b-7a1c-9d2e-5b4c3a2f1e32",
  "type": "article.failed",
  "version": 1,
  "timestamp": "2026-11-17T09:00:03.000Z",
  "workspaceExternalId": null,
  "data": {
    "workspaceId": "7b1f6c1e-2d4a-4f0b-9c3e-5a8d2e6f1b90",
    "articleId": "019a7b20-4e1d-7c30-8a52-1f3e5d7c9b01",
    "channelId": "019a7b10-2c3d-7e40-9b61-3a5c7e9f1d02",
    "platform": "wordpress",
    "code": "rest_cannot_create",
    "failedAt": "2026-11-17T09:00:03.000Z",
    "reason": "contentRejected"
  }
}

Was this page helpful?