Skip to main content
The Instagram plugin handles incoming webhooks. Point your provider’s subscription URL at your Corsair HTTP handler (see Overview for setup context and the exact URL shape).
New to Corsair? See webhooks and hooks.

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
NameTypeRequiredDescription
objectinstagramYes
entryobject[]Yes
webhookHooks example

Message Received

Message Received

messageReceived A Instagram message was received, sent or seen Payload
NameTypeRequiredDescription
objectinstagramYes
entryobject[]Yes
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
NameTypeRequiredDescription
modesubscribeYes
verify_tokenstringYes
challengestringYes
webhookHooks example