Skip to main content
The VPNDetection 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

  • database
    • delivered (database.delivered)
    • deliveryFailed (database.deliveryFailed)
    • test (database.test)
    • updated (database.updated)

HTTP handler setup

app/api/webhook/route.ts

Events

Database

Delivered

database.delivered New files reached one of the organization’s storage destinations Payload
webhookHooks example

Delivery Failed

database.deliveryFailed Deliveries to one of the organization’s storage destinations have failed for a day Payload
webhookHooks example

Test

database.test Test connection was clicked for this destination in the console Payload
webhookHooks example

Updated

database.updated A database the destination announces was published with new contents; carries the build and each file with its size, SHA-256 and download URL Payload
webhookHooks example