Instagram delivers DMs to the webhook. Deliveries are HMAC-verified with the app secret, deduplicated by message id, and grouped by sender.
X
Refresh X polls mentions for connected X accounts and adds them to the same inbox.
Read state
Unread counts are per thread. Mark read updates the read state and clears the badge.