> ## Documentation Index
> Fetch the complete documentation index at: https://docs.posttu.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Core Platform Webhooks

> Real-time webhook events for channels, post publishing lifecycle, and inbox.

# Core Platform Webhooks

Core Posttu webhooks notify your system about account changes, post publishing lifecycle status updates, and incoming inbox messages or comments.

***

## Channels Events

> [accordion] channel.connected — Channel Connected
>
> Triggered when a social channel account is connected to Posttu.
>
> **Event Type Constant:** `channel.connected`
>
> #### Payload Schema
>
> **type** `string` *required*
>
> Constant value: `channel.connected`
>
> **organizationId** `string` *required*
>
> ID of the Posttu organization that owns the channel.
>
> **channelId** `string` *required*
>
> ID of the connected channel account.
>
> **platform** `string` *required*
>
> Platform identifier (`INSTAGRAM`, `TWITTER`, `FANSLY`, `ONLYFANS`, `TIKTOK`, `YOUTUBE`, etc.).
>
> **timestamp** `string` *required*
>
> ISO-8601 timestamp of when the event was generated.
>
> **payload** `object` *required*
>
> Inner payload details:
>
> **properties**
>
> **id** `string` *required*
>
> Channel ID.
>
> **organizationId** `string` *required*
>
> Organization ID.
>
> **platform** `string` *required*
>
> Platform type.
>
> **platformId** `string` *required*
>
> Third-party platform account ID.
>
> **username** `string` *required*
>
> Channel username or handle.
>
> **displayName** `string`
>
> Channel display name.
>
> **profileImgUrl** `string`
>
> Avatar image URL.
>
> **status** `string` *required*
>
> Channel status (e.g. `CONNECTED`).
>
> **verified** `boolean` *required*
>
> Whether the account is verified.
>
> **scheduledPosts** `number` *required*
>
> Number of currently scheduled posts.
>
> #### Example Payload
>
> ```json theme={null}
> {
>   "type": "channel.connected",
>   "organizationId": "org_123456789",
>   "channelId": "chan_987654321",
>   "platform": "INSTAGRAM",
>   "timestamp": "2026-07-29T18:00:00.000Z",
>   "payload": {
>     "id": "chan_987654321",
>     "organizationId": "org_123456789",
>     "platform": "INSTAGRAM",
>     "platformId": "1784140000000",
>     "username": "posttu_official",
>     "displayName": "Posttu Team",
>     "profileImgUrl": "https://cdn.posttu.com/avatars/team.png",
>     "status": "CONNECTED",
>     "verified": true,
>     "totalPosts": 142,
>     "scheduledPosts": 5,
>     "createdAt": "2026-07-29T18:00:00.000Z",
>     "updatedAt": "2026-07-29T18:00:00.000Z"
>   }
> }
> ```

> [accordion] channel.disconnected — Channel Disconnected
>
> Triggered when a social channel account is disconnected from Posttu.
>
> **Event Type Constant:** `channel.disconnected`
>
> #### Payload Schema
>
> **type** `string` *required*
>
> Constant value: `channel.disconnected`
>
> **organizationId** `string` *required*
>
> Organization ID.
>
> **channelId** `string` *required*
>
> Channel ID.
>
> **platform** `string` *required*
>
> Platform identifier.
>
> **timestamp** `string` *required*
>
> ISO-8601 timestamp.
>
> **payload** `object` *required*
>
> **properties**
>
> **id** `string` *required*
>
> Channel ID.
>
> **username** `string` *required*
>
> Handle/username.
>
> **status** `string` *required*
>
> Status (e.g. `DISCONNECTED`).
>
> **disconnectedAt** `string` *required*
>
> ISO timestamp of disconnection.
>
> **reason** `string`
>
> Reason for disconnection (e.g. `TOKEN_EXPIRED`).
>
> #### Example Payload
>
> ```json theme={null}
> {
>   "type": "channel.disconnected",
>   "organizationId": "org_123456789",
>   "channelId": "chan_987654321",
>   "platform": "INSTAGRAM",
>   "timestamp": "2026-07-29T18:30:00.000Z",
>   "payload": {
>     "id": "chan_987654321",
>     "organizationId": "org_123456789",
>     "platform": "INSTAGRAM",
>     "platformId": "1784140000000",
>     "username": "posttu_official",
>     "displayName": "Posttu Team",
>     "status": "DISCONNECTED",
>     "disconnectedAt": "2026-07-29T18:30:00.000Z",
>     "reason": "TOKEN_EXPIRED"
>   }
> }
> ```

