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

  • agents
    • callEnded (agents.callEnded)
    • callStarted (agents.callStarted)
    • contactShared (agents.contactShared)
    • message (agents.message)
    • reaction (agents.reaction)
  • numbers
    • released (numbers.released)

HTTP handler setup

app/api/webhook/route.ts

Events

Agents

Call Ended

agents.callEnded A voice call ended. Payload
webhookHooks example

Call Started

agents.callStarted A voice call was answered. Payload
webhookHooks example

Contact Shared

agents.contactShared An iMessage contact shared their name. Payload
webhookHooks example

Message

agents.message An inbound message or a live voice transcript arrived. Payload
webhookHooks example

Reaction

agents.reaction A contact reacted to an iMessage or WhatsApp message. Payload
webhookHooks example

Numbers

Released

numbers.released A number reached its expiry date and was released. Payload
webhookHooks example