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

  • connections
    • limitExceeded (connections.limitExceeded)
    • syncFinished (connections.syncFinished)
    • syncProgress (connections.syncProgress)
    • syncStarted (connections.syncStarted)
  • documents
    • deleted (documents.deleted)
    • statusUpdated (documents.statusUpdated)
  • entities
    • extracted (entities.extracted)
  • partitions
    • limitExceeded (partitions.limitExceeded)

HTTP handler setup

app/api/webhook/route.ts

Events

Connections

Limit Exceeded

connections.limitExceeded A connection reached its page limit and stopped syncing Payload
webhookHooks example

Sync Finished

connections.syncFinished A connection sync finished Payload
webhookHooks example

Sync Progress

connections.syncProgress A connection sync reports progress (documents created, updated, deleted) Payload
webhookHooks example

Sync Started

connections.syncStarted A connection began syncing Payload
webhookHooks example

Documents

Deleted

documents.deleted A document was deleted Payload
webhookHooks example

Status Updated

documents.statusUpdated A document moved to a new processing status (pending, partitioned, indexed, ready, failed…) Payload
webhookHooks example

Entities

Extracted

entities.extracted An instruction extracted an entity from a document Payload
webhookHooks example

Partitions

Limit Exceeded

partitions.limitExceeded A partition reached one of its page or media limits Payload
webhookHooks example