Instagram messaging webhooks: fields, verification and signatures

Instagram messaging webhook fields, endpoint verification, the SHA256 signature, 36-hour retries and the payload changes of 2025 and 2026.

Webhooks are how you receive Instagram direct messages in real time through the API. Your app picks the fields, such as messages, message_reactions and messaging_seen; Meta verifies the endpoint with a challenge, signs every notification with SHA256 and retries for up to 36 hours when delivery fails. Every connected account must be subscribed to the app, and the app must be Live to get notifications from real accounts. This article covers the Instagram Login setup and the payload changes of 2025 and 2026.

Which webhook fields cover messaging?

The Instagram Login fields page lists, for messaging, fields such as messages, message_reactions, messaging_postbacks, messaging_seen and messaging_referral, among others. For these fields it names the instagram_business_basic and instagram_business_manage_messages permissions.

  • messages: incoming messages. Story mentions also arrive here, as an attachment of type story_mention.
  • message_reactions: reactions to messages.
  • messaging_postbacks: taps on postback buttons, such as those in the persistent menu.
  • messaging_seen: read receipts.
  • messaging_referral: referral data for the conversation.
  • message_edit: an edited message. Launched on September 10, 2025, for both Instagram Login and Facebook Login.
  • messaging_handover and standby: Conversation Routing events, when more than one app serves the same account.

Comment fields follow a different rule. The setup page says comments and live_comments notifications require Advanced Access. Comments versus messages is covered in the article on comments vs direct messages, and routing in the article on Conversation Routing.

How does Meta verify your endpoint?

With a GET verification request. Meta calls your endpoint URL with three parameters: hub.mode, hub.challenge and hub.verify_token. Your server checks that the verify token is the one you configured and responds with the hub.challenge value.

# Verification request Meta sends to your endpoint GET https://your-domain.example/webhooks ?hub.mode=<mode> &hub.challenge=<challenge> &hub.verify_token=<your-verify-token> # Your server checks hub.verify_token and responds with the hub.challenge value

The verify token is your secret, not Meta’s. Use a long random value, keep it out of the code and reject the request when it does not match.

How do you validate each notification’s signature?

Meta signs all event notification payloads with a SHA256 signature. The signature arrives in the X-Hub-Signature-256 header and is computed with your app secret. Your server runs the same computation over the received payload and compares the two values before processing anything.

  • Read the request body exactly as it arrived, before parsing it as JSON, because any reformatting changes the result.
  • Compute the SHA256 signature with the app secret and compare it with the header value.
  • If it does not match, drop the notification and log it.
  • Keep the app secret on the server only.

With Instagram Login there is a setup detail: the app uses the Instagram app ID and secret shown in the API setup with Instagram login section, and those values differ from the Meta app ID. Check which secret your setup uses before you conclude that signatures are wrong.

How do you subscribe each connected account?

Picking fields in the App Dashboard is not enough. Each connected account must be subscribed with a POST to the account’s subscribed_apps edge, at /<IG_ID>/subscribed_apps, listing the fields. Two rules from the setup page shape the design:

  • You cannot select fields per account: every account receives all fields chosen for the app. If a customer only wants messages, filter in your code.
  • The app must be published, or Live, to receive notifications for app users. In development mode, notifications from real accounts do not arrive.

Subscribe the account right after you get its token, in the same connection flow. An account with a valid token and no subscription looks connected but receives nothing.

How should you handle retries and duplicates?

Respond fast and expect duplicates. When delivery fails, Meta retries, and unacknowledged notifications are dropped after 36 hours. The setup page warns that you must handle duplicate notifications, because the same one can arrive more than once.

There is also no webhook history to query later. The documentation says you will not be able to query historical notification data. Whatever you do not store on arrival is gone. A safe design writes the raw notification to a queue, acknowledges delivery and processes afterwards, using the message identifier to drop repeats. On the Messenger Platform, the App Review page asks webhooks to return 200 OK within 20 seconds, a useful response-time target.

Which payload signals need their own handling?

The payload examples page and the changelogs describe a few fields that change what your system should do with a notification.

Payload signalWhat it meansSince
is_echo: trueThe message was sent by the connected account itselfNot stated
message_edit with num_editEdited message: carries the message id, the new text and how many times it was editedSeptember 10, 2025
reply_to.storyA reply to a story, with the story URL and idNot stated
link_sticker_url in reply_to.storyThe story replied to had a link stickerDecember 12, 2025
is_unsupported: trueThe message contains unsupported mediaNot stated
ig_post attachmentA shared post, replacing the legacy share attachmentAnnounced October 30, 2025; share removed gradually since April 27, 2026

Two of these bite older code. The first is the echo: if you do not filter is_echo, a bot answers its own messages. The second is the share attachment, which is being removed from shared-post payloads. If your parser still relies on it, switch to ig_post. Received media types are covered in the article on Instagram Direct media.

How CRPRO Hub will handle this (coming soon): the Instagram channel will subscribe to messages, messaging_postbacks, messaging_seen and message_reactions and deliver messages through the same webhooks as WhatsApp numbers, described in the webhooks reference. Received media will not be downloaded or stored: the event carries Meta’s temporary URL.

Frequently asked questions

How long does Meta keep retrying a webhook?

Up to 36 hours. After that, unacknowledged notifications are dropped. Since retries happen, handle duplicate notifications.

Can I pick different fields for each connected account?

No. The setup page says every account receives all fields chosen for the app. Filter in your code what each customer wants.

Why are notifications from real accounts not arriving?

Check that the app is Live, that the account was subscribed through /<IG_ID>/subscribed_apps and that the messaging permissions were granted.

Can I fetch old webhooks later?

No. The documentation says you cannot query historical notification data. Store what you need when it arrives.

Fontes

Documentação oficial da Meta, conferida em 8 de novembro de 2026.