Event Types
Complete reference of all webhook event types you can subscribe to.
Available Events
Subscribe to any combination of these event types when creating or updating a webhook, or use "*" to receive every type listed on this page (events FoxReach uses internally are never sent).
To receive only some reply.categorized events, set replyCategories on the webhook, for example ["interested", "out_of_office"]. It narrows reply.categorized only and accepts interested, not_interested, out_of_office, bounce, unsubscribe and uncategorized; leave it empty for all categories.
Every delivery is a POST request whose JSON body has four top-level fields: id (the event ID), type (the event type), payload (event-specific data, shown per event below), and timestamp (the event's creation time in ISO 8601, in UTC without a timezone offset, for example 2025-01-15T10:30:00.512834). The examples below omit id for brevity.
Email Events
email.sent event Fired when an email is successfully sent from a campaign sequence. variantId and variantLabel are null when the step has no A/B variants.
{
"type": "email.sent",
"timestamp": "2025-01-15T10:30:00.512834",
"payload": {
"emailLogId": "cel_123",
"campaignId": "cmp_456",
"campaignName": "Q1 Outreach",
"leadId": "cld_789",
"toEmail": "john@example.com",
"fromEmail": "you@company.com",
"subject": "Quick question",
"sequenceStep": 1,
"variantId": null,
"variantLabel": null
}
}A manual email sent through a campaign, from the dashboard or with POST /campaigns/{id}/test-email, also fires email.sent (or email.failed), with a different payload: campaignId, campaignName, accountId, fromEmail, toEmail, leadId, subject, messageId, and emailType set to "manual", plus error when the mail server reported one. It has no emailLogId, sequenceStep or variant keys.
email.failed event Fired when a campaign email fails to send (SMTP error, authentication issue, etc.). There is no emailLogId, because nothing was sent. When the mail server rejects the recipient outright, the payload also carries "bounceType": "hard" and the lead is marked bounced.
{
"type": "email.failed",
"timestamp": "2025-01-15T10:30:00.512834",
"payload": {
"campaignId": "cmp_456",
"campaignName": "Q1 Outreach",
"leadId": "cld_789",
"toEmail": "john@example.com",
"error": "SMTP connection timeout",
"variantId": null
}
}A failed manual email (see email.sent above) carries the manual payload instead: campaignId, campaignName, accountId, fromEmail, toEmail, leadId, subject, messageId, emailType set to "manual", and error. It has no variantId or bounceType.
email.bounced event Fired when a sent email bounces back.
{
"type": "email.bounced",
"timestamp": "2025-01-15T10:30:00.512834",
"payload": {
"emailLogId": "cel_123",
"campaignId": "cmp_456",
"leadId": "cld_789",
"toEmail": "john@example.com",
"bounceMessage": "550 5.1.1 The email account that you tried to reach does not exist",
"bounceType": "hard"
}
}email.opened event Fired the first time a recipient opens a tracked email. Only fires when open tracking is on for the campaign and the step is sent as HTML. The open pixel is added from step 2 onward. It is added to the first email only when the campaign has opted in (trackOpensFirstStep), so by default step 1 never fires email.opened.
{
"type": "email.opened",
"timestamp": "2025-01-15T14:22:00.512834",
"payload": {
"emailLogId": "cel_123",
"campaignId": "cmp_456",
"leadId": "cld_789",
"toEmail": "john@example.com"
}
}email.clicked event Fired the first time a recipient clicks a tracked link in an email. Only fires when click tracking is on for the campaign and the step is sent as HTML.
{
"type": "email.clicked",
"timestamp": "2025-01-15T14:25:00.512834",
"payload": {
"emailLogId": "cel_123",
"campaignId": "cmp_456",
"leadId": "cld_789",
"toEmail": "john@example.com",
"url": "https://example.com/case-study"
}
}Reply Events
reply.received event Fired when a new reply arrives in a connected inbox. The payload identifies the reply and the account it arrived on; fetch the full thread with the reply ID, or subscribe to reply.categorized, which fires at the same time and also carries campaignId and the category.
{
"type": "reply.received",
"timestamp": "2025-01-15T15:00:00.512834",
"payload": {
"replyId": "crp_123",
"fromEmail": "john@example.com",
"subject": "Re: Quick question",
"accountId": "acc_123"
}
}reply.categorized event Fired when a reply is categorized automatically. Since 2026-09-21 the automatic categorizer also reports how sure it was and the intents it read in the reply: categoryConfidence (0 to 1 on the stored category), intents (a probability per intent: asks_question, wants_call, referral, mentions_pricing, objection_timing, objection_competitor, wants_more_info, hostile, plus _intent, the finer category answer such as not_now or wrong_person, _unsubscribe and _urgency), and categorizedBy. When you change a reply's category by hand (in the inbox or with PATCH /inbox/threads/{id}), the event fires again with categorizedBy set to user:<userId> or api_key:<keyId>, an extra previousCategory field, and categoryConfidence and intents carried over from the reply's last automatic categorization (null if it never had one).
{
"type": "reply.categorized",
"timestamp": "2025-01-15T15:01:00.512834",
"payload": {
"replyId": "crp_123",
"fromEmail": "alex@acme.com",
"subject": "Re: Quick question",
"accountId": "acc_123",
"campaignId": "cmp_123",
"category": "interested",
"categoryConfidence": 0.97,
"intents": {
"asks_question": 0.91,
"wants_call": 0.88,
"mentions_pricing": 0.74,
"referral": 0.03,
"_intent": "interested",
"_unsubscribe": 0.02,
"_urgency": 0.98
},
"categorizedBy": "jev"
}
}Campaign Events
campaign.started event Fired when a campaign is started or resumed, from the dashboard or through the REST API (POST /campaigns/{id}/start and POST /campaigns/{id}/resume), an SDK, the CLI, or MCP. resumed is true when the campaign was paused before it went live again (a resume, or a start of a paused campaign) and false for a first start or a restart of a completed campaign. There is no separate resume event.
{
"type": "campaign.started",
"timestamp": "2025-01-15T09:00:00.512834",
"payload": {
"campaignId": "cmp_456",
"campaignName": "Q1 Outreach",
"resumed": false
}
}campaign.paused event Fired when a campaign is paused from the dashboard or through the REST API (POST /campaigns/{id}/pause), an SDK, the CLI, or MCP, or paused automatically because of a high bounce rate. An automatic pause adds "auto": true and a reason, for example "High bounce rate: ...".
{
"type": "campaign.paused",
"timestamp": "2025-01-15T16:00:00.512834",
"payload": {
"campaignId": "cmp_456",
"campaignName": "Q1 Outreach"
}
}campaign.completed event Fired when all leads in a campaign have been processed.
{
"type": "campaign.completed",
"timestamp": "2025-02-01T12:00:00.512834",
"payload": {
"campaignId": "cmp_456",
"campaignName": "Q1 Outreach",
"totalSent": 1500,
"totalReplied": 45
}
}campaign.leads_added event Fired when leads are added to a campaign from the dashboard (source is "manual"), through the REST API (POST /campaigns/{id}/leads), an SDK, the CLI, or MCP (source is "api"), or by a Lead Finder reveal that was set to land in a campaign (source is "lead_finder_reveal"). count is the net number of new members; a lead that was removed from the campaign and comes back is not counted again. Adding leads to a completed campaign makes it active again.
{
"type": "campaign.leads_added",
"timestamp": "2025-01-15T11:00:00.512834",
"payload": {
"campaignId": "cmp_456",
"count": 25,
"source": "manual"
}
}Lead Events
lead.created event Fired once per lead when a lead is created (or a deleted lead with the same email is restored). source says how: "manual" for a single lead added in the dashboard, "api" for POST /leads and POST /leads/import (also used by the SDKs, the CLI, and MCP), "csv_import" for a CSV import in the dashboard or the MCP import_csv_leads tool, and "lead_finder" when Lead Finder adds people to your leads. For the two bulk paths (POST /leads/import and CSV imports), FoxReach only queues the events when the workspace has an active webhook subscribed to lead.created at the moment the import finishes.
{
"type": "lead.created",
"timestamp": "2025-01-15T10:00:00.512834",
"payload": {
"leadId": "cld_789",
"email": "john@example.com",
"source": "manual"
}
}lead.updated event Fired when a lead is edited in the dashboard or through the REST API (PATCH /leads/{id}), an SDK, the CLI, or MCP, and when a lead is unsubscribed (from the unsubscribe link, an unsubscribe reply, or a reply marked as unsubscribe). updatedFields lists the fields the request set; an API update that sets tags includes "tags". A workflow that is triggered by lead.updated and updates the same lead through the API triggers itself again, so filter on updatedFields or the lead before writing back.
{
"type": "lead.updated",
"timestamp": "2025-01-15T10:05:00.512834",
"payload": {
"leadId": "cld_789",
"email": "john@example.com",
"updatedFields": ["company", "title"]
}
}An unsubscribe sends "updatedFields": ["status"] plus "status": "unsubscribed" and unsubscribeSource (how the lead unsubscribed, such as "reply" or "manual").
lead.unsubscribed event Fired once when a lead becomes unsubscribed, whichever way it happened (source is "link", "reply" or "manual"). lead.updated still fires for the same change.
{
"type": "lead.unsubscribed",
"timestamp": "2025-01-15T10:06:00.512834",
"payload": {
"leadId": "cld_789",
"email": "john@example.com",
"source": "reply"
}
}lead.interest_changed event Fired when a lead's interest status moves: from a categorized reply (source is "auto") or because someone set or cleared it ("manual", in the dashboard or with PATCH /leads/{id}). oldStatus and newStatus are interested, not_interested, out_of_office, or null when there was none or it was cleared. replyId is set when a reply caused the change. A reply that changes the status also fires reply.categorized.
{
"type": "lead.interest_changed",
"timestamp": "2025-01-15T15:01:00.512834",
"payload": {
"leadId": "cld_789",
"email": "john@example.com",
"oldStatus": null,
"newStatus": "interested",
"source": "auto",
"replyId": "crp_123"
}
}Account Events
account.error event Fired when a connected email account moves into an error or disconnected state, for example when its login is rejected or access was revoked. It fires on the change, not on every failed attempt, and not when the account recovers. cause is a short code and error the provider's message when there is one.
{
"type": "account.error",
"timestamp": "2025-01-15T11:00:00.512834",
"payload": {
"accountId": "acc_123",
"email": "you@company.com",
"status": "error",
"previousStatus": "connected",
"cause": "auth_failed",
"error": "Invalid credentials"
}
}Lead Finder Events
lead_finder.reveal_completed event Fired when the last pending reveal of a Lead Finder batch is resolved. The counts cover the whole batch.
{
"type": "lead_finder.reveal_completed",
"timestamp": "2025-01-15T12:00:00.512834",
"payload": {
"batchId": "bat_123",
"found": 18,
"notFound": 4,
"errors": 1
}
}Verification Events
verification.completed event Fired when an email verification job finishes.
{
"type": "verification.completed",
"timestamp": "2025-01-15T13:00:00.512834",
"payload": {
"jobId": "job_123",
"good": 820,
"risky": 64,
"bad": 112,
"errors": 4,
"billableCount": 996
}
}Listing Available Events
You can also retrieve the list of supported event types programmatically:
curl https://api.foxreach.io/api/v1/webhooks/events \
-H "X-API-Key: otr_your_key"