> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getinboxzero.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Call Webhook

> Integrate email processing with external services via webhooks.

The Call Webhook action lets you integrate email processing with other services. When a rule triggers, Inbox Zero sends the email data to your specified endpoint.

## Configuration

* **Method:** POST
* **Content-Type:** application/json
* **Headers:** Always includes `X-Webhook-Secret` (empty string if no secret is configured in [settings](https://www.getinboxzero.com/settings))

## Payload

```typescript theme={null}
{
  email: {
    threadId: string;      // The thread ID (Gmail or Outlook)
    messageId: string;     // The message ID (Gmail or Outlook)
    subject: string;       // Email subject
    from: string;         // Sender's email address
    cc?: string;          // CC recipients (if any)
    bcc?: string;         // BCC recipients (if any)
    headerMessageId: string; // Original message ID header
  },
  executedRule: {
    id: string;           // Execution ID
    ruleId: string | null; // Rule that triggered this webhook (null if rule was deleted)
    reason: string | null; // Why this rule was executed
    automated: boolean;   // Whether the rule ran automatically
    createdAt: string;    // When the rule was executed
  }
}
```

Set up a webhook secret in [settings](https://www.getinboxzero.com/settings) to secure your endpoints. The secret is included in the `X-Webhook-Secret` header of every request.