> [accordion] channel.analytics.updated — Channel Analytics Updated
>
> Triggered when channel-level aggregate analytics or performance metrics are refreshed.
>
> **Event Type Constant:** `channel.analytics.updated`
>
> #### Example Payload
>
> ```json theme={null}
> {
>   "type": "channel.analytics.updated",
>   "organizationId": "org_123456789",
>   "channelId": "chan_987654321",
>   "platform": "INSTAGRAM",
>   "timestamp": "2026-07-29T19:00:00.000Z",
>   "payload": {
>     "id": "analytics_ch_1001",
>     "channelId": "chan_987654321",
>     "platform": "INSTAGRAM",
>     "scheduledPosts": 4,
>     "metrics": {
>       "totalFollowers": 15420,
>       "followerGrowth": 230,
>       "engagementRate": 4.2
>     },
>     "analyticsUpdatedAt": "2026-07-29T19:00:00.000Z",
>     "createdAt": "2026-07-29T19:00:00.000Z",
>     "updatedAt": "2026-07-29T19:00:00.000Z"
>   }
> }
> ```

***

## Post Publishing & Analytics Events

> [accordion] post.publish.scheduled — Post Scheduled
>
> Triggered when a post is successfully queued or scheduled for publishing.
>
> **Event Type Constant:** `post.publish.scheduled`
>
> #### Example Payload
>
> ```json theme={null}
> {
>   "type": "post.publish.scheduled",
>   "organizationId": "org_123456789",
>   "channelId": "chan_987654321",
>   "postId": "post_888",
>   "platform": "TWITTER",
>   "timestamp": "2026-07-29T20:00:00.000Z",
>   "payload": {
>     "id": "post_888",
>     "organizationId": "org_123456789",
>     "channelId": "chan_987654321",
>     "platform": "TWITTER",
>     "title": "New Product Update",
>     "text": "Exciting new features coming soon to Posttu! 🚀",
>     "mediaUrl": "https://cdn.posttu.com/media/update.png",
>     "scheduledFor": "2026-07-30T15:00:00.000Z",
>     "isNsfw": false,
>     "postStatus": "SCHEDULED",
>     "createdAt": "2026-07-29T20:00:00.000Z"
>   }
> }
> ```

> [accordion] post.publish.approved — Post Approved
>
> Triggered when a post draft is approved by a workspace reviewer.
>
> **Event Type Constant:** `post.publish.approved`
>
> #### Example Payload
>
> ```json theme={null}
> {
>   "type": "post.publish.approved",
>   "organizationId": "org_123456789",
>   "channelId": "chan_987654321",
>   "postId": "post_888",
>   "platform": "TWITTER",
>   "timestamp": "2026-07-29T20:15:00.000Z",
>   "payload": {
>     "id": "post_888",
>     "organizationId": "org_123456789",
>     "channelId": "chan_987654321",
>     "platform": "TWITTER",
>     "postStatus": "APPROVED",
>     "approvedAt": "2026-07-29T20:15:00.000Z",
>     "approvedByUserId": "user_manager_01",
>     "scheduledFor": "2026-07-30T15:00:00.000Z"
>   }
> }
> ```

> [accordion] post.publish.rejected — Post Rejected
>
> Triggered when a pending post is rejected by a reviewer.
>
> **Event Type Constant:** `post.publish.rejected`
>
> #### Example Payload
>
> ```json theme={null}
> {
>   "type": "post.publish.rejected",
>   "organizationId": "org_123456789",
>   "channelId": "chan_987654321",
>   "postId": "post_888",
>   "platform": "TWITTER",
>   "timestamp": "2026-07-29T20:20:00.000Z",
>   "payload": {
>     "id": "post_888",
>     "organizationId": "org_123456789",
>     "channelId": "chan_987654321",
>     "platform": "TWITTER",
>     "postStatus": "REJECTED",
>     "rejectionReason": "Please update copy branding guidelines.",
>     "rejectedAt": "2026-07-29T20:20:00.000Z"
>   }
> }
> ```

> [accordion] post.publish.success — Post Published Successfully
>
> Triggered when a post is published to the target social network.
>
> **Event Type Constant:** `post.publish.success`
>
> #### Example Payload
>
> ```json theme={null}
> {
>   "type": "post.publish.success",
>   "organizationId": "org_123456789",
>   "channelId": "chan_987654321",
>   "postId": "post_888",
>   "platform": "TWITTER",
>   "timestamp": "2026-07-30T15:00:05.000Z",
>   "payload": {
>     "id": "post_888",
>     "organizationId": "org_123456789",
>     "channelId": "chan_987654321",
>     "platform": "TWITTER",
>     "postId": "1815000000000000000",
>     "permalink": "https://x.com/posttu_official/status/1815000000000000000",
>     "publishedAt": "2026-07-30T15:00:05.000Z",
>     "postStatus": "PUBLISHED"
>   }
> }
> ```

> [accordion] post.publish.failed — Post Publishing Failed
>
> Triggered when publishing to a platform fails (e.g. rate limit, API error, token revocation).
>
> **Event Type Constant:** `post.publish.failed`
>
> #### Example Payload
>
> ```json theme={null}
> {
>   "type": "post.publish.failed",
>   "organizationId": "org_123456789",
>   "channelId": "chan_987654321",
>   "postId": "post_888",
>   "platform": "TWITTER",
>   "timestamp": "2026-07-30T15:00:10.000Z",
>   "payload": {
>     "id": "post_888",
>     "organizationId": "org_123456789",
>     "channelId": "chan_987654321",
>     "platform": "TWITTER",
>     "failureReason": "Media format unsupported by Twitter API v2",
>     "failedAt": "2026-07-30T15:00:10.000Z",
>     "postStatus": "FAILED"
>   }
> }
> ```

