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

  • accounts
    • add (accounts.add)
    • initialSyncCompleted (accounts.initialSyncCompleted)
    • initialSyncFailed (accounts.initialSyncFailed)
    • initialSyncRunning (accounts.initialSyncRunning)
    • locked (accounts.locked)
    • reconnect (accounts.reconnect)
    • remove (accounts.remove)
    • statusDegraded (accounts.statusDegraded)
    • statusDisconnected (accounts.statusDisconnected)
    • statusErrored (accounts.statusErrored)
    • statusPartial (accounts.statusPartial)
    • statusRunning (accounts.statusRunning)
    • unlocked (accounts.unlocked)
  • calendarEvents
    • delete (calendarEvents.delete)
    • new (calendarEvents.new)
    • update (calendarEvents.update)
  • calendars
    • create (calendars.create)
    • delete (calendars.delete)
    • update (calendars.update)
  • chats
    • delete (chats.delete)
    • update (chats.update)
  • emailDrafts
    • delete (emailDrafts.delete)
    • new (emailDrafts.new)
  • emailFolders
    • create (emailFolders.create)
    • delete (emailFolders.delete)
    • update (emailFolders.update)
  • emails
    • bounce (emails.bounce)
    • delete (emails.delete)
    • new (emails.new)
  • followers
    • new (followers.new)
  • messages
    • delete (messages.delete)
    • new (messages.new)
    • reactionDelete (messages.reactionDelete)
    • reactionNew (messages.reactionNew)
    • receiptDelivery (messages.receiptDelivery)
    • receiptRead (messages.receiptRead)
    • update (messages.update)
  • relations
    • new (relations.new)
  • tracking
    • click (tracking.click)
    • open (tracking.open)

HTTP handler setup

app/api/webhook/route.ts

Events

Accounts

Add

accounts.add A new account was connected and is ready; payload.state is the createAuthLink state Payload
webhookHooks example

Initial Sync Completed

accounts.initialSyncCompleted The first sync finished and all history is available Payload
webhookHooks example

Initial Sync Failed

accounts.initialSyncFailed The first sync stopped with an error Payload
webhookHooks example

Initial Sync Running

accounts.initialSyncRunning The first sync of a newly connected account started Payload
webhookHooks example

Locked

accounts.locked API access to an account was locked Payload
webhookHooks example

Reconnect

accounts.reconnect An existing account was signed in again or reconfigured Payload
webhookHooks example

Remove

accounts.remove An account was removed from Unipile Payload
webhookHooks example

Status Degraded

accounts.statusDegraded A multi-product account has one product running and another interrupted Payload
webhookHooks example

Status Disconnected

accounts.statusDisconnected An account needs signing in again; send a reconnect link from accounts.createAuthLink Payload
webhookHooks example

Status Errored

accounts.statusErrored An account is interrupted by a Unipile, proxy or provider problem Payload
webhookHooks example

Status Partial

accounts.statusPartial A multi-product account has one product running and another needing sign-in Payload
webhookHooks example

Status Running

accounts.statusRunning An account (or one of its products) is working again Payload
webhookHooks example

Unlocked

accounts.unlocked API access to an account was restored Payload
webhookHooks example

Calendar Events

Delete

calendarEvents.delete A calendar event was deleted Payload
webhookHooks example

New

calendarEvents.new A calendar event was created or the account was invited (Google and Outlook can report it up to 60 seconds late) Payload
webhookHooks example

Update

calendarEvents.update A calendar event was changed Payload
webhookHooks example

Calendars

Create

calendars.create A calendar was created Payload
webhookHooks example

Delete

calendars.delete A calendar was deleted Payload
webhookHooks example

Update

calendars.update A calendar was changed Payload
webhookHooks example

Chats

Delete

chats.delete A chat was deleted Payload
webhookHooks example

Update

chats.update A chat changed: folders, unread count, archive state, participants or name Payload
webhookHooks example

Email Drafts

Delete

emailDrafts.delete An email draft was deleted Payload
webhookHooks example

New

emailDrafts.new An email draft was created Payload
webhookHooks example

Email Folders

Create

emailFolders.create An email folder or label was created Payload
webhookHooks example

Delete

emailFolders.delete An email folder or label was deleted Payload
webhookHooks example

Update

emailFolders.update An email folder or label was changed Payload
webhookHooks example

Emails

Bounce

emails.bounce A bounce notice arrived for an email the account sent (sent instead of email.new) Payload
webhookHooks example

Delete

emails.delete An email left a folder: deleted, trashed or moved elsewhere Payload
webhookHooks example

New

emails.new An email was added to a folder: received, sent, or moved in (check folder_id). Gmail, Outlook and IMAP can report it up to 10 seconds late Payload
webhookHooks example

Followers

New

followers.new Someone started following the account owner (LinkedIn can report it up to 6 hours late) Payload
webhookHooks example

Messages

Delete

messages.delete A message was deleted Payload
webhookHooks example

New

messages.new A message was received or sent in a chat (check payload.is_sender) Payload
webhookHooks example

Reaction Delete

messages.reactionDelete A reaction was removed from a message Payload
webhookHooks example

Reaction New

messages.reactionNew Someone reacted to a message Payload
webhookHooks example

Receipt Delivery

messages.receiptDelivery A sent message was delivered to someone (can fire once per member in group chats) Payload
webhookHooks example

Receipt Read

messages.receiptRead Someone read a message the account sent Payload
webhookHooks example

Update

messages.update A message was edited Payload
webhookHooks example

Relations

New

relations.new A new 1st-degree relation, usually an accepted invitation (LinkedIn can report it up to 6 hours late) Payload
webhookHooks example

Tracking

Click

tracking.click Someone clicked a tracked link in an email Payload
webhookHooks example

Open

tracking.open Someone opened an email sent with open tracking Payload
webhookHooks example