Notifications
Reference

This page provides detailed payload references for all notification types available in FeedHive webhooks.


On Post Published

Triggered when a post is successfully published to a social media platform.

Payload Fields

FieldTypeDescription
post_idstringUnique identifier for the post in FeedHive
social_typestringThe social media platform (e.g., "Facebook", "Instagram", "LinkedIn")
social_namestringThe name of the connected social media account
public_idstringThe platform-specific post ID
public_urlstringDirect URL to the published post on the social platform
post_excerptstringThe first portion of the post caption (truncated)
postNotificationPostFull post data object

Example Payload

{
  "post_id": "xxxx-abcd-1234",
  "social_type": "Facebook",
  "social_name": "My Facebook Page",
  "public_id": "123456789101112_1314151617181920",
  "public_url": "https://www.facebook.com/xxxx/posts/yyyy",
  "post_excerpt": "This is the first part of the post caption for a Fa...",
  "post": {
    "content": [
      {
        "text": "This is the first part of the post caption for a Facebook post.",
        "media": [
          "https://example.com/image1.jpg",
          "https://example.com/image2.jpg"
        ]
      }
    ],
    "labels": ["Marketing", "Product Demo"],
    "postNotes": "Internal notes about this post",
    "title": "Post Title",
    "link": "https://example.com/landing-page"
  }
}

On Post Scheduled

Triggered when a post is scheduled for future publishing.

Payload Fields

FieldTypeDescription
post_idstringUnique identifier for the post in FeedHive
schedule_atstringISO 8601 timestamp when the post is scheduled to publish
pending_approvalbooleanIndicates if the post requires approval before publishing
social_typesstringComma-separated list of social platforms where the post will be published
post_excerptstringThe first portion of the post caption (truncated)
postNotificationPostFull post data object

Example Payload

{
  "post_id": "xxxx-abcd-1234",
  "schedule_at": "2024-08-01T12:00:00.000Z",
  "pending_approval": true,
  "social_types": "Facebook, Instagram, LinkedIn",
  "post_excerpt": "This is the first part of the post caption for a Fa...",
  "post": {
    "content": [
      {
        "text": "This is the first part of the post caption for a Facebook post.",
        "media": [
          "https://example.com/image1.jpg"
        ]
      }
    ],
    "labels": ["Scheduled Content", "Tips & Tricks"],
    "postNotes": "Remember to check engagement after posting",
    "cta": {
      "text": "Learn More",
      "url": "https://example.com"
    }
  }
}

On Post Failed

Triggered when a post fails to publish to a social media platform.

Payload Fields

FieldTypeDescription
post_idstringUnique identifier for the post in FeedHive
failed_atstringISO 8601 timestamp when the post failed
messagestringError message describing why the post failed
post_excerptstringThe first portion of the post caption (truncated)
social_typestringThe social media platform where the post failed
social_namestringThe name of the connected social media account
postNotificationPostFull post data object

Example Payload

{
  "post_id": "xxxx-abcd-1234",
  "failed_at": "2024-08-01T12:00:00.000Z",
  "message": "The access token for Facebook has expired.",
  "post_excerpt": "This is the first part of the post caption for a Fa...",
  "social_type": "Facebook",
  "social_name": "My Facebook Page",
  "post": {
    "content": [
      {
        "text": "This is the first part of the post caption for a Facebook post.",
        "media": []
      }
    ],
    "labels": ["Urgent", "Needs Review"],
    "postNotes": "This post needs immediate attention",
    "title": "Important Announcement"
  }
}

Common Failure Messages

  • "The access token for [Platform] has expired." - Requires re-authentication
  • "Invalid media format or size." - Media doesn't meet platform requirements
  • "Rate limit exceeded." - Too many posts in a short time period
  • "Account permissions insufficient." - Missing required permissions

On Comment Added

Triggered when a comment is added to a post (either internal team comments or social media comments, depending on configuration).

Payload Fields

FieldTypeDescription
post_idstringUnique identifier for the post in FeedHive
comment_idstringUnique identifier for the comment
commented_atstringISO 8601 timestamp when the comment was added
commented_bystringUnique identifier of the user who commented
commented_by_namestringDisplay name of the user who commented
commented_by_emailstringEmail address of the user who commented
comment_textstringThe full text content of the comment
post_excerptstringThe first portion of the post caption (truncated)
postNotificationPostFull post data object

Example Payload

{
  "post_id": "xxxx-abcd-1234",
  "comment_id": "yyyy-zxyw-4321",
  "commented_at": "2024-08-01T12:00:00.000Z",
  "commented_by": "zzzz-efgh-5678",
  "commented_by_name": "John Doe",
  "commented_by_email": "johndoe@gmail.com",
  "comment_text": "Great post. Perhaps add another image?",
  "post_excerpt": "This is the first part of the post caption for a Fa...",
  "post": {
    "content": [
      {
        "text": "This is the first part of the post caption for a Facebook post.",
        "media": [
          "https://example.com/image1.jpg"
        ]
      }
    ],
    "labels": ["Team Collaboration", "Feedback Received"],
    "postNotes": "Awaiting team feedback before publishing",
    "title": "Draft Post for Review"
  }
}