SocialHook
Docs/Payload Reference

Payload Reference

Every webhook delivery uses this structure. Common fields are consistent across platforms. Platform-specific fields are documented below.

Common fields (all platforms)

FieldTypeDescription
platformstring"facebook" | "instagram" | "whatsapp"
eventstring"message.received" | "conversation.started" | "status.update"
timestampnumberUnix timestamp (seconds) of when the event occurred
webhook_idstringYour SocialHook webhook configuration ID
conversation_idstringStable ID for the conversation thread
messageobjectMessage content object (varies by platform and type)

WhatsApp-specific fields

FieldTypeDescription
fromstringSender phone number in E.164 format (+15550001234)
profile.namestringSender's WhatsApp display name
message.typestring"text" | "image" | "audio" | "video" | "document" | "location" | "sticker"
message.bodystringMessage text (for type="text")
message.media_urlstringURL to download media (for image/audio/video/document)

Facebook-specific fields

FieldTypeDescription
from.idstringSender's Facebook user ID (PSID)
from.namestringSender's Facebook display name
page_idstringID of the Facebook Page that received the message
message.textstringMessage text content
message.attachmentsarrayArray of attachment objects for images, videos, etc.

Instagram-specific fields

FieldTypeDescription
from.idstringSender's Instagram user ID
from.usernamestringSender's @username
account_idstringID of the Instagram Business account
message.textstringDM text content
story_idstringStory ID when the message is a story reply (optional)