> [accordion] post.analytics.updated — Post Analytics Updated
>
> Triggered when new engagement metrics (likes, comments, views, shares) are updated for a post.
>
> **Event Type Constant:** `post.analytics.updated`
>
> #### Example Payload
>
> ```json theme={null}
> {
>   "type": "post.analytics.updated",
>   "organizationId": "org_123456789",
>   "channelId": "chan_987654321",
>   "postId": "post_888",
>   "platform": "TWITTER",
>   "timestamp": "2026-07-30T18:00:00.000Z",
>   "payload": {
>     "id": "post_analytics_55",
>     "postId": "post_888",
>     "platform": "TWITTER",
>     "metrics": { "retweets": 45, "bookmarks": 12 },
>     "likes": 320,
>     "comments": 28,
>     "shares": 45,
>     "impressions": 12400,
>     "views": 8900,
>     "clicks": 150,
>     "createdAt": "2026-07-30T18:00:00.000Z",
>     "updatedAt": "2026-07-30T18:00:00.000Z"
>   }
> }
> ```

***

## Unified Inbox Events

> [accordion] inbox.comment.created — Comment Created
>
> Triggered when a new comment is posted on one of your social posts.
>
> **Event Type Constant:** `inbox.comment.created`
>
> #### Example Payload
>
> ```json theme={null}
> {
>   "type": "inbox.comment.created",
>   "organizationId": "org_123456789",
>   "channelId": "chan_987654321",
>   "commentId": "cmt_9901",
>   "platform": "INSTAGRAM",
>   "timestamp": "2026-07-29T21:00:00.000Z",
>   "payload": {
>     "id": "inbox_item_301",
>     "organizationId": "org_123456789",
>     "channelId": "chan_987654321",
>     "platform": "INSTAGRAM",
>     "externalId": "cmt_ext_12345",
>     "senderId": "user_fan_99",
>     "senderName": "Jane Doe",
>     "senderHandle": "janedoe_art",
>     "senderAvatar": "https://cdn.instagram.com/avatars/jane.jpg",
>     "contentPreview": "Love this new update! 😍",
>     "postId": "post_888",
>     "commentId": "cmt_9901",
>     "text": "Love this new update! 😍",
>     "mediaUrls": [],
>     "likeCount": 3,
>     "replyCount": 0,
>     "permalinkUrl": "https://instagram.com/p/Example#cmt_ext_12345",
>     "createdAt": "2026-07-29T21:00:00.000Z"
>   }
> }
> ```

> [accordion] inbox.mention.created — Mention Created
>
> Triggered when your channel account is tagged or mentioned in a social post or comment.
>
> **Event Type Constant:** `inbox.mention.created`
>
> #### Example Payload
>
> ```json theme={null}
> {
>   "type": "inbox.mention.created",
>   "organizationId": "org_123456789",
>   "channelId": "chan_987654321",
>   "mentionId": "mnt_7712",
>   "platform": "TWITTER",
>   "timestamp": "2026-07-29T21:10:00.000Z",
>   "payload": {
>     "id": "inbox_item_302",
>     "organizationId": "org_123456789",
>     "channelId": "chan_987654321",
>     "platform": "TWITTER",
>     "externalId": "tweet_181500999",
>     "senderId": "user_tech_review",
>     "senderName": "Tech Insider",
>     "senderHandle": "techinsider",
>     "mentionId": "mnt_7712",
>     "mentionType": "TWEET_MENTION",
>     "text": "Check out @posttu_official for automating social scheduling!",
>     "mediaUrls": [],
>     "permalinkUrl": "https://x.com/techinsider/status/181500999",
>     "createdAt": "2026-07-29T21:10:00.000Z"
>   }
> }
> ```

> [accordion] inbox.message.created — Direct Message Received
>
> Triggered when a direct message is received in your unified inbox.
>
> **Event Type Constant:** `inbox.message.created`
>
> #### Example Payload
>
> ```json theme={null}
> {
>   "type": "inbox.message.created",
>   "organizationId": "org_123456789",
>   "channelId": "chan_987654321",
>   "conversationId": "conv_4401",
>   "platform": "MESSENGER",
>   "timestamp": "2026-07-29T21:15:00.000Z",
>   "payload": {
>     "id": "inbox_item_303",
>     "organizationId": "org_123456789",
>     "channelId": "chan_987654321",
>     "platform": "MESSENGER",
>     "conversationId": "conv_4401",
>     "externalId": "msg_ext_8820",
>     "senderId": "fb_user_551",
>     "senderName": "Alex Smith",
>     "senderHandle": "alexsmith",
>     "contentPreview": "Hi! How can I sign up for Posttu enterprise plan?",
>     "text": "Hi! How can I sign up for Posttu enterprise plan?",
>     "mediaUrls": [],
>     "isRead": false,
>     "createdAt": "2026-07-29T21:15:00.000Z"
>   }
> }
> ```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.