Webhook map
comments(comments)messageReceived(messageReceived)url_verification(url_verification)
HTTP handler setup
app/api/webhook/route.ts
Events
Comments
Comments
comments
Represents an Instagram comment webhook event containing information about a comment, including the commenter, media, comment text, and related metadata.
Payload
| Name | Type | Required | Description |
|---|---|---|---|
object | instagram | Yes | — |
entry | object[] | Yes | — |
entry full type
entry full type
Response data full type
Response data full type
webhookHooks example
Message Received
Message Received
messageReceived
A Instagram message was received, sent or seen
Payload
| Name | Type | Required | Description |
|---|---|---|---|
object | instagram | Yes | — |
entry | object[] | Yes | — |
entry full type
entry full type
Response data full type
Response data full type
webhookHooks example
Url Verification
Url Verification
url_verification
Represents a webhook URL verification challenge from Meta. Used to verify that the webhook endpoint is owned and controlled by the application.
Payload
| Name | Type | Required | Description |
|---|---|---|---|
mode | subscribe | Yes | — |
verify_token | string | Yes | — |
challenge | string | Yes | — |
Response data full type
Response data full type
webhookHooks example