Skip to main content
The post.published event is triggered when a post is successfully published to a social media platform. The payload includes the post details and the user who published it.
{
  "id": "evt_...",
  "event": "post.published",
  "timestamp": "2024-08-26T16:41:52.346Z",
  "data": {
    "post": {
      "id": "post_...",
      "title": "Check out our new campaign!",
      "content": "We just launched our summer referal push! Let us know what you think.",
      "type": "social",
      "platform": "linkedin",
      "status": "published",
      "postedAt": "2024-08-26T16:41:52.346Z",
      "externalPostId": "urn:li:share:123456789",
      "postUrl": "https://linkedin.com/posts/...",
      "campaignId": "cm11...",
      "workspaceId": "ws_...",
      "createdAt": "2024-08-26T16:00:00.000Z"
    },
    "user": {
      "id": "usr_...",
      "name": "Jane Smith",
      "email": "jane@example.com",
      "image": "https://example.com/avatar2.jpg"
    }
  }
}